Commit cd692f32 authored by SOLIMAN Sylvain's avatar SOLIMAN Sylvain

fixing some docs

parent 55c66d80
......@@ -15,22 +15,22 @@
add_conservation(Conservation) :-
biocham_command,
type(Conservation, solution),
% Avoid SWI-Prolog complaining about a string too long
Doc1 =
'declares a new mass conservation law for all the molecules matched by the
argument if it is a set, or for all molecules given with the corresponding
weight. During a numerical simulation, one of those variables will be
% Avoid a SWI-Prolog warning about long strings…
doc(
'declares a new mass conservation law for all molecules given with the
corresponding weight in \\argument{Conservation}. During a numerical
simulation, one of those variables will be
eliminated thanks to this conservation law. Be careful if you declare
conservation laws and then plot the result of a previous simulation, the
caption might not be correct.',
Doc2 =
caption might not be correct.'
),
doc(
'When added, the conservation law will be checked against the rules (i.e.
purely from stoichiometry), if that fails against the kinetics. Since
these checks are not complete, even a failure will be accepted with a
warning.',
atomics_to_string([Doc1, Doc2], ' ', Doc),
doc(Doc),
solution_to_list(Conservation, C),
warning.'
),
rule_editor:solution_to_list(Conservation, C),
add_item(conservation, C).
......@@ -38,8 +38,8 @@ delete_conservation(Conservation) :-
biocham_command,
type(Conservation, solution),
doc('removes the given mass conservation law.'),
solution_to_list(Conservation, C),
find_item([id: Id, type: conservation, item: C]),
rule_editor:solution_to_list(Conservation, C),
find_item([model: current_model, id: Id, type: conservation, item: C]),
delete_item(Id).
......@@ -74,7 +74,7 @@ search_conservations :-
search_conservations(Max) :-
biocham_command,
type(Max, int),
type(Max, integer),
doc(
'computes and displays the P-invariants of the system up to the given
maximal size. Such P-invariants are particular mass conservation laws
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment