source: trunk/MESOSCALE/LMDZ.MARS/libf_gcm/aeronomars/param_read.F @ 1242

Last change on this file since 1242 was 57, checked in by aslmd, 14 years ago

mineur LMD_MM_MARS: ajout du GCM ancienne physique, systeme maintenant complet sur SVN (ne manque que la base de donnees d'etats initiaux)

File size: 5.8 KB
Line 
1      subroutine param_read
2
3      implicit none
4
5
6c     common variables and constants
7
8#include "param.h"
9#include "param_v3.h"
10#include "datafile.h"
11
12
13c     local variables
14
15      integer    i,j,k,inter                          !indexes
16      integer ierr,lnblnk
17      real       nada
18      external lnblnk
19
20     
21c*************************+PROGRAM STARTS**************************
22
23
24c     data
25
26      data anchint/4.9,5.3,6.1,12.8,2.0,6.9,11.8,0.4,1.9,4.9,0.9,4.0,
27     $6.9,4.9,4.9,10.2,5.6,1.9,0.9,0.9,0.9,0.9,3.7
28     $,13.1,3.9,6.0,4.8,23.9,8.4,8.5,26.8,7.5,127.6/
29
30      data (crscabsi2(1,j),j=1,ninter2) /0.0,4.42e-18,7.51e-18
31     $,1.498e-17,2.344e-17,2.388e-17,2.927E-17,3.161e-17,3.161e-17,
32     $3.4e-17,3.4e-17,2.588e-17,2.596e-17,2.248e-17,3.183e-17,
33     $1.284e-17/
34
35      data (crscabsi2(2,j),j=1,ninter2) /2.736e-19,1.055e-18,4.789e-18
36     $,1.063e-17,1.559e-17,1.698e-17,2.164e-17,2.241e-17,2.427e-17,
37     $2.444e-17,2.502e-17,2.516e-17,2.907e-17,3.649e-17,3.066e-17,
38     $2.093e-17/
39
40      data (crscabsi2(3,j),j=1,ninter2) /2.603e-19,6.985e-19,3.97e-18
41     $,6.621e-18,8.433e-18,9.011e-18,9.862e-18,1.033e-17,1.012e-17,
42     $1.033e-17,1.033e-17,1.034e-17,9.0e-18,3.564e-18,3.572e-18
43     $,3.47E-18/
44
45      data freccen /3.4,7.5,14.5,23.0,30.3,34.1,49.6,50.5,52.5,56.0,
46     $59.0,61.5,68.7,73.1,78.4,83.1,92.4,97.5,99.3,100.1,100.7,102.1,
47     $104.5,116.8,121.3,127.0,130.6,153.7,162.8,171.4
48     $,195.6,206.3,273.5/
49
50      data co2crsc195/3.691e-19,4.44216e-20,3.86945e-19,5.94208e-19,
51     $2.93217e-19,7.58769e-20,8.60192e-21,4.20007e-24,2.29996e-26/
52
53      data co2crsc295/3.691e-19,5.21572e-20,4.23488e-19,6.54728e-19,
54     $3.30227e-19,1.03183e-19,1.55722e-20,1.72317e-23,7.0e-25/
55
56
57c     Reads tabulated functions
58
59      open(210, status = 'old',
60     $file=datafile(1:lnblnk(datafile))//'/EUVDAT/coln.dat',iostat=ierr)
61
62      IF (ierr.NE.0) THEN
63       write(*,*)'cant find directory EUVDAT and content coln.dat'
64       write(*,*)'(in aeronomars/param_read.F)'
65       write(*,*)'It should be in :',datafile(1:lnblnk(datafile)),'/'
66       write(*,*)'1) You can change this directory address in '
67       write(*,*)'   file phymars/datafile.h'
68       write(*,*)'2) If necessary, EUVDAT (and other datafiles)'
69       write(*,*)'   can be obtained online on:'
70       write(*,*)'   http://www.lmd.jussieu.fr/~forget/datagcm/datafile'
71       STOP
72      ENDIF
73
74      open(220,file=datafile(1:lnblnk(datafile))//'/EUVDAT/j2_an.dat')
75      open(230,file=datafile(1:lnblnk(datafile))//'/EUVDAT/j3_an.dat')
76      open(240,file=datafile(1:lnblnk(datafile))//'/EUVDAT/j1_an.dat')
77      open(250,file=datafile(1:lnblnk(datafile))//'/EUVDAT/j2_bn.dat')
78      open(260,file=datafile(1:lnblnk(datafile))//'/EUVDAT/j2_cn.dat')
79      open(270,file=datafile(1:lnblnk(datafile))//'/EUVDAT/j1_bn.dat')
80      open(280,file=datafile(1:lnblnk(datafile))//'/EUVDAT/j1_cn.dat')
81      open(290,file=datafile(1:lnblnk(datafile))//'/EUVDAT/j1_dn.dat')
82      open(150,file=datafile(1:lnblnk(datafile))//'/EUVDAT/j4n.dat')
83      open(160,file=datafile(1:lnblnk(datafile))//'/EUVDAT/j5n.dat')
84      open(170,file=datafile(1:lnblnk(datafile))//'/EUVDAT/j6n.dat')
85
86      do i=210,290,10
87         read(i,*)
88         read(i,*)
89      end do
90
91      do i=150,170,10
92         read(i,*)
93         read(i,*)
94      end do
95
96      do i=nz2,1,-1
97        read(210,*) c23(i),(c123(j,i),j=2,ninter2),c12(i),c1(i),ch2o2(i)
98      end do
99
100      do i=nz2,1,-1
101         read(220,*) (jabsifotsint(j,2,i),j=1,ninter2)
102      end do
103     
104      do i=nz2,1,-1
105         read(230,*) (jabsifotsint(j,3,i),j=1,ninter2)
106      end do
107
108      do i=nz2,1,-1
109         read(240,*) (jabsifotsint(j,1,i),j=2,ninter2)
110      end do
111
112      do i=nz2,1,-1
113         read(250,*) (jabsifotsint(j,2,i),j=17,24)
114      end do
115
116      do i=nz2,1,-1
117         read(260,*) (jabsifotsint(j,2,i),j=25,31)
118      end do
119
120      do i=nz2,1,-1
121         read(270,*) (jabsifotsint(j,1,i),j=17,24)
122      end do
123
124      do i=nz2,1,-1
125         read(280,*) (jabsifotsint(j,1,i),j=25,31)
126      end do
127
128      do i=nz2,1,-1
129         read(290,*) jabsifotsint(32,1,i)
130      end do
131
132      do i=nz2,1,-1
133         read(160,*) (jabsifotsint(j,5,i),j=1,15)
134      end do
135
136      do i=nz2,1,-1
137         read(150,*) (jabsifotsint(j,4,i),j=25,31)
138      end do
139
140      do i=nz2,1,-1
141         read(170,*) (jabsifotsint(j,6,i),j=25,33)
142      end do
143
144      do i=210,290,10
145         close(i)
146      end do
147
148      do i=150,170,10
149         close(i)
150      end do
151
152
153c     reads t0
154
155      open(120,file=datafile(1:lnblnk(datafile))//'/EUVDAT/t0.dat')
156      do i=1,201
157         read(120,*)t0(i)
158      end do
159      close(120)
160
161      open(100,file=datafile(1:lnblnk(datafile))//'/EUVDAT/flujo.dat')
162      do i=1,ninter
163         read(100,*) inter,fluxtophr(i)
164      end do
165      close(100)
166
167
168      open(99,file=datafile(1:lnblnk(datafile))//'/EUVDAT/varflujo.dat')
169      read(99,*)
170      do i=1,24
171         read(99,*) inter,ct1(i),p1(i),ct2(i),p2(i),nada
172      end do
173      close(99)
174
175c     eficiencias de disociacion (de Torr et al, 1979)
176
177      do inter=1,11
178         efdisco2(inter) = 0.
179         efdiso2(inter) = 0.
180      end do
181
182      do inter=1,15
183         efdish2(inter) = 1.
184      end do
185
186      efdisco2(12) = 0.183
187      efdiso2(12) = 0.003
188
189      efdisco2(13) = 0.163
190      efdiso2(13) = 0.170
191
192      efdisco2(14) = 0.243
193      efdiso2(14) =0.180
194
195      efdisco2(15) = 0.323
196      efdiso2(15) =0.653
197
198      efdisco2(16) = 0.235
199      efdiso2(16) =0.616
200
201      do inter=17,32
202         efdisco2(inter) = 1.0
203      end do
204
205      efdiso2(17) = 0.399
206      do inter=18,20
207         efdiso2(inter) = 0.261
208      end do
209
210      do inter=21,23
211         efdiso2(inter) = 0.755
212      end do
213
214
215      do inter=24,31
216         efdiso2(inter) = 1.
217      end do
218
219      do inter=25,31
220         efdish2o(inter) = 1.
221      end do
222
223      do inter=25,33
224         efdish2o2(inter) = 1.
225      end do
226
227
228      return
229
230
231      end
232
Note: See TracBrowser for help on using the repository browser.