-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from michakraus/dev-parallel
Fix some parallel simulation issues
- Loading branch information
Showing
12 changed files
with
194 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name = "GeometricIntegrators" | ||
uuid = "dcce2d33-59f6-5b8d-9047-0defad88ae06" | ||
authors = ["Michael Kraus <[email protected]>"] | ||
version = "0.2.0" | ||
version = "0.2.1" | ||
|
||
[deps] | ||
DecFP = "55939f99-70c6-5e9b-8bb0-5071ed7d61fd" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# run with julia --track-allocation=user | ||
|
||
using GeometricIntegrators | ||
using GeometricIntegrators.TestProblems.HarmonicOscillatorProblem | ||
using Profile | ||
using Test | ||
|
||
set_config(:nls_atol_break, Inf) | ||
set_config(:nls_rtol_break, Inf) | ||
set_config(:nls_stol_break, Inf) | ||
|
||
|
||
Δt = 0.1 | ||
nt = 10000 | ||
ns = 100 | ||
|
||
nsave = 1 | ||
nwrte = 10000 | ||
|
||
h5file = "test.hdf5" | ||
|
||
ode = harmonic_oscillator_ode(vcat(rand(1,ns), zeros(1,ns))) | ||
#tab = getTableauImplicitMidpoint() | ||
tab = getTableauERK4() | ||
|
||
|
||
sim = Simulation(ode, tab, Δt, "Serial Harmonic Oscillator Test", h5file, nt; nsave=nsave, nwrite=nwrte) | ||
run!(sim) | ||
rm(h5file) | ||
|
||
sim = Simulation(ode, tab, Δt, "Serial Harmonic Oscillator Test", h5file, nt; nsave=nsave, nwrite=nwrte) | ||
|
||
Profile.clear() | ||
Profile.clear_malloc_data() | ||
|
||
@profile run!(sim) | ||
rm(h5file) | ||
|
||
sim = ParallelSimulation(ode, tab, Δt, "Parallel Harmonic Oscillator Test", h5file, nt; nsave=nsave, nwrite=nwrte) | ||
run!(sim) | ||
rm(h5file) | ||
|
||
sim = ParallelSimulation(ode, tab, Δt, "Parallel Harmonic Oscillator Test", h5file, nt; nsave=nsave, nwrite=nwrte) | ||
|
||
Profile.clear() | ||
Profile.clear_malloc_data() | ||
|
||
@profile run!(sim) | ||
rm(h5file) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.