Improvement of media models: Adding advanced option to change 'assert()' level from error to warning
What is the problem?
All media models and functions have assert() statements that check the values of adsorption potential A and specific volume of adsorbate W: If the model or function calculates values that violate the assert() condition, the current evaluation will be aborted. However, often the assert() condition only is violated for a few seconds, for example, if the simulated cycle switches from adsorption phase to desorption phase and vice versa. Thus, the assert() statement aborts the current evaluation although the simulation model would work correct.
Why do we want to solve it?
We want to solve this problem in order to avoid abortions that are not necessary.
How do we want to solve it?
We want to add an advanced option that allows to change the assert() level from 'error' to 'warning'. The default setting still remains 'error' and only experienced users should change it to 'warning'.