/[escript]/trunk/escriptcore/py_src/nonlinearPDE.py
ViewVC logotype

Diff of /trunk/escriptcore/py_src/nonlinearPDE.py

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

revision 4575 by jfenwick, Wed Jul 24 04:23:22 2013 UTC revision 4576 by sshaw, Mon Dec 9 23:35:30 2013 UTC
# Line 397  class NonlinearPDE(object): Line 397  class NonlinearPDE(object):
397                  self._updateRHS(expressions, subs)                  self._updateRHS(expressions, subs)
398                  new_defect_norm=self._getDefectNorm(self._lpde.getRightHandSide())                  new_defect_norm=self._getDefectNorm(self._lpde.getRightHandSide())
399                  defect_reduced=False                  defect_reduced=False
400                  for i in xrange(len( new_defect_norm)):                  for i in range(len( new_defect_norm)):
401                      if new_defect_norm[i] < defect_norm[i]: defect_reduced=True                      if new_defect_norm[i] < defect_norm[i]: defect_reduced=True
402                                    
403                  #print new_defect_norm                  #print new_defect_norm
# Line 823  class NonlinearPDE(object): Line 823  class NonlinearPDE(object):
823              else:              else:
824                  u_g=Data(0., (self.getNumSolutions(), len_g), self._lpde.getFunctionSpaceForSolution())                  u_g=Data(0., (self.getNumSolutions(), len_g), self._lpde.getFunctionSpaceForSolution())
825    
826          for i in xrange(len_g):          for i in range(len_g):
827                # reset coefficients may be set at previous calls:                # reset coefficients may be set at previous calls:
828                args={}                args={}
829                for n in self.__COEFFICIENTS: args[n]=Data()                for n in self.__COEFFICIENTS: args[n]=Data()

Legend:
Removed from v.4575  
changed lines
  Added in v.4576

  ViewVC Help
Powered by ViewVC 1.1.26