/[MITgcm]/MITgcm/pkg/ecco/ecco_check.F
ViewVC logotype

Contents of /MITgcm/pkg/ecco/ecco_check.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download)
Thu Sep 20 18:23:33 2007 UTC (16 years, 9 months ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint59h
Changes since 1.2: +25 -1 lines
Adding cost function for daily Florida Strait transport.

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

  ViewVC Help
Powered by ViewVC 1.1.22