Ask Your Question
0

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

asked 2021-01-10 05:20:22 +0100

DJ gravatar image

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

C:\fakepath\internal.log

C:\fakepath\cppdefs.h

C:\fakepath\croco.in

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2021-01-11 14:27:27 +0100

Rachid gravatar image

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

edit flag offensive delete link more
0

answered 2021-01-11 17:46:41 +0100

DJ gravatar image

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

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2021-01-10 05:20:22 +0100

Seen: 25 times

Last updated: Jan 11