Problem when using NC4PAR and the DO_NOT_OVERWRITE key
FROM Mathieu LE Corre (SHOM) .
Problem when using NC4PAR and the DO_NOT_OVERWRITE key of cppdefs.h. During a restart we get the error message WRT_HIS ERROR while writing variable 'time_step' into history file. which is related to the NetCDF error: Attempt to extend dataset during NC_INDEPENDENT I/O operation This is due to the status of the netcdf when creating or opening it with NF_CREATE_PAR or NF_OPEN_PAR (which are used with NC4PAR) being set to nf_independent. When we create a new file the access is modified in nf_collective but this modification was not done for NF_OPEN_PAR Basically when the code had to continue to write in a file (without the overwrite) it crashed because it could not because of the bad status (nf_independent instead of nf_collective)
==
Problème lors de l'utilisation de NC4PAR et de la clé DO_NOT_OVERWRITE de cppdefs.h. Lors d'un restart on a le message d'erreur WRT_HIS ERROR while writing variable 'time_step' into history file. qui est lié à l'erreur NetCDF: Attempt to extend dataset during NC_INDEPENDENT I/O operation Cela est du au statut du netcdf quand on le créer ou on l'ouvre avec NF_CREATE_PAR ou NF_OPEN_PAR (qui sont utilisé avec NC4PAR) qui est mis en nf_independant. Lorsque l'on crée un nouveau fichier l'accès est modifié en nf_collective mais cette modification n'était pas faite pour le NF_OPEN_PAR
En gros lorsque le code devait continuer à écrire dans un fichier (sans l'overwrite) il planté car il ne pouvait pas du fait du mauvais status (nf_independant au lieu de nf_collective)