diff --git a/Julia_main_parallel.jl b/Julia_main_parallel.jl index 4afab49..939abd6 100644 --- a/Julia_main_parallel.jl +++ b/Julia_main_parallel.jl @@ -2,6 +2,7 @@ # House-keeping # #--------------------------------# +using Distributed using Distributions using Compat.Dates using SharedArrays @@ -10,6 +11,9 @@ using SharedArrays # Initialization # #--------------------------------# +# Number of cores/workers +addprocs(5) + # Grid for x @everywhere nx = 1500; xmin = 0.1; diff --git a/Julia_main_pmap.jl b/Julia_main_pmap.jl index b75f598..c5ed55a 100644 --- a/Julia_main_pmap.jl +++ b/Julia_main_pmap.jl @@ -2,6 +2,7 @@ # House-keeping # #--------------------------------# +using Distributed using Distributions using Compat.Dates @@ -9,6 +10,9 @@ using Compat.Dates # Initialization # #--------------------------------# +# Number of cores/workers +addprocs(5) + # Grid for x nx = 1500; xmin = 0.1;