Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
JCGoran committed Oct 10, 2024
1 parent ee0247f commit 2ae9db2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
11 changes: 1 addition & 10 deletions test/usecases/cvode/derivative.mod
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,14 @@ PARAMETER {
v5 = 0.3
r = 3
k = 0.2
nmodl_alpha = 1.2
nmodl_beta = 4.5
nmodl_gamma = 2.4
nmodl_delta = 7.5
}

STATE {var1 var2 var3 var4 var5}
STATE {var1 var2 var3}

INITIAL {
var1 = v1
var2 = v2
var3 = v3
var4 = v4
var5 = v5
}

BREAKPOINT {
Expand All @@ -40,7 +34,4 @@ DERIVATIVE equation {
var2' = -var2 * a
: logistic ODE
var3' = r * var3 * (1 - var3 / k)
: system of 2 ODEs (predator-prey model)
var4' = nmodl_alpha * var4 - nmodl_beta * var4 * var5
var5' = nmodl_delta * var4 * var5 - nmodl_gamma * var5
}
5 changes: 0 additions & 5 deletions test/usecases/cvode/test_cvode.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,3 @@ def simulate(rtol):

if __name__ == "__main__":
t, *x = simulate(rtol=1e-5)
# import matplotlib.pyplot as plt
# fig, ax = plt.subplots(nrows=len(x))
# for a, val in zip(ax, x):
# a.plot(t, val, ls="", marker="x", markersize=0.1)
# plt.show()

0 comments on commit 2ae9db2

Please sign in to comment.