Skip to content

Commit

Permalink
fix runtests_study
Browse files Browse the repository at this point in the history
close #777
  • Loading branch information
orso82 committed Dec 8, 2024
1 parent c928b7e commit fbb3c97
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions studies/DatabaseGenerator.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using ProgressMeter
import ProgressMeter
#= ====================== =#
# StudyDatabaseGenerator #
#= ====================== =#
Expand Down Expand Up @@ -91,7 +91,7 @@ function _run(study::StudyDatabaseGenerator)

# paraller run
println("running $(sty.n_simulations) simulations with $(sty.n_workers) workers on $(sty.server)")
results = @showprogress pmap(item -> run_case(study, item), iterator)
ProgressMeter.@showprogress pmap(item -> run_case(study, item), iterator)

analyze(study)

Expand Down
3 changes: 2 additions & 1 deletion test/Project.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[deps]
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b"
Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b"
ProgressMeter = "92933f4c-e287-5a05-a399-4b506db050ca"
1 change: 1 addition & 0 deletions test/runtests_study.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ using Distributed
ini.core_profiles.ne_value = 0.2 [0.2, 1.0]

@everywhere import FUSE
@everywhere import ProgressMeter

@everywhere function workflow_DatabaseGenerator(dd::FUSE.IMAS.dd, ini::FUSE.ParametersAllInits, act::FUSE.ParametersAllActors)
FUSE.init(dd, ini, act)
Expand Down

0 comments on commit fbb3c97

Please sign in to comment.