/[escript]/branches/symbolic_from_3470/escript/py_src/linearPDEs.py
ViewVC logotype

Diff of /branches/symbolic_from_3470/escript/py_src/linearPDEs.py

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

revision 2099 by jfenwick, Wed Nov 19 03:40:21 2008 UTC revision 2100 by gross, Wed Nov 26 08:13:00 2008 UTC
# Line 478  class LinearProblem(object): Line 478  class LinearProblem(object):
478       """       """
479       self.__debug=None       self.__debug=None
480    
481       def setDebug(self, flag):
482         """
483         switches debugging to on if C{flag} is true outherwise debugging is set to off
484    
485         @param flag: desired debug status
486         @type flag: C{bool}
487         """
488         if flag:
489             self.setDebugOn()
490         else:
491             self.setDebugOff()
492    
493     def trace(self,text):     def trace(self,text):
494       """       """
495       print the text message if debugging is swiched on.       print the text message if debugging is swiched on.
# Line 992  class LinearProblem(object): Line 1004  class LinearProblem(object):
1004                        for j in range(sB[1]):                        for j in range(sB[1]):
1005                           for k in range(sB[2]):                           for k in range(sB[2]):
1006                              if util.Lsup(B[i,j,k]-C[k,i,j])>tol:                              if util.Lsup(B[i,j,k]-C[k,i,j])>tol:
1007                                   if verbose: print "non-symmetric problem because %s[%d,%d,%d]!=%s[%d,%d,%d]"%(name2,i,j,k,name1,k,i,j)                                   if verbose: print "non-symmetric problem because %s[%d,%d,%d]!=%s[%d,%d,%d]"%(name0,i,j,k,name1,k,i,j)
1008                                   out=False                                   out=False
1009                 else:                 else:
1010                   if verbose: print "non-symmetric problem because of inappropriate shapes %s and %s of coefficients %s and %s, respectively."%(sB,sC,name0,name1)                   if verbose: print "non-symmetric problem because of inappropriate shapes %s and %s of coefficients %s and %s, respectively."%(sB,sC,name0,name1)

Legend:
Removed from v.2099  
changed lines
  Added in v.2100

  ViewVC Help
Powered by ViewVC 1.1.26