Skip to content

Commit 918fa4b

Browse files
committed
Replace deprecated tolCG and maxIterCG args in gravity nbs
1 parent 26dec9a commit 918fa4b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

notebooks/03-gravity/inv_gravity_anomaly_3d.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@
740740
],
741741
"source": [
742742
"opt_L2 = optimization.InexactGaussNewton(\n",
743-
" maxIter=100, maxIterLS=20, maxIterCG=10, tolCG=1e-2\n",
743+
" maxIter=100, maxIterLS=20, cg_maxiter=10, cg_rtol=1e-2\n",
744744
")"
745745
]
746746
},

notebooks/03-gravity/weighting_strategies.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1243,7 +1243,7 @@
12431243
"# Define how the optimization problem is solved. Here we will use a projected\n",
12441244
"# Gauss-Newton approach that employs the conjugate gradient solver.\n",
12451245
"opt = optimization.ProjectedGNCG(\n",
1246-
" maxIter=100, lower=-1.0, upper=1.0, maxIterLS=20, maxIterCG=10, tolCG=1e-3\n",
1246+
" maxIter=100, lower=-1.0, upper=1.0, maxIterLS=20, cg_maxiter=10, cg_rtol=1e-3\n",
12471247
")\n",
12481248
"\n",
12491249
"# Here we define the inverse problem that is to be solved\n",

0 commit comments

Comments
 (0)