Skip to content

Meaning of int bcfcomp in FillPatchSingleLevel() and int cbccomp, int fbccomp, and int bcscomp in FillPatchTwoLevels() #3929

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

You must be logged in to vote

Adding to what @cgilet said, bcfcomp will be passed to the physbcf argument. If your physbcf is amrex::PhysBCFunct and you have used Vector<BCRec> bcs(Ncomp) to create it, then amrex will assume that bcs[bcfcomp+icomp] is the boundary type for component dcomp+icomp of the destination multifab (i.e., mf) and component scomp+icomp of the source multifab (i.e., smf), where icomp is in [0,ncomp).

Replies: 1 comment 2 replies

Comment options

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

Answer selected by ZiyangHuang
@ZiyangHuang
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