/[lmdze]/trunk/dyn3d/test_fxhyp.f
ViewVC logotype

Contents of /trunk/dyn3d/test_fxhyp.f

Parent Directory Parent Directory | Revision Log Revision Log


Revision 276 - (show annotations)
Thu Jul 12 14:49:20 2018 UTC (5 years, 11 months ago) by guez
File size: 1003 byte(s)
Move procedure read_serre from module read_serre_m to module
dynetat0_m, to avoid side effet on variables of module dynetat0_m.

Create procedure set_unit_nml to avoid side effect on variable of
module unit_nml_m.

Downgrade pctsrf from variable of module etat0_m to argument of etat0
and limit to avoid side effect on pctsrf.

Move variable zmasq from module dimphy to module phyetat0_m to avoid
side effect on zmasq.

1 program test_fxhyp
2
3 USE dimensions, ONLY: iim
4 use dynetat0_m, only: read_serre
5 use fxhyp_m, only: fxhyp
6 use unit_nml_m, only: unit_nml, set_unit_nml
7
8 implicit none
9
10 REAL, dimension(iim + 1):: xprimm025, rlonv, xprimv, rlonu, xprimu, xprimp025
11
12 !--------------------------------------------------------
13
14 call set_unit_nml
15 open(unit_nml, file="used_namelists.txt", status="replace", action="write")
16 call read_serre
17 call fxhyp(xprimm025, rlonv, xprimv, rlonu, xprimu, xprimp025)
18 close(unit_nml)
19
20 ! We can use the same unit number although we are not writing a namelist:
21 open(unit_nml, file="test_fxhyp_out.txt", status="replace", action="write")
22 write(unit_nml, fmt = *) "xprimm025 = ", xprimm025
23 write(unit_nml, fmt = *) "rlonv = ", rlonv
24 write(unit_nml, fmt = *) "xprimv = ", xprimv
25 write(unit_nml, fmt = *) "rlonu = ", rlonu
26 write(unit_nml, fmt = *) "xprimu = ", xprimu
27 write(unit_nml, fmt = *) "xprimp025 = ", xprimp025
28 close(unit_nml)
29
30 end program test_fxhyp

  ViewVC Help
Powered by ViewVC 1.1.21