Skip to content

FaceDivFree interpolation for a staggered field #4075

Answered by WeiqunZhang
farhaddaei asked this question in Q&A
Discussion options

You must be logged in to vote

I assume you wanted to use the divergence free interpolater in FillPath. You should be able to call

FillPatchTwoLevels (Array<MF*, AMREX_SPACEDIM> const& mf, IntVect const& nghost, Real time,
and
InterpFromCoarseLevel (Array<MF*, AMREX_SPACEDIM> const& mf, IntVect const& nghost, Real time,
directly without using AmrLevel::FillPatch. For convenience, you might want to create a function say FillPatchBfield that does what AmrLevel::FillPatch does for other variables.

Aslo, AmrLevel has two virtual functions virtual void init (AmrLevel &old)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@farhaddaei
Comment options

@WeiqunZhang
Comment options

Answer selected by farhaddaei
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants