Last change
on this file since 1243 was
1019,
checked in by emillour, 11 years ago
|
Common dynamics; keep up with updates (seq and ) in LMDZ5 (up tio rev 1845):
- General stuff:
- makelmdz_fcm: add options -j # (compile using # threads) and -full, and to keep up
with Earth model, possibility to compile with various versions of orchidee
- bld.cfg: adaptations to enable compiling using multiple threads
- build_gcm: adaptations to enable compiling using multiple threads
- makelmdz: keep up with Earth model: possibility to compile with various versions of orchidee + cosmetic changes + library directory name change
- bibio:
- wxios.F90 : Added for possible future use of XIOS library
- filtrez:
- mkl_dft_type.f90 & mkl_dfti.f90 : MKL (for MKL FFT) interface definitions
- filtreg_mod : limit use of FFT to parallel mode
- mod_filtre_fft.F90 & mod_filtre_fft_lov.F90 : swich to use parallel_lmdz
- dyn3d:
- abort_gcm.F : add things for xios
- advtrac.F90 : minor change in CFL outputs
- ce0l.F90 : indicesol.h is now module indice_sol_mod
- comvert.h : cosmetic change on comments
- gcm.F : add xios and use module indice_sol_mod (for INCA)
- inigeom.F : move two computations outside loop
- dyn3dpar:
- parallel.F90 => parallel_lmdz.F90 : and change all the "use parallel" into
"use parallel_lmdz" in all files in dyn3dpar
- comvert.h : cosmetic change on comments
- gcm.F : add xios and use module indice_sol_mod (for INCA)
- leapfrog_p.F : add xios + correction for times in Newtonian case
- ce0l.F90 : indicesol.h is now module indice_sol_mod
- inigeom.F : move two computations outside loop
EM
|
File size:
1.4 KB
|
Rev | Line | |
---|
[1] | 1 | SUBROUTINE massbarxy_p( masse, massebxy ) |
---|
[1019] | 2 | USE parallel_lmdz |
---|
[1] | 3 | implicit none |
---|
| 4 | c ********************************************************************** |
---|
| 5 | c |
---|
| 6 | c Calcule les moyennes en x et y de la masse d'air dans chaque maille. |
---|
| 7 | c ********************************************************************** |
---|
| 8 | c Auteurs : P. Le Van , Fr. Hourdin . |
---|
| 9 | c .......... |
---|
| 10 | c |
---|
| 11 | c .. masse est un argum. d'entree pour le s-pg ... |
---|
| 12 | c .. massebxy est un argum. de sortie pour le s-pg ... |
---|
| 13 | c |
---|
| 14 | c |
---|
| 15 | c IMPLICIT NONE |
---|
| 16 | c |
---|
| 17 | #include "dimensions.h" |
---|
| 18 | #include "paramet.h" |
---|
| 19 | #include "comconst.h" |
---|
| 20 | #include "comgeom.h" |
---|
| 21 | c |
---|
| 22 | REAL masse( ip1jmp1,llm ), massebxy( ip1jm,llm ) |
---|
| 23 | c |
---|
| 24 | INTEGER ij,l,ijb,ije |
---|
| 25 | |
---|
| 26 | |
---|
| 27 | ijb=ij_begin-iip1 |
---|
| 28 | ije=ij_end |
---|
| 29 | |
---|
| 30 | if (pole_nord) ijb=ijb+iip1 |
---|
| 31 | if (pole_sud) ije=ije-iip1 |
---|
| 32 | |
---|
| 33 | c$OMP DO SCHEDULE(STATIC,OMP_CHUNK) |
---|
| 34 | DO 100 l = 1 , llm |
---|
| 35 | c |
---|
| 36 | DO 5 ij = ijb, ije - 1 |
---|
| 37 | massebxy( ij,l ) = masse( ij ,l ) * alpha2( ij ) + |
---|
| 38 | + masse( ij+1 ,l ) * alpha3( ij+1 ) + |
---|
| 39 | + masse( ij+iip1,l ) * alpha1( ij+iip1 ) + |
---|
| 40 | + masse( ij+iip2,l ) * alpha4( ij+iip2 ) |
---|
| 41 | 5 CONTINUE |
---|
| 42 | |
---|
| 43 | c .... correction pour massebxy( iip1,j ) ........ |
---|
| 44 | |
---|
| 45 | CDIR$ IVDEP |
---|
| 46 | |
---|
| 47 | DO 7 ij = ijb+iip1-1, ije+iip1-1, iip1 |
---|
| 48 | massebxy( ij,l ) = massebxy( ij - iim,l ) |
---|
| 49 | 7 CONTINUE |
---|
| 50 | |
---|
| 51 | 100 CONTINUE |
---|
| 52 | c$OMP END DO NOWAIT |
---|
| 53 | c |
---|
| 54 | RETURN |
---|
| 55 | END |
---|
Note: See
TracBrowser
for help on using the repository browser.