| 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 |