53 type(
chkp_t),
intent(in),
target :: chkp
54 character(len=*),
intent(in),
optional :: name
55 character(len=*),
intent(in),
optional :: path
56 character(len=*),
intent(in),
optional :: fmt
57 logical,
intent(in),
optional :: overwrite
58 character(len=1024) :: fname
59 character(len=10) :: suffix
62 if (
present(fmt))
then
63 if (fmt .eq.
'hdf5')
then
69 if (
present(name)) fname = trim(name)
70 if (
present(path)) fname = trim(path) // trim(fname)
71 fname = trim(fname) // trim(suffix)
73 call this%init_base(fname, overwrite = overwrite)
88 real(kind=
rp),
intent(in) :: t
90 call this%chkp%sync_host()
91 call this%file_%write(this%chkp, t)
Defines an output for a checkpoint.
subroutine chkp_output_free(this)
subroutine chkp_output_init(this, chkp, name, path, fmt, overwrite)
subroutine chkp_output_sample(this, t)
Sample a checkpoint at time t.
integer, parameter, public rp
Global precision used in computations.
Abstract type defining an output type.