Skip to content

Commit

Permalink
add check
Browse files Browse the repository at this point in the history
  • Loading branch information
scottaiton committed Jan 11, 2024
1 parent d96a7a2 commit 8243e43
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/patches/clawpatch/fclaw2d_clawpatch_options.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,13 @@ clawpatch_check(fclaw2d_clawpatch_options_t *clawpatch_opt)
return FCLAW_EXIT_ERROR;
}

if (clawpatch_opt->vtk_patch_threshold < 0)
{
fclaw_global_essentialf("Clawpatch error : vtk-patch-threshold must be " \
"non-negative.\n");
return FCLAW_EXIT_ERROR;
}

return FCLAW_NOEXIT;
}

Expand Down

0 comments on commit 8243e43

Please sign in to comment.