- Timestamp:
- 11/18/2008 05:08:38 PM (7 weeks ago)
- Location:
- trunk
- Files:
-
- 6 modified
-
FiPy.egg-info/SOURCES.txt (modified) (2 diffs)
-
fipy/variables/cellVariable.py (modified) (1 diff)
-
fipy/variables/faceVariable.py (modified) (1 diff)
-
fipy/variables/modularVariable.py (modified) (1 diff)
-
fipy/variables/operatorVariable.py (modified) (1 diff)
-
fipy/variables/variable.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/FiPy.egg-info/SOURCES.txt
r2822 r2825 22 22 documentation/TALKS.txt 23 23 documentation/TODOLIST.txt 24 documentation/VERSION.txt25 24 documentation/VKML.txt 26 25 documentation/figures/NIST_right2line.pdf … … 31 30 documentation/manual/fipy.bst 32 31 documentation/manual/fipy.dbj 33 documentation/manual/fipy.pdf34 32 documentation/manual/fipy.sty 35 33 documentation/manual/fipy.tex -
trunk/fipy/variables/cellVariable.py
r2781 r2825 132 132 def copy(self): 133 133 134 return self.__class__( 135 mesh = self.mesh, 136 name = self.name + "_old", 137 value = self.getValue(), 138 hasOld = 0) 134 return self._getArithmeticBaseClass()(mesh=self.mesh, 135 name=self.name + "_old", 136 value=self.getValue(), 137 hasOld=False) 139 138 140 139 def __call__(self, points=None, order=0): -
trunk/fipy/variables/faceVariable.py
r2781 r2825 60 60 61 61 def copy(self): 62 return self._ _class__(mesh =self.mesh,63 name =self.name + "_copy",64 value =self.getValue())62 return self._getArithmeticBaseClass()(mesh=self.mesh, 63 name=self.name + "_copy", 64 value=self.getValue()) 65 65 66 66 def getDivergence(self): -
trunk/fipy/variables/modularVariable.py
r2781 r2825 208 208 return self._BinaryOperatorVariable(lambda a,b: b-a, other, canInline=False) 209 209 210 def _getArithmeticBaseClass(self, other=None): 211 """ 212 Given `self` and `other`, return the desired base 213 class for an operation result. 214 """ 215 if other is None: 216 return ModularVariable 217 218 return CellVariable._getArithmeticBaseClass(self, other) 219 210 220 211 221 def _test(): -
trunk/fipy/variables/operatorVariable.py
r2817 r2825 191 191 return name 192 192 193 def copy(self):194 return self.__class__(195 op = self.op,196 var = self.var,197 opShape = self.opShape,198 canInline = self.canInline)199 200 193 def getShape(self): 201 194 if self.opShape is not None: -
trunk/fipy/variables/variable.py
r2819 r2825 221 221 222 222 """ 223 return Variable(value=self)223 return self._getArithmeticBaseClass()(value=self) 224 224 225 225
FiPy: A Finite Volume PDE Solver Using Python