Skip to content

Problems in setting nodal-type Multifab #3879

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

You must be logged in to vote

Besides what @ajnonaka has mentioned regarding what you are printing exactly, my best guess on how to fix it based on your previous questions is,

// assuming phi_k has at least one ghost cell                                                                                                                                
phi_k.FillBoundary(geom.periodicity());
Dim3 lox = lbound(amerx::convert(geom.Domain(),face_bcoef[0].ixType()));
Dim3 hix = ubound(amerx::convert(geom.Domain(),face_bcoef[0].ixType()));

for ( MFIter mfi(phi_k); mfi.isValid(); ++mfi )
{
    const Box& xbx = mfi.nodaltilebox(0);
    auto const& face_bcoef_x = face_bcoef[0].array(mfi);
    auto const& array_phi_k = phi_k.array…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@WeiqunZhang
Comment options

Answer selected by solarmaterial
@WeiqunZhang
Comment options

@solarmaterial
Comment options

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