Skip to content

Commit

Permalink
(Temporarily) replacing project with interpolate in solve_forward (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddundo committed Mar 5, 2024
1 parent 670a4e5 commit aa719f4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions goalie/mesh_seq.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from firedrake.petsc import PETSc
from firedrake.pyplot import triplot
from .function_data import ForwardSolutionData
from .interpolation import project
from .log import pyrint, debug, warning, info, logger, DEBUG
from .options import AdaptParameters
from animate.quality import QualityMeasure
Expand Down Expand Up @@ -324,7 +323,9 @@ def get_checkpoints(
checkpoints.append(
AttrDict(
{
field: project(sols[field], fs[i + 1])
field: firedrake.Function(fs[i + 1]).interpolate(
sols[field]
)
for field, fs in self._fs.items()
}
)
Expand Down Expand Up @@ -585,7 +586,9 @@ def solve_forward(self, solver_kwargs: dict = {}) -> AttrDict:
if i < num_subintervals - 1:
checkpoint = AttrDict(
{
field: project(checkpoint[field], fs[i + 1])
field: firedrake.Function(fs[i + 1]).interpolate(
checkpoint[field]
)
for field, fs in self._fs.items()
}
)
Expand Down

0 comments on commit aa719f4

Please sign in to comment.