Skip to content

Commit

Permalink
style changes in FVFunctionDirichletBC.C and INSFVOutletPressureBC.C …
Browse files Browse the repository at this point in the history
  • Loading branch information
tanoret committed Nov 26, 2024
1 parent 33da269 commit 4b82ca1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion framework/src/fvbcs/FVFunctionDirichletBC.C
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ FVFunctionDirichletBC::boundaryValue(const FaceInfo & fi, const Moose::StateArg

if (state.state != 0 && state.iteration_type == Moose::SolutionIterationType::Time)
{
mooseAssert(state.state == 1, "We cannot access values beyond the previous time step.");
mooseAssert(state.state == 1, "We cannot access values beyond the previous time step.");
_function.value(_t_old, fi.faceCentroid());
}
else
Expand Down
12 changes: 6 additions & 6 deletions modules/navier_stokes/src/fvbcs/INSFVOutletPressureBC.C
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ INSFVOutletPressureBCTempl<T>::boundaryValue(const FaceInfo & fi,
else if (_function)
{
if (state.state != 0 && state.iteration_type == Moose::SolutionIterationType::Time)
{
mooseAssert(state.state == 1, "We cannot access values beyond the previous time step.");
_function->value(_t_old, fi.faceCentroid());
}
else
_function->value(_t, fi.faceCentroid());
{
mooseAssert(state.state == 1, "We cannot access values beyond the previous time step.");
_function->value(_t_old, fi.faceCentroid());
}
else
_function->value(_t, fi.faceCentroid());
}
else
return *_pp_value;
Expand Down

0 comments on commit 4b82ca1

Please sign in to comment.