I am setting up a configuration for the coastal region of mediterranean sea with CROCO. Upon using the thrifty crocotools box, I manage to see up my model domain etc. However, I notice my initial condition files were filled with NaN values.
Thinking this might be a one off issue that might to be relevant, I set up my croco.in file and other pre-processing files. On running the model, I was greeted with a flat error!
STEP time[DAYS] KINETIC_ENRG POTEN_ENRG TOTAL_ENRG NET_VOLUME trd
0 0.00000 0.000000000E+00 NaN NaN 9.0658100E+13 0
=======================================
= =
= STEP2D: ABNORMAL JOB END =
= BLOW UP =
= =
=======================================
VMAX (M/S) = NaN
IMAX JMAX = 35 9
IINT IEXT = 1 1
I assume the error is either in my initial condition which has the NaN values (as the Vmax calculated by the model during runtime shows NaN) or my timestep/configuration in croco.in is wrong.
I will be glad if I can be pointed to ways to solve this issue. Thanks
I am wondering if you have already solved this issue, since I am facing the same error, and I also found my initial file have some NaN values, and trying to solve it now.
Thanks in advance.
Seems you are doing a special configuration, forced by a CMIP6 run. I haven´t seen codes for that in the default CROCO_TOOLS scripts
Try to do a climatological (basic) run, 1 month. If all goes well, the problem would by, my guess, in your code to create initial conditions from that CMIP6 run.
For make the forcing files, I have actually edited the original ‘make_forcing.m’ file to adjust it for my forcing data. But maybe there are some issuses in there, so I will attach it. make_forcing.m (6.1 KB)
And also, not only my ‘croco_ini.nc’ have NaNs, but also my ‘croco_clm.nc’ have NaNs too. I don’t know if these two have any relation.
I’m sorry but I am not sure I fully understood this part, but about the ‘make_ini.m’ file for creating the initial condition for my case, I did not edit it at all, so should I also edit it? For instance, replace the data here :
(code from make_ini.m)
% Data climatologies file names:
%
% temp_month_data : monthly temperature climatology
% temp_ann_data : annual temperature climatology
% salt_month_data : monthly salinity climatology
% salt_ann_data : annual salinity climatology
%
temp_month_data = [climato_dir,‘temp_month.cdf’];
temp_ann_data = [climato_dir,‘temp_ann.cdf’];
insitu2pot = 1; %1: transform in-situ temperature to potential temperature
salt_month_data = [climato_dir,‘salt_month.cdf’];
salt_ann_data = [climato_dir,‘salt_ann.cdf’];
%