mirror of
https://github.com/wassname/simpeg.git
synced 2026-07-12 07:30:01 +08:00
Modification fror ubcmesh
This commit is contained in:
@@ -3,6 +3,7 @@ from scipy import sparse as sp
|
||||
from matutils import mkvc, ndgrid, sub2ind, sdiag
|
||||
from codeutils import asArray_N_x_Dim
|
||||
from codeutils import isScalar
|
||||
import SimPEG
|
||||
|
||||
|
||||
def exampleLrmGrid(nC, exType):
|
||||
@@ -132,7 +133,7 @@ def readUBCTensorMesh(fileName):
|
||||
y0 = mesh[1][1]
|
||||
z0 = -mesh[1][2]
|
||||
|
||||
mesh3D = Mesh.TensorMesh([hx, hy, hz], np.r_[x0, y0, z0])
|
||||
mesh3D = SimPEG.Mesh.TensorMesh([hx, hy, hz], np.r_[x0, y0, z0])
|
||||
|
||||
return mesh3D
|
||||
|
||||
@@ -147,7 +148,7 @@ def readUBCTensorModel(fileName, mesh):
|
||||
model = np.reshape(model, (mesh.nCz, mesh.nCx, mesh.nCy), order = 'F')
|
||||
model = model[::-1,:,:]
|
||||
model = np.transpose(model, (1, 2, 0))
|
||||
model = Utils.mkvc(model)
|
||||
model = SimPEG.Utils.mkvc(model)
|
||||
|
||||
return model
|
||||
|
||||
|
||||
Reference in New Issue
Block a user