Error about Runing RIVER case

Hi. I am little confused about this error when I run the RIVER case in cppdefs.h
here is my configuration

but when I run the case, it was like " READ_INP ERROR: Cannot find input file ‘river_ini.nc’ " in my log
Didn’t I already define ANA_INITIAL in my cppdefs.h?

can anyone help? :smiley:

Hi, please post your complete cppdefs.h file to better understand the source of the error.

undef OPENMP

define MPI

define SOLVE3D

define UV_ADV

define UV_COR

define NONLIN_EOS

define TEMPERATURE

define SALINITY

define ANA_GRID

define MASKING

define ANA_INITIAL

define ANA_SMFLUX

define ANA_STFLUX

define ANA_SSFLUX

define ANA_SRFLUX

define ANA_BTFLUX

define ANA_BSFLUX

define LMD_MIXING

define LMD_SKPP

define LMD_BKPP

define LMD_RIMIX

define LMD_CONVEC

define PSOURCE

undef PSOURCE_MASS

define ANA_PSOURCE

define NS_PERIODIC

undef FLOATS

ifdef FLOATS

define RANDOM_WALK

ifdef RANDOM_WALK

define DIEL_MIGRATION

define RANDOM_VERTICAL

define RANDOM_HORIZONTAL

endif

endif

define NO_FRCFILE

undef RVTK_DEBUG

Hi, this is all in my cppdefs.h

All seems ok.

Are you using the croco.in.River provided in the TEST_CASES directory. It doesn’t mention any river_ini.nc input file, as expected from using ANA_INITIAL in cppdefs.h

yes, I use the croco.in.River, that is what I confused too!
obviously I don’t need river_ini.nc because I have defined ANA_INITIAL

I just modified the cppdefs.h in croco-v2.0.0

to
#define RIVER
and
#undef REGIONAL

compiled with

./jobcomp

and ran

./compile TEST_CASES/croco.in.River

and all went well.

Not sure what is your problem.

Omy, I just check my cppdefs.h . Founded I didn’t close regional !!!
Sorry for my stupid and thank your patiently answer :rofl: :rofl: :rofl: