/[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 2169 by caltinay, Wed Dec 17 03:08:58 2008 UTC revision 2337 by gross, Thu Mar 26 07:07:42 2009 UTC
# Line 284  class LevelSet2(object): Line 284  class LevelSet2(object):
284           #==================================================           #==================================================
285           self.__FC=True           self.__FC=True
286           if self.__FC:           if self.__FC:
287              self.__fc=TransportPDE(self.__domain,num_equations=1,theta=0.5)              self.__fc=TransportPDE(self.__domain,num_equations=1,useBackwardEuler=False)
288              # self.__fc.setReducedOrderOn()              # self.__fc.setReducedOrderOn()
289              self.__fc.setValue(M=Scalar(1.,Function(self.__domain)))              self.__fc.setValue(M=Scalar(1.,Function(self.__domain)))
290              self.__fc.setInitialSolution(phi+self.__diam)              self.__fc.setInitialSolution(phi+self.__diam)
# Line 298  class LevelSet2(object): Line 298  class LevelSet2(object):
298           #=======================================           #=======================================
299           self.__reinitFC=False           self.__reinitFC=False
300           if self.__reinitFC:           if self.__reinitFC:
301              self.__reinitfc=TransportPDE(self.__domain,num_equations=1,theta=1.0)              self.__reinitfc=TransportPDE(self.__domain,num_equations=1,useBackwardEuler=True)
302              self.__reinitfc.setValue(M=Scalar(1.,Function(self.__domain)))              self.__reinitfc.setValue(M=Scalar(1.,Function(self.__domain)))
303              self.__reinitfc.setTolerance(1.e-5)              self.__reinitfc.setTolerance(1.e-5)
304           else:           else:

Legend:
Removed from v.2169  
changed lines
  Added in v.2337

  ViewVC Help
Powered by ViewVC 1.1.26