Commit 78f02223 authored by SOLIMAN Sylvain's avatar SOLIMAN Sylvain

current model… or maybe not

parent e47e8ae3
......@@ -39,24 +39,23 @@ delete_conservation(Conservation) :-
biocham_command,
type(Conservation, solution),
doc('removes the given mass conservation law.'),
find_item(
[model: current_model, id: Id, type: conservation, item: Conservation]),
% model: current_model?
find_item([id: Id, type: conservation, item: Conservation]),
delete_item(Id).
delete_conservations :-
biocham_command,
doc('removes all mass conservation laws.'),
forall(
item([model: current_model, kind: conservation, id: Id]),
delete_item(Id)
).
% model: current_model?
delete_items([kind: conservation]).
list_conservations :-
biocham_command,
doc('prints out all the mass conservation laws.'),
list_items([model: current_model, kind: conservation]).
% model: current_model?
list_items([kind: conservation]).
check_conservations :-
......@@ -68,7 +67,9 @@ check_conservations :-
compute_ode,
forall(
(
item([model: current_model, kind: conservation, id: Id]),
% model: current_model? compute_ode already supposes a single model
% otherwise ofr each selected model, get all conservations and check
item([kind: conservation, id: Id]),
get_annotation(Id, conservation_list, C)
),
check_conservation(C)
......@@ -120,7 +121,8 @@ check_conservation(C) :-
check_conserv_reactions(C) :-
forall(
(
item([model: current_model, kind: reaction, item: Item]),
% model: current_model?
item([kind: reaction, item: Item]),
reaction(Item, _Kinetics, Reactants, Products)
),
(
......
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