1 |
C $Header: $ |
2 |
C $Name: $ |
3 |
|
4 |
#include "CPP_OPTIONS.h" |
5 |
|
6 |
SUBROUTINE ECCO_CHECK( myThid ) |
7 |
C /==========================================================\ |
8 |
C | SUBROUTINE ECCO_CHECK | |
9 |
C | o Check runtime activated packages have been built in. | |
10 |
C |==========================================================| |
11 |
C | All packages can be selected/deselected at build time | |
12 |
C | ( when code is compiled ) and activated/deactivated at | |
13 |
C | runtime. This routine does a quick check to trap packages| |
14 |
C | that were activated at runtime but that were not compiled| |
15 |
C | in at build time. | |
16 |
C \==========================================================/ |
17 |
IMPLICIT NONE |
18 |
|
19 |
C === Global variables === |
20 |
#include "SIZE.h" |
21 |
#include "EEPARAMS.h" |
22 |
#include "PARAMS.h" |
23 |
|
24 |
#include "ecco_cost.h" |
25 |
#include "ctrl.h" |
26 |
#include "ctrl_dummy.h" |
27 |
#include "optim.h" |
28 |
#include "DYNVARS.h" |
29 |
#ifdef ALLOW_PROFILES |
30 |
#include "profiles.h" |
31 |
#endif |
32 |
|
33 |
C === Routine arguments === |
34 |
C myThid - Number of this instances |
35 |
INTEGER myThid |
36 |
|
37 |
C === Local variables === |
38 |
C msgBuf - Informational/error meesage buffer |
39 |
CHARACTER*(MAX_LEN_MBUF) msgBuf |
40 |
|
41 |
_BEGIN_MASTER(myThid) |
42 |
|
43 |
#ifdef ALLOW_TRANSPORT_COST_CONTRIBUTION |
44 |
IF ( ndaysrec .GT. maxNumDays ) THEN |
45 |
WRITE(msgBuf,'(2A,2I)') |
46 |
& 'ECCO_CHECK: for ALLOW_TRANSPORT_COST_CONTRIBUTION: ', |
47 |
& 'ndaysrec > maxNumDays in ecco_cost.h ', |
48 |
& ndaysrec, maxNumDays |
49 |
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
50 |
& SQUEEZE_RIGHT , myThid ) |
51 |
CALL PRINT_ERROR( msgBuf , myThid ) |
52 |
STOP 'ABNORMAL END: S/R ECCO_CHECK' |
53 |
ENDIF |
54 |
#endif |
55 |
|
56 |
_END_MASTER(myThid) |
57 |
|
58 |
RETURN |
59 |
END |