/[MITgcm]/MITgcm/pkg/atm_phys/atm_phys_check.F
ViewVC logotype

Annotation of /MITgcm/pkg/atm_phys/atm_phys_check.F

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


Revision 1.1 - (hide annotations) (download)
Thu May 16 19:54:42 2013 UTC (11 years, 1 month ago) by jmc
Branch: MAIN
CVS Tags: checkpoint64i, checkpoint64h
print value of few params and do basic check

1 jmc 1.1 C $Header: /u/gcmpack/MITgcm/pkg/mypackage/mypackage_check.F,v 1.6 2012/04/03 00:20:14 jmc Exp $
2     C $Name: $
3    
4     #include "ATM_PHYS_OPTIONS.h"
5    
6     C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
7     CBOP 0
8     C !ROUTINE: ATM_PHYS_CHECK
9    
10     C !INTERFACE:
11     SUBROUTINE ATM_PHYS_CHECK( myThid )
12    
13     C !DESCRIPTION:
14     C Check dependances with other packages
15    
16     C !USES:
17     IMPLICIT NONE
18     #include "SIZE.h"
19     #include "EEPARAMS.h"
20     #include "PARAMS.h"
21     #include "ATM_PHYS_PARAMS.h"
22    
23     C !INPUT PARAMETERS:
24     C myThid :: my Thread Id number
25     INTEGER myThid
26     CEOP
27    
28     #ifdef ALLOW_ATM_PHYS
29     C !LOCAL VARIABLES:
30     C msgBuf :: Informational/error message buffer
31     CHARACTER*(MAX_LEN_MBUF) msgBuf
32    
33     _BEGIN_MASTER(myThid)
34    
35     WRITE(msgBuf,'(A)') 'ATM_PHYS_CHECK: #define ALLOW_ATM_PHYS'
36     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
37     & SQUEEZE_RIGHT , 1)
38    
39     C-- Print out some kee parameters :
40     CALL WRITE_0D_L( atmPhys_addTendT, INDEX_NONE,
41     & 'atmPhys_addTendT =',
42     & ' /* apply Atm-Phys tendency to Temperature Eq.*/')
43     CALL WRITE_0D_L( atmPhys_addTendS, INDEX_NONE,
44     & 'atmPhys_addTendS =',
45     & ' /* apply Atm-Phys tendency to Salinity Eq.*/')
46     CALL WRITE_0D_L( atmPhys_addTendU, INDEX_NONE,
47     & 'atmPhys_addTendU =',
48     & ' /* apply Atm-Phys tendency to U momentum Eq.*/')
49     CALL WRITE_0D_L( atmPhys_addTendV, INDEX_NONE,
50     & 'atmPhys_addTendV =',
51     & ' /* apply Atm-Phys tendency to V momentum Eq.*/')
52     CALL WRITE_0D_L( atmPhys_stepSST, INDEX_NONE,
53     & 'atmPhys_stepSST =', ' /* step forward SST field */')
54    
55     CALL WRITE_0D_C( atmPhys_SSTFile, -1, INDEX_NONE,
56     & 'atmPhys_SSTFile =',' /* SST input file */')
57     CALL WRITE_0D_C( atmPhys_QflxFile, -1, INDEX_NONE,
58     & 'atmPhys_QflxFile =',' /* Q-flux input file */')
59    
60     C-- Check parameters:
61    
62     C- Put stops here if some flags are wrongly chosen.
63     C- For example, require this package to use tempStepping
64     IF ( .NOT.tempStepping .AND. atmPhys_addTendT ) THEN
65     WRITE(msgBuf,'(A)') 'An example requirement is:'
66     CALL PRINT_ERROR( msgBuf , 1)
67     WRITE(msgBuf,'(A)') 'atmPhys_addTendT needs tempStepping=.true.'
68     CALL PRINT_ERROR( msgBuf , 1)
69     CALL ALL_PROC_DIE( 0 )
70     STOP 'ABNORMAL END: S/R ATM_PHYS_CHECK'
71     ENDIF
72    
73     WRITE(msgBuf,'(A)') ' '
74     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
75     & SQUEEZE_RIGHT , 1)
76     _END_MASTER(myThid)
77    
78     #endif /* ALLOW_ATM_PHYS */
79    
80     RETURN
81     END

  ViewVC Help
Powered by ViewVC 1.1.22