Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Félix Hartmann
XyDyS
Commits
e10843f1
Commit
e10843f1
authored
Jul 17, 2018
by
Félix Hartmann
Browse files
[feature] Message printed in terminal when concentration becomes
negative.
parent
c27dd555
Changes
1
Hide whitespace changes
Inline
Side-by-side
cellfile.py
View file @
e10843f1
...
...
@@ -1016,6 +1016,10 @@ class CellFile(object):
BC_values_i
[
flux_indices_i
][:,
input_time_i
]
\
/
RdX_flux_i
u
[
i
]
=
u_i
for
j
,
elt
in
enumerate
(
u
[
i
]):
if
elt
<
0
:
print
(
"Negative concentration ({0}) in cell "
"{1}"
.
format
(
elt
,
j
+
1
))
current_time
+=
time_window
# update cell identities
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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