Skip to content

Commit

Permalink
Julia update
Browse files Browse the repository at this point in the history
  • Loading branch information
davidzarruk committed Oct 6, 2018
1 parent 7b6a424 commit 72d2ef7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Julia_main_parallel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# House-keeping #
#--------------------------------#

using Distributed
using Distributions
using Compat.Dates
using SharedArrays
Expand All @@ -10,6 +11,9 @@ using SharedArrays
# Initialization #
#--------------------------------#

# Number of cores/workers
addprocs(5)

# Grid for x
@everywhere nx = 1500;
xmin = 0.1;
Expand Down
4 changes: 4 additions & 0 deletions Julia_main_pmap.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@
# House-keeping #
#--------------------------------#

using Distributed
using Distributions
using Compat.Dates

#--------------------------------#
# Initialization #
#--------------------------------#

# Number of cores/workers
addprocs(5)

# Grid for x
nx = 1500;
xmin = 0.1;
Expand Down

0 comments on commit 72d2ef7

Please sign in to comment.