write_template_state_netcdf Interface

interface
public module subroutine write_template_state_netcdf(comm_handler, dirname, filename)

Arguments

Type IntentOptional Attributes Name
type(comm_handler_t), intent(in) :: comm_handler

Communication handler

character(len=*), intent(in), optional :: dirname

Directory, where snapshots files will be written

character(len=*), intent(in), optional :: filename

Filename, where state is written. The filename excludes the directory name, i.e. the final path is dirname/filename

Description

Writes state to netcdf file If filename is not present, it increases isnaps by one and writes to snaps_<isnaps>.nc If filename is present, it writes to filename, without increasing isnaps. This is useful for writing e.g. error states