Skip to content

Commit

Permalink
Fix typo for verticalAlignment
Browse files Browse the repository at this point in the history
  • Loading branch information
fourndo committed Jun 21, 2018
1 parent 0dfd62c commit d0bf50b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions SimPEG/Utils/modelutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def tileSurveyPoints(locs, maxNpoints):
def meshBuilder(xyz, h, padDist, meshGlobal=None,
expFact=1.3,
meshType='TENSOR',
verticalAlignement='CC'):
verticalAlignment='CC'):
"""
Function to quickly generate a Tensor mesh
given a cloud of xyz points, finest core cell size
Expand Down Expand Up @@ -311,12 +311,12 @@ def expand(dx, pad):
np.ones(nCx)*h[2]])

# Set origin
if verticalAlignement == 'center':
if verticalAlignment == 'center':
mesh.x0 = np.r_[-nCx*h[0]/2.+midX, -nCy*h[1]/2.+midY, -nCz*h[2]/2.+midZ]
elif verticalAlignement == 'top':
elif verticalAlignment == 'top':
mesh.x0 = np.r_[-nCx*h[0]/2.+midX, -nCy*h[1]/2.+midY, -(nCz-1)*h[2] + limz.max()]
else:
assert NotImplementedError("gridLoc must be 'center' | 'top'")
assert NotImplementedError("verticalAlignment must be 'center' | 'top'")

return mesh

Expand Down

0 comments on commit d0bf50b

Please sign in to comment.