Skip to content
Merged
9 changes: 7 additions & 2 deletions Code/Source/solver/baf_ini.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,13 @@ void bc_ini(const ComMod& com_mod, const CmMod& cm_mod, bcType& lBc, faceType& l

int iM = lFa.iM;
int iFa = lBc.iFa;
lBc.gx.resize(lFa.nNo);
//if (.NOT.ALLOCATED(lBc.gx)) ALLOCATE(lBc.gx(lFa.nNo))

// lBc.gx may have values set when for example when
Comment thread
ktbolt marked this conversation as resolved.
// reading in a user-defined profile.
if (lBc.gx.size() == 0) {
Comment thread
ktbolt marked this conversation as resolved.
lBc.gx.resize(lFa.nNo);
}
Comment thread
ktbolt marked this conversation as resolved.

#ifdef debug_bc_ini
dmsg << "iM: " << iM;
dmsg << "iFa: " << iFa ;
Expand Down
Loading