OpenDA has upgraded it's netCDF library from netcdf3 to netcdf4.
When running Wflow from OpenDA with netcdf4, the Wflow forcing file is now locked. This can be resolved by setting the environment variable HDF5_USE_FILE_LOCKING=FALSE. With this setting OpenDA can update the forcing in the forcing file. However, the update is not picked up by Wflow, this will only work if the forcing file is closed and opened again by Wfow.
Possible solutions:
-
Reopen the file from Wfow after each OpenDA update. Disadvantage is that this will make Wflow slower and probably needs an OpenDA (or other application that updates file based dynamic input) specific implementation.
-
Update the forcing through BMI. Probably most clean solution. Wflow then needs to skip the update of forcing variable(s).
OpenDA has upgraded it's netCDF library from netcdf3 to netcdf4.
When running Wflow from OpenDA with netcdf4, the Wflow forcing file is now locked. This can be resolved by setting the environment variable
HDF5_USE_FILE_LOCKING=FALSE. With this setting OpenDA can update the forcing in the forcing file. However, the update is not picked up by Wflow, this will only work if the forcing file is closed and opened again by Wfow.Possible solutions:
Reopen the file from Wfow after each OpenDA update. Disadvantage is that this will make Wflow slower and probably needs an OpenDA (or other application that updates file based dynamic input) specific implementation.
Update the forcing through BMI. Probably most clean solution. Wflow then needs to skip the update of forcing variable(s).