/[escript]/trunk/finley/py_src/finleybench.py
ViewVC logotype

Diff of /trunk/finley/py_src/finleybench.py

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

revision 490 by gross, Wed Feb 1 04:36:53 2006 UTC revision 491 by gross, Thu Feb 2 08:21:10 2006 UTC
# Line 201  class RegularFinleyProblem(FinleyProblem Line 201  class RegularFinleyProblem(FinleyProblem
201      """      """
202      base class for finley problem on a rectangular mesh      base class for finley problem on a rectangular mesh
203      """      """
204      def __init__(self,n=1,order=1,dim=2):      def __init__(self,n=1,order=1,dim=2,num_equations=1):
205         """         """
206         sets up a recangular mesh in finley on a unit cube/square         sets up a recangular mesh in finley on a unit cube/square
207    
# Line 212  class RegularFinleyProblem(FinleyProblem Line 212  class RegularFinleyProblem(FinleyProblem
212         @param dim: spatial dimension         @param dim: spatial dimension
213         @type n: 2 or 3         @type n: 2 or 3
214         """         """
215         super(RegularFinleyProblem,self).__init__(name=str((order*n+1)**dim))         super(RegularFinleyProblem,self).__init__(name=str(num_equations*(order*n+1)**dim))
216         self.__n=n         self.__n=n
217         self.__order=order         self.__order=order
218         self.__dim=dim         self.__dim=dim
219           self.__num_equations=num_equations
220    
221      def getDomain(self):      def getDomain(self):
222         """         """
# Line 315  class AnisotropicSystem(RegularFinleyPro Line 316  class AnisotropicSystem(RegularFinleyPro
316          self.mu0=mu0          self.mu0=mu0
317          self.normal=numarray.array(normal)          self.normal=numarray.array(normal)
318          self.alpha=alpha          self.alpha=alpha
319          super(AnisotropicSystem,self).__init__(n,order,dim)          super(AnisotropicSystem,self).__init__(n,order,dim,dim)
320    
321    
322      def getTestProblem(self,domain):      def getTestProblem(self,domain):

Legend:
Removed from v.490  
changed lines
  Added in v.491

  ViewVC Help
Powered by ViewVC 1.1.26