Skip to content

Commit

Permalink
Make sure bdrN is initialized
Browse files Browse the repository at this point in the history
Because of changes added in af1de26, bc types that previously didn't
use bdrN do now.  This mod ensures that we don't return out of
updateMean before it is initialized.
  • Loading branch information
trevilo committed May 9, 2023
1 parent af1de26 commit 66773e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/inletBC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -464,8 +464,8 @@ void InletBC::computeBdrPrimitiveStateForGradient(const int i, const Vector &pri


void InletBC::updateMean(IntegrationRules *intRules, ParGridFunction *Up) {
if (inletType_ == SUB_DENS_VEL) return;
bdrN = 0;
if (inletType_ == SUB_DENS_VEL) return;

#ifdef _GPU_
DGNonLinearForm::setToZero_gpu(bdrUp, bdrUp.Size());
Expand Down
3 changes: 1 addition & 2 deletions src/outletBC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -472,9 +472,8 @@ void OutletBC::initBoundaryU(ParGridFunction *Up) {
}

void OutletBC::updateMean(IntegrationRules *intRules, ParGridFunction *Up) {
if (outletType_ == SUB_P) return;

bdrN = 0;
if (outletType_ == SUB_P) return;

#ifdef _GPU_
DGNonLinearForm::setToZero_gpu(bdrUp, bdrUp.Size());
Expand Down

0 comments on commit 66773e4

Please sign in to comment.