65 integer,
intent(in) :: precision
66 character(len=*),
intent(in) :: name
67 character(len=*),
intent(in),
optional :: path
68 integer,
intent(in) :: nfields
69 character(len=1024) :: fname
71 if (
present(path))
then
72 fname = trim(path) // trim(name) //
'.fld'
74 fname = trim(name) //
'.fld'
77 call this%init_base(fname, precision)
79 call this%fields%init(nfields)
88 call this%fields%free()
96 real(kind=
rp),
intent(in) :: t
100 associate(fields => this%fields%items)
101 do i = 1,
size(fields)
104 sync = (i .eq.
size(fields)))
110 call this%file_%write(this%fields, t)
Copy data between host and device (or device and device)
Device abstraction, common interface for various accelerators.
integer, parameter, public device_to_host
Implements fld_file_output_t.
subroutine fld_file_output_free(this)
Destructor.
subroutine fld_file_output_init(this, precision, name, nfields, path)
Constructor.
subroutine fld_file_output_sample(this, t)
Writes the data.
integer, parameter neko_bcknd_device
integer, parameter, public rp
Global precision used in computations.
field_list_t, To be able to group fields together
A simple output saving a list of fields to a .fld file.
Abstract type defining an output type.