Skip to content

Commit

Permalink
fixed how initial condition is stored
Browse files Browse the repository at this point in the history
  • Loading branch information
mkaguer committed Aug 3, 2023
1 parent 7e75cef commit 7e2d622
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions openpnm/contrib/_generic_multiphysics.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,7 @@ def run(self, x0, tspan, interval=None, integrator=None, g_tol=None,
self.soln = SolutionContainer()
for alg in algs:
# transient solution for each alg
x0 = alg.x.reshape((alg.Np, 1))
print(t0)
x0 = alg.x.reshape((alg.Np, 1)).copy()
soln = TransientSolution(t0, x0)
self.soln[alg.settings['quantity']] = soln
phase = network.project.phases[0]
Expand Down

0 comments on commit 7e2d622

Please sign in to comment.