@@ -397,7 +397,7 @@ def DC2Dsimulation(mtrue, flag="PoleDipole", nmax=8):
397397 for i in range (ntx ):
398398 if flag == "PoleDipole" :
399399 A = np .r_ [xr [i ], zloc ]
400- B = np .r_ [mesh .vectorCCx .min (), zloc ]
400+ B = np .r_ [mesh .cell_centers_x .min (), zloc ]
401401 if i < ntx - nmax + 1 :
402402 Mx = xr [i + 1 : i + 1 + nmax ]
403403 _ , Mz = get_Surface (mtrue , Mx )
@@ -421,7 +421,7 @@ def DC2Dsimulation(mtrue, flag="PoleDipole", nmax=8):
421421 if i < ntx - nmax + 1 :
422422 Mx = xr [i + 2 : i + 2 + nmax ]
423423 _ , Mz = get_Surface (mtrue , Mx )
424- Nx = np .ones (nmax ) * mesh .vectorCCx .max ()
424+ Nx = np .ones (nmax ) * mesh .cell_centers_x .max ()
425425 _ , Nz = get_Surface (mtrue , Nx )
426426
427427 M = np .c_ [Mx , Mz ]
@@ -430,7 +430,7 @@ def DC2Dsimulation(mtrue, flag="PoleDipole", nmax=8):
430430 else :
431431 Mx = xr [i + 2 : ntx + 2 ]
432432 _ , Mz = get_Surface (mtrue , Mx )
433- Nx = np .ones (ntx - i ) * mesh .vectorCCx .max ()
433+ Nx = np .ones (ntx - i ) * mesh .cell_centers_x .max ()
434434 _ , Nz = get_Surface (mtrue , Nx )
435435 M = np .c_ [Mx , Mz ]
436436 N = np .c_ [Nx , Nz ]
@@ -483,7 +483,7 @@ def IP2Dsimulation(miptrue, sigmadc, flag="PoleDipole", nmax=8):
483483 for i in range (ntx ):
484484 if flag == "PoleDipole" :
485485 A = np .r_ [xr [i ], zloc ]
486- B = np .r_ [mesh .vectorCCx .min (), zloc ]
486+ B = np .r_ [mesh .cell_centers_x .min (), zloc ]
487487 if i < ntx - nmax + 1 :
488488 Mx = xr [i + 1 : i + 1 + nmax ]
489489 _ , Mz = get_Surface (miptrue , Mx )
@@ -507,7 +507,7 @@ def IP2Dsimulation(miptrue, sigmadc, flag="PoleDipole", nmax=8):
507507 if i < ntx - nmax + 1 :
508508 Mx = xr [i + 2 : i + 2 + nmax ]
509509 _ , Mz = get_Surface (miptrue , Mx )
510- Nx = np .ones (nmax ) * mesh .vectorCCx .max ()
510+ Nx = np .ones (nmax ) * mesh .cell_centers_x .max ()
511511 _ , Nz = get_Surface (miptrue , Nx )
512512
513513 M = np .c_ [Mx , Mz ]
@@ -516,7 +516,7 @@ def IP2Dsimulation(miptrue, sigmadc, flag="PoleDipole", nmax=8):
516516 else :
517517 Mx = xr [i + 2 : ntx + 2 ]
518518 _ , Mz = get_Surface (miptrue , Mx )
519- Nx = np .ones (ntx - i ) * mesh .vectorCCx .max ()
519+ Nx = np .ones (ntx - i ) * mesh .cell_centers_x .max ()
520520 _ , Nz = get_Surface (miptrue , Nx )
521521 M = np .c_ [Mx , Mz ]
522522 N = np .c_ [Nx , Nz ]
@@ -862,7 +862,7 @@ def DCIP2Dfwdfun(
862862 ax = ax1 ,
863863 clim = (u .min (), u .max ()),
864864 grid = True ,
865- gridOpts = {"color" : "k" , "alpha" : 0.5 },
865+ grid_opts = {"color" : "k" , "alpha" : 0.5 },
866866 )
867867
868868 if which == "IP" :
0 commit comments