Skip to content

Commit a4de7c8

Browse files
committed
update warning
1 parent 807811e commit a4de7c8

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/reactionsystem_conversions.jl

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -453,10 +453,15 @@ COMPLETENESS_ERROR = "A ReactionSystem must be complete before it can be convert
453453
# Used to, when required, display a warning about conservation law removeal and remake.
454454
function check_cons_warning(remove_conserved, remove_conserved_warn)
455455
(remove_conserved && remove_conserved_warn) || return
456-
@warn "You are creating a system or problem while eliminating conserved quantities. Please note, due to limitations / design choices in ModelingToolkit
457-
if you use the created system to create a problem (e.g. an `ODEProblem`), or are directly creating a problem, you *should not*
458-
modify that problem's initial conditions for species (e.g. using `remake`). Changing initial conditions must be done by creating a new Problem from your reaction system or the ModelingToolkit system you converted it into with the new initial condition map. Modification of parameter values
459-
is still possible, and directly setting numerical values for any conservation law constants will work. You might get this warning when creating a problem directly.
456+
@warn "You are creating a system or problem while eliminating conserved quantities. Please note,
457+
due to limitations / design choices in ModelingToolkit if you use the created system to
458+
create a problem (e.g. an `ODEProblem`), or are directly creating a problem, you *should not*
459+
modify that problem's initial conditions for species (e.g. using `remake`). Changing initial
460+
conditions must be done by creating a new Problem from your reaction system or the
461+
ModelingToolkit system you converted it into with the new initial condition map.
462+
Modification of parameter values is still possible, *except* for the modification of any
463+
conservation law constants ($CONSERVED_CONSTANT_SYMBOL), which is not possible. You might
464+
get this warning when creating a problem directly.
460465
461466
You can remove this warning by setting `remove_conserved_warn = false`."
462467
end

0 commit comments

Comments
 (0)