Skip to content
Velimir V Vesselinov (monty) edited this page Feb 7, 2016 · 6 revisions
msub -j eo -l procs=1024,walltime=2:00:00:00
cd /lustre/scratch1/turquoise/vvv/waffle/mads/cwlspt02.jl
julia start-wtrw.jl

start-wtrw.jl:

info("Start ...")
include(joinpath(Pkg.dir("Mads"), "src/MadsParallel.jl"))

info("Set processors ...")
setprocs(ntasks_per_node=1)
@everywhere display(ENV["PATH"])

info("import Mads ...")
import Mads

info("import Mads ...")
Mads.quietoff()

@show nprocs()

info("Set working directories ...")
@everywhere workingdir = remotecall_fetch(1, ()->pwd())
@everywhere cd(workingdir)

info("Load Mads problem ...")
md = Mads.loadmadsfile(Pkg.dir("Mads") * "/examples/tests/test-sobol.mads")

info("Sensitivity analysis ...")
@time Mads.saltelli(md, N=400) # 400 forward runs

info("Parallel sensitivity analysis ...")
@time Mads.saltelliparallel(md, 4, N=100) # 100 forward runs on 4 nodes 
Clone this wiki locally