I am trying to set up online particle tracking in CROCO but am having some difficulties. I firstly tried implementing floats in my working high-resolution hindcast configuration but was getting segmentation faults so I tried it with the BASIN test case instead.
When I run the BASIN test case in serial (without MPI), the floats module works well and I get sensible output. However, when I run the BASIN test case with MPI (regardless of the number of cores), the model crashes after the first time-step with the following error:
WRT_FLT ERROR while writing variable 'time_step' into float file.
Time record: 2 netCDF error code -33
Cause of error: NetCDF: Not a valid ID mynode = 0
WRT_FLT ERROR: Cannot synchronize/close float netcdf file.
(To be clear, the BASIN test case works fine with MPI if floats is not used). I am using the latest croco-v1.1 and have experienced the same issue across multiple machines.
Does anybody else has a working MPI configuration with floats and if there are any special configuration options that are required?