after creating a new file and making all definitions, one has to call end_def_mode
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(t_ncfile), | intent(inout) | :: | sf |
self |
SUBROUTINE ncfile_end_def_mode(sf) ! MODULES IMPLICIT NONE !------------------------------------------------------------------------------------------------------------------------------- ! INPUT VARIABLES !------------------------------------------------------------------------------------------------------------------------------- ! OUTPUT VARIABLES CLASS(t_ncfile),INTENT(INOUT):: sf !! self !=============================================================================================================================== CALL mpi_check_single_access() #if NETCDF sf%ioError = nf90_enddef(sf%nc_id) CALL sf%handle_error("finalize definition mode") #endif /*NETCDF*/ END SUBROUTINE ncfile_end_def_mode