コード例 #1
0
ファイル: problem.py プロジェクト: uwoseis/windtunnel
 def __init__(self, systemConfig, *args, **kwargs):
      
     # Initialize anemoi side
     BaseSCCache.__init__(self, systemConfig, *args, **kwargs)       
     
     # Initialize SimPEG side
     hx = [(self.dx, self.nx-1)]
     hz = [(self.dz, self.nz-1)]
     mesh = SimPEG.Mesh.TensorMesh([hx, hz], '00')
     SimPEG.Problem.BaseProblem.__init__(self, mesh, *args, **kwargs)
コード例 #2
0
ファイル: survey.py プロジェクト: uwoseis/windtunnel
 def __init__(self, *args, **kwargs):
     
     BaseSCCache.__init__(self, *args, **kwargs)
     SimPEG.Survey.BaseSurvey.__init__(self, **kwargs)
     
     if self.mode == 'fixed':
         rxList = HelmRx(self.rLocs)
         rxListGen = lambda sLoc: [rxList]
     elif self.mode == 'relative':
         rxListGen = lambda sLoc: [HelmRx(sLoc + self.rLocs)]
     
     self.srcList = [HelmSrc(rxListGen(loc), loc) for loc in self.sLocs]