diff --git a/examples/2d.ipynb b/examples/2d.ipynb index de406d9..58919d5 100644 --- a/examples/2d.ipynb +++ b/examples/2d.ipynb @@ -136,7 +136,7 @@ "metadata": {}, "outputs": [], "source": [ - "output_dir = joinpath(pwd(), \"output\", \"2D\")\n", + "output_dir = joinpath(mktempdir(), \"output\", \"2D\")\n", "\n", "output_times = 0:0.1:5\n", "output_config = OutputConfig(output_dir, output_times);" diff --git a/examples/growth.ipynb b/examples/growth.ipynb index c4ffd98..e0237ad 100644 --- a/examples/growth.ipynb +++ b/examples/growth.ipynb @@ -890,7 +890,7 @@ } ], "source": [ - "output_dir = \"$(pwd())/output\"\n", + "output_dir = joinpath(mktempdir(), \"output\")\n", "num_saves = 100\n", "\n", "output_a = exp10.(range(log10(a_init), log10(a_final), num_saves))\n", diff --git a/examples/soliton_velocity.jl b/examples/soliton_velocity.jl index e2c47fc..20e8d1c 100644 --- a/examples/soliton_velocity.jl +++ b/examples/soliton_velocity.jl @@ -20,7 +20,7 @@ const velocity = [1, 0, 0] const phase = 0 const t0 = 0 -const output_dir = "output/vel/centered_on_soliton" +const output_dir = joinpath(mktempdir(), "output/vel/centered_on_soliton") function run_sim()