Skip to content

Commit

Permalink
fluids: Add check to blasius for state variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jrwrigh committed Jun 6, 2024
1 parent 02560a9 commit 18cc0c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/fluids/problems/blasius.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,8 @@ PetscErrorCode NS_BLASIUS(ProblemData problem, DM dm, void *ctx, SimpleBC bc) {
} else if (diff_filter_mms) {
PetscCall(DifferentialFilterMmsICSetup(problem));
} else {
PetscCheck((user->phys->state_var == STATEVAR_CONSERVATIVE) || (user->app_ctx->test_type == TESTTYPE_DIFF_FILTER), user->comm,
PETSC_ERR_ARG_INCOMP, "Can only use conservative variables with Blasius and weak inflow");
problem->apply_inflow.qfunction = Blasius_Inflow;
problem->apply_inflow.qfunction_loc = Blasius_Inflow_loc;
problem->apply_inflow_jacobian.qfunction = Blasius_Inflow_Jacobian;
Expand Down

0 comments on commit 18cc0c1

Please sign in to comment.