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

Contents of /trunk/libf/test_disvert.f90

Parent Directory Parent Directory | Revision Log Revision Log


Revision 22 - (show annotations)
Fri Jul 31 15:18:47 2009 UTC (14 years, 9 months ago) by guez
File size: 747 byte(s)
Superficial modifications
1 program test_disvert
2
3 use dimens_m, only: llm
4 use comvert, only: pa, disvert, ap, bp, preff
5 use new_unit_m, only: new_unit
6
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 call new_unit(unit)
22 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