source: trunk/LMDZ.MARS/libf/aeronomars/chemthermos_readini.F @ 1198

Last change on this file since 1198 was 1013, checked in by emillour, 11 years ago

Mars GCM:

  • Upgrade on the thermospheric photochemical reaction rates. These are now read in from a file "chemthermos_reactionrates.def".

FGG + JYC

File size: 958 bytes
Line 
1      subroutine chemthermos_readini
2
3      implicit none
4
5
6c     common variables and constants
7      include "dimensions.h"
8      include "dimphys.h"
9      include 'param.h'
10      include 'param_v4.h'
11      include 'datafile.h'
12      include "callkeys.h"
13
14
15c     local variables
16      real*8        rc1,rc2,rc3
17      integer       ierr,i
18
19c*************************+PROGRAM STARTS**************************
20
21!Opens external file to read reaction coefficients
22      open(unit=10,file='chemthermos_reactionrates.def',status='old',
23     $     iostat=ierr)
24      if(ierr.eq.0) then
25         read(10,*)
26         do i=1,61
27            read(10,*)
28            read(10,*)
29            read(10,*) rc1,rc2,rc3
30            rcoef(i,1)=rc1
31            rcoef(i,2)=rc2
32            rcoef(i,3)=rc3
33         enddo
34         close(10)
35      else
36         write(*,*)
37         write(*,*) 'Cannot find file chemthermos_reactionrates.def'
38         stop
39      endif
40     
41      end
Note: See TracBrowser for help on using the repository browser.