Skip to content
This repository was archived by the owner on Feb 21, 2023. It is now read-only.

Commit 8d37104

Browse files
committed
Further tidy up
1 parent 26ec590 commit 8d37104

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

devitoboundary/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from .structures import *
21
from .geometry import *
32
from .distance import *
43
from .stencils import *

devitoboundary/topography.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -261,10 +261,6 @@ def subs(self, spec):
261261
switchconfig(log_level='ERROR')(op_weights.apply)()
262262
# DIY Progress Bar
263263
print('■', end='', flush=True)
264-
for i in range(5):
265-
plt.imshow(w_x.data[:, 100, :, i])
266-
plt.colorbar()
267-
plt.show()
268264
print("\nWeight calculation complete.")
269265

270266
weights.append(Coefficient(deriv,

examples/seismic_topography_example.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import matplotlib.pyplot as plt
2+
import numpy as np
23

34
from devito import Grid, TimeFunction, Eq, solve, Operator, ConditionalDimension
45
from devitoboundary import ImmersedBoundary
@@ -78,6 +79,9 @@
7879
# And run
7980
op.apply(dt=dt)
8081

82+
outfile = 'data/seismic_topography_wavefield.npy'
83+
np.save(outfile, usave.data)
84+
"""
8185
plot_extent = [0, grid.extent[0],
8286
origin[2], grid.extent[2] + origin[2]]
8387
for i in range(usave.data.shape[0] - 1):
@@ -91,3 +95,4 @@
9195
plt.savefig("images/image-%s" % str(i))
9296
# plt.show()
9397
plt.close()
98+
"""

0 commit comments

Comments
 (0)