Skip to content

Commit 7d7eed8

Browse files
committed
Add TODOs for sparse solvers
1 parent 1e3859d commit 7d7eed8

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

fdm-devito-notebooks/04_advec/advec.ipynb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2388,6 +2388,7 @@
23882388
"metadata": {},
23892389
"outputs": [],
23902390
"source": [
2391+
"# TODO: IMPLEMENT THIS IN DEVITO\n",
23912392
"import numpy as np\n",
23922393
"\n",
23932394
"def solver(eps, Nx, method='centered'):\n",

fdm-devito-notebooks/04_advec/src-advec/advec1D.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ def plot(u, x, t, n):
183183
plt.axis([0, L, -0.75, 1.1])
184184
plt.show()
185185

186+
186187
def run(scheme='UP', case='gaussian', C=1, dt=0.01):
187188
"""General admin routine for explicit and implicit solvers."""
188189

@@ -274,6 +275,8 @@ def plot(u, x, t, n):
274275
os.system(cmd)
275276
print('Integral of u:', integral.max(), integral.min())
276277

278+
279+
# TODO: IMPLEMENT THIS IN DEVITO
277280
def solver_theta(I, v, L, dt, C, T, theta=0.5, user_action=None, FE=False):
278281
"""
279282
Full solver for the model problem using the theta-rule

0 commit comments

Comments
 (0)