| Type | Intent | Optional | 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 |
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