/[lmdze]/trunk/libf/test_disvert.f90
ViewVC logotype

Annotation of /trunk/libf/test_disvert.f90

Parent Directory Parent Directory | Revision Log Revision Log


Revision 22 - (hide annotations)
Fri Jul 31 15:18:47 2009 UTC (14 years, 10 months ago) by guez
File size: 747 byte(s)
Superficial modifications
1 guez 3 program test_disvert
2    
3     use dimens_m, only: llm
4     use comvert, only: pa, disvert, ap, bp, preff
5 guez 7 use new_unit_m, only: new_unit
6 guez 3
7     implicit none
8    
9     integer unit, l
10     REAL sigma(llm+1) ! "sigma(l)" : à l'interface des couches "l" et "l-1"
11     real p(llm + 1) ! pressure at level, in Pa
12    
13     !---------------------
14    
15     print *, "llm = ", llm
16     pa = 5e4
17     call disvert
18     sigma = ap / pa + bp
19     p = ap + bp * preff
20    
21 guez 10 call new_unit(unit)
22 guez 3 open(unit, file="test_disvert.csv", status="replace", action="write")
23     write(unit, fmt=*) '"ap (Pa)" "bp" "sigma" "p (Pa)"' ! title line
24     do l = 1, llm
25     write(unit, fmt=*) ap(l), bp(l), sigma(l), p(l)
26     end do
27     close(unit)
28     print *, 'The file "test_disvert.csv" has been created.'
29    
30     end program test_disvert

  ViewVC Help
Powered by ViewVC 1.1.21