/[escript]/trunk/escript/py_src/levelset.py
ViewVC logotype

Diff of /trunk/escript/py_src/levelset.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3792 by jfenwick, Wed Jan 18 02:30:48 2012 UTC revision 3793 by gross, Wed Feb 1 07:39:43 2012 UTC
# Line 300  class LevelSet2(object): Line 300  class LevelSet2(object):
300           #==================================================           #==================================================
301           self.__FC=True           self.__FC=True
302           if self.__FC:           if self.__FC:
303              self.__fc=TransportPDE(self.__domain,num_equations=1,useBackwardEuler=False)              self.__fc=TransportPDE(self.__domain,num_equations=1)
304              # self.__fc.setReducedOrderOn()              # self.__fc.setReducedOrderOn()
305              self.__fc.setValue(M=Scalar(1.,Function(self.__domain)))              self.__fc.setValue(M=Scalar(1.,Function(self.__domain)))
306              self.__fc.setInitialSolution(phi+self.__diam)              self.__fc.setInitialSolution(phi+self.__diam)
# Line 314  class LevelSet2(object): Line 314  class LevelSet2(object):
314           #=======================================           #=======================================
315           self.__reinitFC=False           self.__reinitFC=False
316           if self.__reinitFC:           if self.__reinitFC:
317              self.__reinitfc=TransportPDE(self.__domain,num_equations=1,useBackwardEuler=True)              self.__reinitfc=TransportPDE(self.__domain,num_equations=1)
318              self.__reinitfc.setValue(M=Scalar(1.,Function(self.__domain)))              self.__reinitfc.setValue(M=Scalar(1.,Function(self.__domain)))
319              self.__reinitfc.setTolerance(1.e-5)              self.__reinitfc.setTolerance(1.e-5)
320           else:           else:

Legend:
Removed from v.3792  
changed lines
  Added in v.3793

  ViewVC Help
Powered by ViewVC 1.1.26