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
Marco De Lucia
RedModRphree
Commits
0c1c6389
Commit
0c1c6389
authored
May 16, 2018
by
Marco De Lucia
Browse files
removed stopCluster
parent
cc303798
Changes
1
Hide whitespace changes
Inline
Side-by-side
R/Rphree_ReactTrans.R
View file @
0c1c6389
## Functions for dealing with surrogate simulations
### Marco De Lucia, delucia@gfz-potsdam.de, 2009-2018
### Time-stamp: "Last modified 2018-05-16 16:5
1
:4
1
delucia"
### Time-stamp: "Last modified 2018-05-16 16:5
6
:4
9
delucia"
##' Todo
...
...
@@ -372,7 +372,6 @@ ReactTranspBalanceEq <- function(setup, init, maxtime, step=c("time","iter","fix
on.exit
({
msg
(
"MAIN LOOP interrupted during iteration"
,
iter
,
"!!"
)
msg
(
"returning last calculated chemistry."
)
parallel
::
stopCluster
()
print
(
traceback
())
msg
(
" Bye."
)
attr
(
state_C
,
"timing"
)
<-
timing
...
...
@@ -467,8 +466,6 @@ ReactTranspBalanceEq <- function(setup, init, maxtime, step=c("time","iter","fix
}
on.exit
()
if
(
procs
>
1
)
parallel
::
stopCluster
()
msg
(
"total time of chemistry: "
,
round
(
sum
(
timing
[,
3
]),
3
),
"seconds"
)
msg
(
"total number of simulations: "
,
sum
(
timing
[,
1
]))
...
...
Write
Preview
Supports
Markdown
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