source: trunk/LMDZ.COMMON/libf/dyn3dpar/dudv1_p.F @ 3537

Last change on this file since 3537 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.7 KB
Line 
1      SUBROUTINE dudv1_p ( vorpot, pbaru, pbarv, du, dv )
2      USE parallel_lmdz
3      IMPLICIT NONE
4c
5c-----------------------------------------------------------------------
6c
7c   Auteur:   P. Le Van
8c   -------
9c
10c   Objet:
11c   ------
12c   calcul du terme de  rotation
13c   ce terme est ajoute a  d(ucov)/dt et a d(vcov)/dt  ..
14c   vorpot, pbaru et pbarv sont des arguments d'entree  pour le s-pg ..
15c   du  et dv              sont des arguments de sortie pour le s-pg ..
16c
17c-----------------------------------------------------------------------
18
19#include "dimensions.h"
20#include "paramet.h"
21
22      REAL vorpot( ip1jm,llm ) ,pbaru( ip1jmp1,llm ) ,
23     *     pbarv( ip1jm,llm ) ,du( ip1jmp1,llm ) ,dv( ip1jm,llm )
24      INTEGER  l,ij,ijb,ije
25c
26c
27     
28c$OMP DO SCHEDULE(STATIC,OMP_CHUNK)       
29      DO 10 l = 1,llm
30c
31      ijb=ij_begin
32      ije=ij_end
33     
34      if (pole_nord) ijb=ij_begin+iip1
35      if (pole_sud)  ije=ij_end-iip1
36     
37      DO 2  ij = ijb, ije-1
38      du( ij,l ) = 0.125 *(  vorpot(ij-iip1, l) + vorpot( ij, l)  ) *
39     *                    (   pbarv(ij-iip1, l) + pbarv(ij-iim,  l) +
40     *                        pbarv(   ij  , l) + pbarv(ij+ 1 ,  l)   )
41   2  CONTINUE
42   
43 
44c
45      if (pole_nord) ijb=ij_begin
46     
47      DO 3 ij = ijb, ije-1
48      dv( ij+1,l ) = - 0.125 *(  vorpot(ij, l)  + vorpot(ij+1, l)  ) *
49     *                        (   pbaru(ij, l)  +  pbaru(ij+1   , l) +
50     *                       pbaru(ij+iip1, l)  +  pbaru(ij+iip2, l)  )
51   3  CONTINUE
52c
53c    .... correction  pour  dv( 1,j,l )  .....
54c    ....   dv(1,j,l)= dv(iip1,j,l) ....
55c
56CDIR$ IVDEP
57      DO 4 ij = ijb, ije, iip1
58      dv( ij,l ) = dv( ij + iim, l )
59   4  CONTINUE
60c
61  10  CONTINUE
62c$OMP END DO NOWAIT
63      RETURN
64      END
Note: See TracBrowser for help on using the repository browser.