| 1 | subroutine init_chimie_B |
|---|
| 2 | c |
|---|
| 3 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
|---|
| 4 | c Scheme B |
|---|
| 5 | c |
|---|
| 6 | c subject: |
|---|
| 7 | c -------- |
|---|
| 8 | c |
|---|
| 9 | c Initialization of the photochemical scheme |
|---|
| 10 | c |
|---|
| 11 | c VERSION: 30/04/2003 |
|---|
| 12 | c |
|---|
| 13 | c This is dependent of the chemistry version: |
|---|
| 14 | c for scheme B its only purpose is reading the |
|---|
| 15 | c photodissociation rates lookup table |
|---|
| 16 | c |
|---|
| 17 | c Author: Franck Lefevre for scheme B |
|---|
| 18 | c |
|---|
| 19 | c Arguments: |
|---|
| 20 | c ---------- |
|---|
| 21 | c |
|---|
| 22 | c The output variable is jphot and is put in common chimiedata. |
|---|
| 23 | c |
|---|
| 24 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
|---|
| 25 | c |
|---|
| 26 | implicit none |
|---|
| 27 | c |
|---|
| 28 | #include "dimensions.h" |
|---|
| 29 | #include "chimiedata.h" |
|---|
| 30 | #include "datafile.h" |
|---|
| 31 | c |
|---|
| 32 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
|---|
| 33 | c local: |
|---|
| 34 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
|---|
| 35 | c |
|---|
| 36 | integer fic, ij, iozo, isza, itemp, iz, ierr |
|---|
| 37 | c |
|---|
| 38 | real xsza |
|---|
| 39 | c |
|---|
| 40 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
|---|
| 41 | c |
|---|
| 42 | fic = 81 |
|---|
| 43 | |
|---|
| 44 | open(fic, form = 'formatted', status = 'old', |
|---|
| 45 | &file =trim(datafile)//'/jmars.20030707',iostat=ierr) |
|---|
| 46 | |
|---|
| 47 | IF (ierr.NE.0) THEN |
|---|
| 48 | write(*,*)'Error : cannot open file jmars.20030707 ' |
|---|
| 49 | write(*,*)'(in aeronomars/init_chimie_B.F)' |
|---|
| 50 | write(*,*)'It should be in :',trim(datafile),'/' |
|---|
| 51 | write(*,*)'1) You can change this directory address in ' |
|---|
| 52 | write(*,*)' file phymars/datafile.h' |
|---|
| 53 | write(*,*)'2) If necessary jmars.20030707 (and other datafiles)' |
|---|
| 54 | write(*,*)' can be obtained online on:' |
|---|
| 55 | write(*,*)' http://www.lmd.jussieu.fr/~forget/datagcm/datafile' |
|---|
| 56 | STOP |
|---|
| 57 | ENDIF |
|---|
| 58 | |
|---|
| 59 | c |
|---|
| 60 | print*, 'init_chimie_B: lecture table des J...' |
|---|
| 61 | c |
|---|
| 62 | do itemp = 1,ntemp |
|---|
| 63 | do iozo = 1,nozo |
|---|
| 64 | do isza = 1,nsza |
|---|
| 65 | do iz = 200,0,-1 |
|---|
| 66 | read(fic,*) colairtab(iz), xsza, table_ozo(iozo) |
|---|
| 67 | read(fic,*) (jphot(itemp,isza,iz,iozo,ij), ij=1,7) |
|---|
| 68 | read(fic,*) (jphot(itemp,isza,iz,iozo,ij), ij=8,11) |
|---|
| 69 | do ij = 1,nd |
|---|
| 70 | if (jphot(itemp,isza,iz,iozo,ij) .eq. 1.e-30) then |
|---|
| 71 | jphot(itemp,isza,iz,iozo,ij) = 0. |
|---|
| 72 | end if |
|---|
| 73 | end do |
|---|
| 74 | end do |
|---|
| 75 | end do |
|---|
| 76 | end do |
|---|
| 77 | end do |
|---|
| 78 | c |
|---|
| 79 | print*, 'init_chimie_B: lecture table des J...ok' |
|---|
| 80 | close(fic) |
|---|
| 81 | c |
|---|
| 82 | return |
|---|
| 83 | end |
|---|