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

Annotation of /trunk/dyn3d/test_fxhyp.f90

Parent Directory Parent Directory | Revision Log Revision Log


Revision 139 - (hide annotations)
Tue May 26 17:46:03 2015 UTC (9 years ago) by guez
Original Path: trunk/Sources/test_fxhyp.f
File size: 949 byte(s)
dynetat0 read rlonu, rlatu, rlonv, rlatv, cu_2d, cv_2d, aire_2d from
"start.nc" and then these variables were overwritten by
inigeom. Corrected this. Now, inigeom does not compute rlonu, rlatu,
rlonv and rlatv. Moreover, cu_2d, cv_2d, aire_2d are not written to
"restart.nc". Since xprimu, xprimv, xprimm025, xprimp025, rlatu1,
rlatu2, yprimu1, yprimu2 are computed at the same time as rlonu,
rlatu, rlonv, rlatv, and since it would not be convenient to separate
those computations, we decide to write xprimu, xprimv, xprimm025,
xprimp025, rlatu1, rlatu2, yprimu1, yprimu2 into "restart.nc", read
them from "start.nc" and not compute them in inigeom. So, in summary,
"start.nc" contains all the coordinates and their derivatives, and
inigeom only computes the 2D-variables.

Technical details:

Moved variables rlatu, rlonv, rlonu, rlatv, xprimu, xprimv from module
comgeom to module dynetat0_m. Upgraded local variables rlatu1,
yprimu1, rlatu2, yprimu2, xprimm025, xprimp025 of procedure inigeom to
variables of module dynetat0_m.

Removed unused local variable yprimu of procedure inigeom and
corresponding argument yyprimu of fyhyp.

Moved variables clat, clon, grossismx, grossismy, dzoomx, dzoomy,
taux, tauy from module serre to module dynetat0_m (since they are read
from "start.nc"). The default values are now defined in read_serre
instead of in the declarations. Changed name of module serre to
read_serre_m, no more module variable here.

The calls to fxhyp and fyhyp are moved from inigeom to etat0.

Side effects in programs other than gcm: etat0 and read_serre write
variables of module dynetat0; the programs test_fxyp and
test_inter_barxy need more source files.

Removed unused arguments len and nd of cv3_tracer. Removed unused
argument PPSOL of LWU.

Bug fix in test_inter_barxy: forgotten call to read_serre.

1 guez 123 program test_fxhyp
2    
3     USE dimens_m, ONLY: iim
4     use fxhyp_m, only: fxhyp
5     use jumble, only: new_unit
6 guez 139 use read_serre_m, only: read_serre
7 guez 123 use unit_nml_m, only: unit_nml
8    
9     implicit none
10    
11     REAL, dimension(iim + 1):: xprimm025, rlonv, xprimv, rlonu, xprimu, xprimp025
12     integer unit
13    
14     !--------------------------------------------------------
15    
16     call new_unit(unit_nml)
17     open(unit_nml, file="used_namelists.txt", status="replace", action="write")
18     call read_serre
19     call fxhyp(xprimm025, rlonv, xprimv, rlonu, xprimu, xprimp025)
20     close(unit_nml)
21    
22     unit = unit_nml
23     open(unit, file="test_fxhyp_out.txt", status="replace", action="write")
24     write(unit, fmt = *) "xprimm025 = ", xprimm025
25     write(unit, fmt = *) "rlonv = ", rlonv
26     write(unit, fmt = *) "xprimv = ", xprimv
27     write(unit, fmt = *) "rlonu = ", rlonu
28     write(unit, fmt = *) "xprimu = ", xprimu
29     write(unit, fmt = *) "xprimp025 = ", xprimp025
30     close(unit)
31    
32     end program test_fxhyp

  ViewVC Help
Powered by ViewVC 1.1.21