Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Lifeware
biocham
Commits
f2a58053
Commit
f2a58053
authored
Jan 20, 2020
by
SOLIMAN Sylvain
Browse files
no choice points in units.pl
parent
39bd862d
Changes
1
Hide whitespace changes
Inline
Side-by-side
units.pl
View file @
f2a58053
...
...
@@ -35,7 +35,7 @@
Dimensional analysis infers dimensions for model parameters and checks their consistency.
In Biocham, only time and volume dimensions are considered, without units.
The dimension of a molecular concentration is volume$^{-1}$.
The dimension of a kinetic expression (i.e. reaction rate or influence force) is time$^{-1}$.
The dimension of a kinetic expression (i.e. reaction rate or influence force) is time$^{-1}$.
Warning: numbers have no dimension so kinetic parameters should be used in kinetic expressions instead of directly numbers.
'
).
...
...
@@ -171,7 +171,7 @@ find_parameter_dim(X ^ Y, (DimT, DimV), L) :-
DT2
=
DT
,
DV2
=
DV
;
Y
=
1
/
Z
,
Y
=
1
/
Z
,
DT1
=
DT
,
DV1
=
DV
,
DT2
=
DimT
,
...
...
@@ -274,15 +274,16 @@ find_parameter_dim(M, (DimT, DimV), _) :-
DimV
#=
-
1
.
find_parameter_dim
(
P
,
(
DimT
,
DimV
),
L
)
:-
parameter_value
(
P
,
_
),
%FF should check the expression
(
member
(((
DT
,
DV
)
-
P
),
L
)
->
parameter_value
(
P
,
_
),
%FF should check the expression
!,
(
member
(((
DT
,
DV
)
-
P
),
L
)
->
DimT
#=
DT
,
DimV
#=
DV
;
;
print_message
(
warning
,
uninitialized_parameter
(
P
))
%FF the dimensions for P should be added to L (using a difference list)
).
).
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment