1 |
C modified for external_forcing_DIC.F August 1999 |
2 |
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC |
3 |
c |
4 |
c modified swd Oct 01 and Feb 02, for use as package for c40_patch1 |
5 |
c modified to use with c44 and ptracers: swd May 2002 |
6 |
c modified to have carbonate and biological influences: swd June 2002 |
7 |
c modified for cfc: swd Sep 2003 |
8 |
C |
9 |
|
10 |
#include "CPP_OPTIONS.h" |
11 |
#include "GCHEM_OPTIONS.h" |
12 |
|
13 |
CStartOfInterFace |
14 |
SUBROUTINE CFC11_FORCING( PTR_CFC11, GCFC11, |
15 |
& bi,bj,imin,imax,jmin,jmax, |
16 |
& myIter,myTime,myThid) |
17 |
|
18 |
C /==========================================================\ |
19 |
C | SUBROUTINE CFC11_FORCING | |
20 |
C | o Calculate the changes to CFC11 through air-sea fluxes | |
21 |
C |==========================================================| |
22 |
IMPLICIT NONE |
23 |
|
24 |
C == GLobal variables == |
25 |
#include "SIZE.h" |
26 |
#include "DYNVARS.h" |
27 |
#include "EEPARAMS.h" |
28 |
#include "PARAMS.h" |
29 |
#include "GRID.h" |
30 |
#include "CFC.h" |
31 |
|
32 |
C == Routine arguments == |
33 |
INTEGER myIter |
34 |
_RL myTime |
35 |
INTEGER myThid |
36 |
_RL PTR_CFC11(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr) |
37 |
_RL GCFC11(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr) |
38 |
INTEGER bi, bj, imin, imax, jmin, jmax |
39 |
|
40 |
#ifdef ALLOW_PTRACERS |
41 |
#ifdef ALLOW_CFC |
42 |
C == Local variables == |
43 |
_RL SURCFC11(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
44 |
INTEGER I,J |
45 |
INTEGER myYear, lastYear, thisYear |
46 |
_RL dtinc, aWght, bWght |
47 |
_RL ACFC11north, ACFC11south |
48 |
_RL maxYear |
49 |
_RL a1, a2 |
50 |
|
51 |
DO j=1-OLy,sNy+OLy |
52 |
DO i=1-OLx,sNx+OLx |
53 |
SURCFC11(i,j)=0.d0 |
54 |
ENDDO |
55 |
ENDDO |
56 |
|
57 |
c find atmospheric CFC |
58 |
myYear=float(myIter-nIter0)*deltaTclock |
59 |
& /(360.d0*24.d0*3600.d0) |
60 |
lastYear=1+int(myYear+0.5) |
61 |
thisYear=lastYear+1 |
62 |
maxYear=cfc_yearend-cfc_yearbeg |
63 |
if (thisYear.lt.maxYear) then |
64 |
dtinc=myYear-float(lastYear-1) |
65 |
aWght=0.5d0+dtinc |
66 |
bWght=1.d0-aWght |
67 |
c IF (bi*bj.eq.1) |
68 |
c &write(0,*) 'myYear = ',myYear,lastYear,dtinc,aWght |
69 |
ACFC11north = ACFC11(lastYear,1)*bWght |
70 |
& + ACFC11(thisYear,1)*aWght |
71 |
ACFC11south = ACFC11(lastYear,2)*bWght |
72 |
& + ACFC11(thisYear,2)*aWght |
73 |
else |
74 |
ACFC11north = ACFC11(thisYear,1) |
75 |
ACFC11south = ACFC11(thisYear,1) |
76 |
endif |
77 |
c print*,'ACFC11north,ACFC11south', ACFC11north,ACFC11south, |
78 |
c & lastYear,thisYear |
79 |
DO j=1-OLy,sNy+OLy |
80 |
DO i=1-OLx,sNx+OLx |
81 |
if ((j.gt.int(sNy/2)+3.and.j.le.sNy).or.j.lt.1) then |
82 |
ATMOSCFC11(i,j,bi,bj)=ACFC11north |
83 |
endif |
84 |
if (j.ge.int(sNy/2)-3.and.j.le.int(sNy/2)+3) then |
85 |
a1=(float(j-int(sNy/2)+3)+.5)/7 |
86 |
a2=1.d0-a1 |
87 |
ATMOSCFC11(i,j,bi,bj)=a1*ACFC11south + |
88 |
& a2*ACFC11north |
89 |
endif |
90 |
if ((j.lt.int(sNy/2)-3.and.j.gt.0).or.j.gt.sNy) then |
91 |
ATMOSCFC11(i,j,bi,bj)=ACFC11south |
92 |
endif |
93 |
ENDDO |
94 |
ENDDO |
95 |
|
96 |
c cfc11 air-sea interaction |
97 |
CALL CFC11_SURFFORCING( PTR_CFC11, SURCFC11, |
98 |
& bi,bj,imin,imax,jmin,jmax, |
99 |
& myIter,myTime,myThid) |
100 |
|
101 |
DO j=1-OLy,sNy+OLy |
102 |
DO i=1-OLx,sNx+OLx |
103 |
GCFC11(i,j,1)=GCFC11(i,j,1)+SURCFC11(i,j) |
104 |
ENDDO |
105 |
ENDDO |
106 |
|
107 |
#endif |
108 |
#endif |
109 |
|
110 |
c |
111 |
RETURN |
112 |
END |