croco error: 395 ERROR: more than one configuration in "cppdefs.h"

Hi,

I tried to run CROCO v1.1 and had an error. I ran the upwelling test case and it worked fine. Then I ran the internal tide case and I had the following errors.

ERROR: more than one configuration in “cppdefs.h”.
READ_INP ERROR: A total of 1 configuration errors discovered.

I had the same errors when I ran my own case on internal tides.
I wonder if someone can point out what went wrong.
I vaguely remember that when I ran a similar model for v1.0 a while ago, I thought the model did not have the errors.

I attach cppdefs.h and croco.in as well as the error log.

Thanks in advance.

-DJ

internal.log

cppdefs.h

croco.in

Hi
I think (not tested) the logic to test the cpp switches assumes cppdefs.h as the following structure:

#define INTERNAL

#ifdef INTERNAL
the cpp switches here

#endif /* END OF CONFIGURATION CHOICE */

#include “cppdefs_dev.h”

#include “set_global_definitions.h”

So defining your configuration and testing if it’s defined even if it’s the only one

I hope it helps

Rachid

Yes. Your suggestion did work. I appreciate your help. I wish this solution was included in the CROCO manual/tutorial. -DJ