Skip to content

Commit

Permalink
fix for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
boriskaus committed Apr 21, 2024
1 parent 9804f8d commit 922cd17
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/LaMEM_ModelGeneration/Model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,11 @@ function create_initialsetup(model::Model, cores::Int64=1, args::String=""; verb
# write marker files to disk before running LaMEM
Model3D = CartData(model.Grid.Grid, (Phases=model.Grid.Phases,Temp=model.Grid.Temp));

if Sys.iswindows()
cores=1;
println("LaMEM_jll does not support parallel runs on windows; using 1 core instead")
end

if cores>1
PartFile = run_lamem_save_grid(model.Output.param_file_name, cores)

Expand Down

0 comments on commit 922cd17

Please sign in to comment.