From 72d2ef751fe595ec8a49bbe3cb080455e406c6ca Mon Sep 17 00:00:00 2001 From: David Zarruk Valencia Date: Sat, 6 Oct 2018 11:45:58 -0500 Subject: [PATCH] Julia update --- Julia_main_parallel.jl | 4 ++++ Julia_main_pmap.jl | 4 ++++ 2 files changed, 8 insertions(+) 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;