/[escript]/trunk/downunder/py_src/domainbuilder.py
ViewVC logotype

Diff of /trunk/downunder/py_src/domainbuilder.py

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

revision 4995 by caltinay, Thu Jun 5 03:44:16 2014 UTC revision 5288 by sshaw, Tue Dec 2 23:18:40 2014 UTC
# Line 29  import logging Line 29  import logging
29  import numpy as np  import numpy as np
30  from esys.escript.util import *  from esys.escript.util import *
31  from esys.escript import unitsSI as U  from esys.escript import unitsSI as U
32  from esys.ripley import Brick, Rectangle  from .datasources import DataSource, HAS_RIPLEY
 from .datasources import DataSource  
33  from .coordinates import ReferenceSystem, CartesianReferenceSystem  from .coordinates import ReferenceSystem, CartesianReferenceSystem
34    
   
35  class DomainBuilder(object):  class DomainBuilder(object):
36      """      """
37      This class is responsible for constructing an escript Domain object with      This class is responsible for constructing an escript Domain object with
# Line 59  class DomainBuilder(object): Line 57  class DomainBuilder(object):
57                                   Cartesian coordinate system is used.                                   Cartesian coordinate system is used.
58          :type reference_system: `ReferenceSystem`          :type reference_system: `ReferenceSystem`
59          """          """
60            if not HAS_RIPLEY:
61                raise RuntimeError("Ripley module not available")
62            
63          self.logger = logging.getLogger('inv.%s'%self.__class__.__name__)          self.logger = logging.getLogger('inv.%s'%self.__class__.__name__)
64          if dim not in (2,3):          if dim not in (2,3):
65              raise ValueError("Number of dimensions must be 2 or 3")              raise ValueError("Number of dimensions must be 2 or 3")

Legend:
Removed from v.4995  
changed lines
  Added in v.5288

  ViewVC Help
Powered by ViewVC 1.1.26