Skip to content

make_dynamic_model.sh: Skip tests on contents of my_switches.def if it doesn't exist

Kristian Gregorius Hustad requested to merge kghustad/external-imp into master

What does this MR do?

In make_dynamic_model.sh, the contents of my_switches.def in the install directory is used to determine whether debug flags or flags to enable CVODE should be passed when building the shared library with the ionic model. When openCARP is installed via CMake, this file is not present in the install directory, and I have therefore added an if test for the presence of this file before trying check its contents to prevent confusing error messages for the user.

Related issues

None

Author's checklist

  • Follow the Contribution Guidelines.
  • Describe your change in the CHANGELOG.md file in the top-level folder of the openCARP repository.
  • Apply the appropriate labels.

Reviewer's checklist

All reviewers can help ensure accuracy, clarity, completeness, and adherence to the Contribution Guidelines.

Reviewer

  • Review by a code reviewer or other selected colleague to confirm accuracy, clarity, and completeness. This can be skipped for minor fixes without substantive content changes.

Maintainer

  • Review by assigned maintainer, who can always request/require the above reviews.
  • Ensure a release milestone is set.
Edited by Jorge Sanchez

Merge request reports