Skip to content

Commit

Permalink
Replace deprecated method in discretize for new one
Browse files Browse the repository at this point in the history
Replace the deprecated `TensorMesh.getInterpolationMat` method for
`TensorMesh.get_interpolation_matrix`.
  • Loading branch information
santisoler committed Nov 2, 2023
1 parent 4c13086 commit 0c12275
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions geoscilabs/dcip/DCLayers.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def plot_layer_potentials(rho1, rho2, h, A, B, M, N, imgplt="Model"):
# clabel = 'Potential (V)'

elif imgplt == "Potential":
Pc = mesh.getInterpolationMat(pltgrid, "CC")
Pc = mesh.get_interpolation_matrix(pltgrid, "CC")

V = solve_2D_potentials(rho1, rho2, h, np.r_[A, 0.0, 0.0], np.r_[B, 0.0, 0.0])

Expand Down Expand Up @@ -341,7 +341,7 @@ def plot_layer_potentials(rho1, rho2, h, A, B, M, N, imgplt="Model"):

elif imgplt == "E":

Pc = mesh.getInterpolationMat(pltgrid, "CC")
Pc = mesh.get_interpolation_matrix(pltgrid, "CC")

ex, ez, V = solve_2D_E(rho1, rho2, h, np.r_[A, 0.0, 0.0], np.r_[B, 0.0, 0.0])

Expand Down Expand Up @@ -388,7 +388,7 @@ def plot_layer_potentials(rho1, rho2, h, A, B, M, N, imgplt="Model"):

elif imgplt == "J":

Pc = mesh.getInterpolationMat(pltgrid, "CC")
Pc = mesh.get_interpolation_matrix(pltgrid, "CC")

Jx, Jz, V = solve_2D_J(rho1, rho2, h, np.r_[A, 0.0, 0.0], np.r_[B, 0.0, 0.0])

Expand Down

0 comments on commit 0c12275

Please sign in to comment.