Skip to content
Snippets Groups Projects
Commit 0c1c6389 authored by Marco De Lucia's avatar Marco De Lucia
Browse files

removed stopCluster

parent cc303798
No related branches found
No related tags found
No related merge requests found
## Functions for dealing with surrogate simulations ## Functions for dealing with surrogate simulations
### Marco De Lucia, delucia@gfz-potsdam.de, 2009-2018 ### Marco De Lucia, delucia@gfz-potsdam.de, 2009-2018
### Time-stamp: "Last modified 2018-05-16 16:51:41 delucia" ### Time-stamp: "Last modified 2018-05-16 16:56:49 delucia"
##' Todo ##' Todo
...@@ -372,7 +372,6 @@ ReactTranspBalanceEq <- function(setup, init, maxtime, step=c("time","iter","fix ...@@ -372,7 +372,6 @@ ReactTranspBalanceEq <- function(setup, init, maxtime, step=c("time","iter","fix
on.exit({ on.exit({
msg("MAIN LOOP interrupted during iteration",iter,"!!") msg("MAIN LOOP interrupted during iteration",iter,"!!")
msg("returning last calculated chemistry.") msg("returning last calculated chemistry.")
parallel::stopCluster()
print(traceback()) print(traceback())
msg(" Bye.") msg(" Bye.")
attr(state_C,"timing") <- timing attr(state_C,"timing") <- timing
...@@ -467,8 +466,6 @@ ReactTranspBalanceEq <- function(setup, init, maxtime, step=c("time","iter","fix ...@@ -467,8 +466,6 @@ ReactTranspBalanceEq <- function(setup, init, maxtime, step=c("time","iter","fix
} }
on.exit() on.exit()
if (procs > 1)
parallel::stopCluster()
msg("total time of chemistry: ",round(sum(timing[,3]),3),"seconds") msg("total time of chemistry: ",round(sum(timing[,3]),3),"seconds")
msg("total number of simulations: ",sum(timing[,1])) msg("total number of simulations: ",sum(timing[,1]))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment