Changeset 2728 for trunk

Show
Ignore:
Timestamp:
08/21/2008 12:42:39 PM (5 months ago)
Author:
wd15
Message:

removing a print statement from the last commit and adding some comments

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/fipy/terms/term.py

    r2727 r2728  
    172172           - `dt`: The time step size. 
    173173           - `underRelaxation`: Usually a value between `0` and `1` or `None` in the case of no under-relaxation 
     174           - `residualFn`: A function that takes var, matrix, and RHSvector arguments, used to customize the residual calculation. 
    174175 
    175176        """ 
     
    204205           - `dt`: The time step size. 
    205206           - `underRelaxation`: Usually a value between `0` and `1` or `None` in the case of no under-relaxation 
     207           - `residualFn`: A function that takes var, matrix, and RHSvector arguments used to customize the residual calculation. 
    206208 
    207209        """ 
    208210        solver, matrix, RHSvector = self._prepareLinearSystem(var, solver, boundaryConditions, dt) 
    209211 
    210         print 'RHSvector',RHSvector 
    211          
    212212        if underRelaxation is not None: 
    213213            matrix, RHSvector = self._applyUnderRelaxation(matrix, var, RHSvector, underRelaxation) 
    214214 
    215215        residualFn = residualFn or self._calcResidual 
    216         residual = residualFn(var, matrix, RHSvector) 
    217          
    218         return residual 
     216         
     217        return residualFn(var, matrix, RHSvector) 
    219218 
    220219    def _verifyCoeffType(self, var):