/[MITgcm]/MITgcm_contrib/jscott/igsm/src/read_temstate.F
ViewVC logotype

Annotation of /MITgcm_contrib/jscott/igsm/src/read_temstate.F

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


Revision 1.2 - (hide annotations) (download)
Tue Sep 1 21:43:19 2009 UTC (15 years, 10 months ago) by jscott
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
file no longer used

1 jscott 1.1 #include "ctrparam.h"
2     subroutine soilcarbon(iyr)
3     #include "BD2G04.COM"
4     parameter (nl=1610,nt=35)
5     character *30, ll
6     character * 9, fltem
7     dimension aa(11,nl),bb(11),
8     & tcar(jm0)
9     data ncall /0/
10     if (ncall.eq.0) then
11     open (11,file='soilcarbon.dat',status='new')
12     endif
13     ncall=ncall+1
14     if(ncall/2*2.eq.ncall) then
15     fltem='temstateB'
16     else
17     fltem='temstateA'
18     endif
19     print *,fltem
20     open (10,file=fltem,status='old')
21     ss=0.0
22     sl=0.0
23     sl1=0.0
24     sl2=0.0
25     totcar=0.0
26     vegcar=0.0
27     soilcar=0.0
28     do j=1,jm
29     tcar(j)=0.0
30     do n=1,35
31     read (10,*,end=500)bb
32     tcar(j)=tcar(j)+bb(11)*bb(7)
33     totcar=totcar+bb(11)*bb(7)
34     vegcar=vegcar+bb(9)*bb(7)
35     soilcar=soilcar+bb(10)*bb(7)
36     sl2=sl2+bb(7)
37     enddo
38     a=dxyp(j)/(720*8)
39     c print *,j,bb(6),a,bb(6)/a,fland(j)
40     ss=ss+dxyp(j)
41     sl=sl+dxyp(j)*FDATA(1,J,2)
42     sl1=sl1+bb(6)*1.e6
43     enddo
44     CAR=totcar*1.e6/1.e15
45     VCAR=vegcar*1.e6/1.e15
46     SCAR=soilcar*1.e6/1.e15
47     c print *,aa
48     c print *,bb
49     print *,'SS=',ss,' SL=',SL,SL1,sl2*1.e6
50     print *,'CAR=',CAR
51     print *,'VCAR=',VCAR
52     print *,'SCAR=',SCAR
53     go to 600
54     500 continue
55     print *,'end of file'
56     600 continue
57     close (10)
58     write (11,*),iyr,CAR,VCAR,SCAR
59     return
60     end

  ViewVC Help
Powered by ViewVC 1.1.22