/[MITgcm]/MITgcm_contrib/verification_other/global1x1_tot/code_taueddy/cfc_atmos.F
ViewVC logotype

Annotation of /MITgcm_contrib/verification_other/global1x1_tot/code_taueddy/cfc_atmos.F

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


Revision 1.1 - (hide annotations) (download)
Sat Feb 4 02:45:03 2012 UTC (14 years, 9 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint64k, checkpoint64x, checkpoint64z, checkpoint64o, checkpoint64p, checkpoint64r, checkpoint64w, checkpoint64v, checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, checkpoint64m, checkpoint65z, checkpoint65x, checkpoint65y, checkpoint65r, checkpoint65s, checkpoint65p, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65u, checkpoint65j, checkpoint67a, checkpoint67b, checkpoint65i, checkpoint67d, checkpoint65m, checkpoint65c, checkpoint65a, checkpoint65f, checkpoint65e, checkpoint64i, checkpoint64h, checkpoint65h, checkpoint65, checkpoint64j, checkpoint65n, HEAD
move un-tested set-up from MITgcm/verification/global1x1_tot to Contrib/verification_other

1 jmc 1.1
2     #include "CPP_OPTIONS.h"
3     #include "GCHEM_OPTIONS.h"
4    
5     CStartOfInterface
6     SUBROUTINE CFC_ATMOS( myThid )
7     C /==========================================================\
8     C | SUBROUTINE CFC_ATMOS |
9     C | o read in timeseries of atmoshperic CFC
10     C |==========================================================|
11     C \==========================================================/
12     IMPLICIT NONE
13    
14     C === Global variables ===
15     #include "SIZE.h"
16     #include "EEPARAMS.h"
17     #include "PARAMS.h"
18     #include "GRID.h"
19     #include "DYNVARS.h"
20     #include "CFC.h"
21    
22     C == Routine arguments ==
23     C myThid - Number of this instance of INI_TR1
24     INTEGER myThid
25     integer i,j,bi,bj
26     CEndOfInterface
27    
28     C == Local variables ==
29     integer nTimePnts, Iunit, it
30     _RL year(100)
31     C msgBuf :: message buffer
32     CHARACTER*(MAX_LEN_MBUF) msgBuf
33    
34     #ifdef ALLOW_CFC
35    
36     _BEGIN_MASTER( mythid )
37     DO bj = myByLo(myThid), myByHi(myThid)
38     DO bi = myBxLo(myThid), myBxHi(myThid)
39     DO j=1-OLy,sNy+OLy
40     DO i=1-OLx,sNx+OLx
41     AtmosCFC11(i,j,bi,bj)=0.d0
42     AtmosCFC12(i,j,bi,bj)=0.d0
43     ENDDO
44     ENDDO
45     ENDDO
46     ENDDO
47     WRITE(msgBuf,'(A)')
48     & 'S/R CFC_ATMOS: reading CFC atmospheric data'
49     CALL PRINT_MESSAGE(msgBuf, standardMessageUnit,
50     & SQUEEZE_RIGHT , 1)
51     c
52     C read in CFC atmospheric timeseries data
53     cfc_yearbeg = 1990
54     cfc_yearend = 2005
55     nTimePnts=cfc_yearend-cfc_yearbeg
56     Iunit=28
57     OPEN(Iunit,FILE='cfc1112.atm',STATUS='old')
58     C skip 6 descriptor lines
59     DO i =1,6
60     READ(Iunit,*)
61     ENDDO
62     C Read in CFC11 and CFC12, N and S Hemisphere time histories
63     DO it = 1,nTimePnts
64     READ(Iunit,*) year(it),ACFC11(it,1),ACFC12(it,1),
65     & ACFC11(it,2),ACFC12(it,2)
66     WRITE(msgBuf,'(A,4F8.2)')
67     & 'year,acfc11_n,acfc12_n,acfc11_s,acfc12_s =',
68     & ACFC11(it,1),ACFC12(it,1),
69     & ACFC11(it,2),ACFC12(it,2)
70     CALL PRINT_MESSAGE(msgBuf, standardMessageUnit,
71     & SQUEEZE_RIGHT , 1)
72    
73     ENDDO
74     _END_MASTER(myThid)
75     c
76     #endif
77    
78    
79    
80     RETURN
81     END

  ViewVC Help
Powered by ViewVC 1.1.22