source: LMDZ5/branches/LMDZ5-DOFOCO/libf/dyn3dpar/gr_dyn_fi_p.F @ 5405

Last change on this file since 5405 was 1615, checked in by Ehouarn Millour, 13 years ago

Introducing "phydev", the minimal physics package.
makegcm and makelmdz_fcm script have been updated to add CPP_PHYS preprocessing key when building with physics and CPP_EARTH for Earth (LMD physics) related routines or instructions in the dynamics.
Checked (on Vargas) that "dev" physics package compiles and runs well in all (seq/mpi/omp/mpi_omp) modes and that introduced changes do not modify results when using the "lmd" physics package.
EM + FH

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.1 KB
Line 
1!
2! $Id: gr_dyn_fi_p.F 1615 2012-02-10 15:42:26Z abarral $
3!
4      SUBROUTINE gr_dyn_fi_p(nfield,im,jm,ngrid,pdyn,pfi)
5#ifdef CPP_PHYS
6! Interface with parallel physics,
7      USE mod_interface_dyn_phys
8      USE dimphy
9      USE PARALLEL
10      IMPLICIT NONE
11c=======================================================================
12c   passage d'un champ de la grille scalaire a la grille physique
13c=======================================================================
14
15c-----------------------------------------------------------------------
16c   declarations:
17c   -------------
18
19      INTEGER im,jm,ngrid,nfield
20      REAL pdyn(im,jm,nfield)
21      REAL pfi(ngrid,nfield)
22
23      INTEGER i,j,ig,l
24
25c-----------------------------------------------------------------------
26c   calcul:
27c   -------
28
29c      IF(ngrid.NE.2+(jm-2)*(im-1)) STOP 'probleme de dim'
30c   traitement des poles
31c   traitement des point normaux
32c$OMP DO SCHEDULE(STATIC,OMP_CHUNK)
33      DO l=1,nfield   
34       DO ig=1,klon
35         i=index_i(ig)
36         j=index_j(ig)
37         pfi(ig,l)=pdyn(i,j,l)
38       ENDDO
39      ENDDO
40c$OMP END DO NOWAIT
41#endif
42! of #ifdef CPP_PHYS
43      RETURN
44      END
Note: See TracBrowser for help on using the repository browser.