Skip to content

Commit

Permalink
Merge pull request CEED#1598 from CEED/jrwrigh/blasius_check_var
Browse files Browse the repository at this point in the history
fluids: Add check to blasius for state variable and weak inflow
  • Loading branch information
jrwrigh authored Jun 6, 2024
2 parents 02560a9 + 18cc0c1 commit 4bb93ec
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 4bb93ec

Please sign in to comment.