Skip to content

Commit

Permalink
Fixed ticket:391
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://code.matforge.org/fipy/trunk@5105 d80e17d7-ff13-0410-a124-85740d801063
  • Loading branch information
wd15 committed Jan 10, 2012
1 parent 44f6d1a commit d7b54c2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions examples/reactiveWetting/liquidVapor2D.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,13 @@
>>> dt = 1e-14
>>> timestep = 0
>>> relaxation = 0.5
>>> sweeps = 0
>>> if __name__ == '__main__':
... totalSteps = 1e+10
... totalSweeps = 1e+10
... else:
... totalSteps = 1
>>> totalSweeps = 0
... totalSweeps = 1
>>> while timestep < totalSteps:
...
Expand All @@ -158,8 +160,8 @@
... velocityY.updateOld()
... matrixDiagonal.updateOld()
...
... while residual > tolerance and ((__name__ == '__main__') or (totalSweeps < 1)):
... totalSweeps += 1
... while residual > tolerance and sweeps < totalSweeps:
... sweeps += 1
... densityPrevious[:] = density
... velocityXPrevious[:] = velocityX
... velocityYPrevious[:] = velocityY
Expand Down

0 comments on commit d7b54c2

Please sign in to comment.