Last change
on this file since 2599 was
1266,
checked in by aslmd, 11 years ago
|
LMDZ.MARS
IMPORTANT CHANGE
- Remove all reference/use of nlayermx and dimphys.h
- Made use of automatic arrays whenever arrays are needed with dimension nlayer
- Remove lots of obsolete reference to dimensions.h
- Converted iono.h and param_v4.h into corresponding modules
(with embedded subroutine to allocate arrays)
(no arrays allocated if thermosphere not used)
- Deleted param.h and put contents into module param_v4_h
- Adapted testphys1d, newstart, etc...
- Made DATA arrays in param_read to be initialized by subroutine
fill_data_thermos in module param_v4_h
- Optimized computations in paramfoto_compact (twice less dlog10 calculations)
- Checked consistency before/after modification in debug mode
- Checked performance is not impacted (same as before)
|
File size:
792 bytes
|
Line | |
---|
1 | subroutine chemthermos_readini |
---|
2 | |
---|
3 | use param_v4_h, only: rcoef |
---|
4 | implicit none |
---|
5 | |
---|
6 | c local variables |
---|
7 | real*8 rc1,rc2,rc3 |
---|
8 | integer ierr,i |
---|
9 | |
---|
10 | c*************************+PROGRAM STARTS************************** |
---|
11 | |
---|
12 | !Opens external file to read reaction coefficients |
---|
13 | open(unit=10,file='chemthermos_reactionrates.def',status='old', |
---|
14 | $ iostat=ierr) |
---|
15 | if(ierr.eq.0) then |
---|
16 | read(10,*) |
---|
17 | do i=1,61 |
---|
18 | read(10,*) |
---|
19 | read(10,*) |
---|
20 | read(10,*) rc1,rc2,rc3 |
---|
21 | rcoef(i,1)=rc1 |
---|
22 | rcoef(i,2)=rc2 |
---|
23 | rcoef(i,3)=rc3 |
---|
24 | enddo |
---|
25 | close(10) |
---|
26 | else |
---|
27 | write(*,*) |
---|
28 | write(*,*) 'Cannot find file chemthermos_reactionrates.def' |
---|
29 | stop |
---|
30 | endif |
---|
31 | |
---|
32 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.