From daea7bb570c1e316d32497015ae89743edee2344 Mon Sep 17 00:00:00 2001 From: wask Date: Fri, 28 Aug 2020 17:37:33 -0500 Subject: [PATCH 1/2] examples: move time block notebook to seismic/tutorials --- examples/README.md | 6 +++++- .../12_time_blocking.ipynb} | 10 +++++----- 2 files changed, 10 insertions(+), 6 deletions(-) rename examples/seismic/{self_adjoint/time_blocking.ipynb => tutorials/12_time_blocking.ipynb} (99%) diff --git a/examples/README.md b/examples/README.md index 495494918f..69dcf65276 100644 --- a/examples/README.md +++ b/examples/README.md @@ -23,7 +23,7 @@ A set of more advanced examples are available in `seismic`: * `seismic/tutorials`: A series of Jupyter notebooks of incremental complexity, showing a variety of Devito features in the context of seismic inversion operators. Among the discussed features are custom stencils, staggered - grids, and tensor notation. + grids, tensor notation, and time blocking. * `seismic/acoustic`: Example implementations of isotropic acoustic forward, adjoint, gradient and born operators, suitable for full-waveform inversion methods (FWI). @@ -36,6 +36,10 @@ A set of more advanced examples are available in `seismic`: forward operator. Like `elastic`, `viscoelastic` exploits tensor functions for a neat and compact representation of the discretized partial differential equations. +* `seismic/self-adjoint`: Self-adjoint energy conserving pseudo-acoustic + operators, including notebooks for implementation of the nonlinear forward, + the forward and adjoint linearized Jacobian, and tests proving accuracy and + correctness. Further: diff --git a/examples/seismic/self_adjoint/time_blocking.ipynb b/examples/seismic/tutorials/12_time_blocking.ipynb similarity index 99% rename from examples/seismic/self_adjoint/time_blocking.ipynb rename to examples/seismic/tutorials/12_time_blocking.ipynb index 5c41654bd5..01440b18e2 100644 --- a/examples/seismic/self_adjoint/time_blocking.ipynb +++ b/examples/seismic/tutorials/12_time_blocking.ipynb @@ -42,13 +42,13 @@ "\\delta m = \\bigl( \\nabla F\\bigr)^\\top\\ \\delta r\n", "$$\n", "\n", - "Please see other notebooks in this directory for more details, in particular the notebooks describing the self-adjoint modeling operators. \n", + "Please see other notebooks in the `seismic/self=adjoint` directory for more details, in particular the notebooks describing the self-adjoint modeling operators. \n", "\n", - "| Notebook description | Link | \n", + "| Self-adjoint notebook description | name | \n", "|:---|:---|\n", - "| Nonlinear operator | [sa_01_iso_implementation1.ipynb](sa_01_iso_implementation1.ipynb) |\n", - "| Jacobian linearized operators | [sa_02_iso_implementation2.ipynb](sa_02_iso_implementation2.ipynb) |\n", - "| Correctness tests |[ sa_03_iso_correctness.ipynb](sa_03_iso_correctness.ipynb) |" + "| Nonlinear operator | `sa_01_iso_implementation1.ipynb` |\n", + "| Jacobian linearized operators | `sa_02_iso_implementation2.ipynb` |\n", + "| Correctness tests | `sa_03_iso_correctness.ipynb` |" ] }, { From e24a9fff4b4c4228984552e17d5e09a669659dc5 Mon Sep 17 00:00:00 2001 From: wask Date: Fri, 28 Aug 2020 17:44:18 -0500 Subject: [PATCH 2/2] examples: fixed typo --- examples/seismic/tutorials/12_time_blocking.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/seismic/tutorials/12_time_blocking.ipynb b/examples/seismic/tutorials/12_time_blocking.ipynb index 01440b18e2..142f0d75a1 100644 --- a/examples/seismic/tutorials/12_time_blocking.ipynb +++ b/examples/seismic/tutorials/12_time_blocking.ipynb @@ -1352,7 +1352,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "## Delete the file used for seriazliation" + "## Delete the file used for serialization" ] }, {