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

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

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

revision 1554 by artak, Fri May 9 02:50:49 2008 UTC revision 1562 by gross, Wed May 21 13:04:40 2008 UTC
# Line 133  class StokesProblemCartesian(Homogeneous Line 133  class StokesProblemCartesian(Homogeneous
133           self.__pde_prec.setValue(Y=p)           self.__pde_prec.setValue(Y=p)
134           q=self.__pde_prec.getSolution(verbose=self.show_details)           q=self.__pde_prec.getSolution(verbose=self.show_details)
135       q0=util.interpolate(q,Function(self.domain))       q0=util.interpolate(q,Function(self.domain))
136             print util.inf(q*q0),util.sup(q*q0)
137           q-=(1/self.vol)*util.integrate(q0)           q-=(1/self.vol)*util.integrate(q0)
138             print util.inf(q*q0),util.sup(q*q0)
139           return q           return q
140    
141        def stoppingcriterium(self,Bv,v,p):        def stoppingcriterium(self,Bv,v,p):

Legend:
Removed from v.1554  
changed lines
  Added in v.1562

  ViewVC Help
Powered by ViewVC 1.1.26