Skip to content

Commit

Permalink
rename checkpointing
Browse files Browse the repository at this point in the history
  • Loading branch information
aelligp committed May 6, 2024
1 parent 30987f4 commit ecb54e7
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ function main2D(igg; ar=8, ny=16, nx=ny*8, figdir="figs2D", do_vtk =false)

# Data I/O and plotting ---------------------
if it == 1 || rem(it, 10) == 0
checkpointing(figdir, stokes, thermal.T, t)
checkpointing_hdf5(figdir, stokes, thermal.T, t)

if do_vtk
JustRelax.velocity2vertex!(Vx_v, Vy_v, @velocity(stokes)...)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ function main3D(igg; ar=8, ny=16, nx=ny*8, nz=ny*8, figdir="figs3D", do_vtk =fal

# Data I/O and plotting ---------------------
if it == 1 || rem(it, 10) == 0
checkpointing(figdir, stokes, thermal.T, t)
checkpointing_hdf5(figdir, stokes, thermal.T, t)

if do_vtk
velocity2vertex!(Vx_v, Vy_v, Vz_v, @velocity(stokes)...)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ function main2D(igg; figdir=figdir, nx=nx, ny=ny, do_vtk=false)

# # # Plotting -------------------------------------------------------
if it == 1 || rem(it, 1) == 0
checkpointing(figdir, stokes, thermal.T, t)
checkpointing_hdf5(figdir, stokes, thermal.T, t)

if igg.me == 0
if do_vtk
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ function main3D(igg; figdir = "output", nx = 64, ny = 64, nz = 64, do_vtk = fals
# # # Plotting -------------------------------------------------------
if it == 1 || rem(it, 1) == 0
(; η) = stokes.viscosity
checkpointing(figdir, stokes, thermal.T, t)
checkpointing_hdf5(figdir, stokes, thermal.T, t)

if igg.me == 0
if do_vtk
Expand Down
2 changes: 1 addition & 1 deletion miniapps/convection/Particles2D/Layered_convection2D.jl
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ function main2D(igg; ar=8, ny=16, nx=ny*8, figdir="figs2D", do_vtk =false)

# Data I/O and plotting ---------------------
if it == 1 || rem(it, 1) == 0
checkpointing(figdir, stokes, thermal.T, t)
checkpointing_hdf5(figdir, stokes, thermal.T, t)

if do_vtk
JustRelax.velocity2vertex!(Vx_v, Vy_v, @velocity(stokes)...)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ function main2D(igg; ar=8, ny=16, nx=ny*8, figdir="figs2D", do_vtk =false)

# Data I/O and plotting ---------------------
if it == 1 || rem(it, 25) == 0
checkpointing(figdir, stokes, thermal.T, t)
checkpointing_hdf5(figdir, stokes, thermal.T, t)

if do_vtk
JustRelax.velocity2vertex!(Vx_v, Vy_v, @velocity(stokes)...)
Expand Down
2 changes: 1 addition & 1 deletion miniapps/convection/Particles3D/Layered_convection3D.jl
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ function main3D(igg; ar=1, nx=16, ny=16, nz=16, figdir="figs3D", do_vtk =false)

# Data I/O and plotting ---------------------
if it == 1 || rem(it, 1) == 0
checkpointing(figdir, stokes, thermal.T, t)
checkpointing_hdf5(figdir, stokes, thermal.T, t)

if do_vtk
JustRelax.velocity2vertex!(Vx_v, Vy_v, Vz_v, @velocity(stokes)...)
Expand Down

0 comments on commit ecb54e7

Please sign in to comment.