read_template_state_netcdf Interface

interface
public module subroutine read_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 read

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

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

Description

Reads state from netcdf file If filename is not present, it reads last from snaps_<isnaps>.nc with last available isnaps and sets isnaps to this value If filename is present it reads from this file and sets isnaps to 0