Skip to content

Commit

Permalink
autocorrect when on windows as MPI on windows is currently broken
Browse files Browse the repository at this point in the history
  • Loading branch information
boriskaus committed Apr 21, 2024
1 parent c460ca1 commit c7d381d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/TM_Subduction_example.jl
Original file line number Diff line number Diff line change
Expand Up @@ -228,5 +228,8 @@ model.Solver = Solver( SolverType = "multigrid",
]
)


run_lamem(model, 8)
if Sys.iswindows()
run_lamem(model, 1)
else
run_lamem(model, 8)
end
4 changes: 4 additions & 0 deletions src/run_lamem_save_grid.jl
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ function run_lamem_save_grid(ParamFile::String, cores::Int64=1; verbose=true, di
if cores==1 & verbose==true
return print("No partitioning file required for 1 core model setup \n")
end
if iswindows() & cores>1
cores=1;
println("LaMEM_jll does not support parallel runs on windows; using 1 core instead")
end
cur_dir = pwd();
cd(directory)

Expand Down

0 comments on commit c7d381d

Please sign in to comment.