source: LMDZ4/trunk/libf/dyn3dpar/gr_dyn_fi_p.F @ 1549

Last change on this file since 1549 was 1279, checked in by Laurent Fairhead, 15 years ago

Merged LMDZ4-dev branch changes r1241:1278 into the trunk
Running trunk and LMDZ4-dev in LMDZOR configuration on local
machine (sequential) and SX8 (4-proc) yields identical results
(restart and restartphy are identical binarily)
Log history from r1241 to r1278 is available by switching to
source:LMDZ4/branches/LMDZ4-dev-20091210

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.3 KB
RevLine 
[1279]1!
2! $Id: gr_dyn_fi_p.F 1279 2009-12-10 09:02:56Z lguez $
3!
[630]4      SUBROUTINE gr_dyn_fi_p(nfield,im,jm,ngrid,pdyn,pfi)
[1279]5#ifdef CPP_EARTH
6! Interface with parallel physics,
7! for now this routine only works with Earth physics
[774]8      USE mod_interface_dyn_phys
[630]9      USE dimphy
[764]10      USE PARALLEL
[630]11      IMPLICIT NONE
12c=======================================================================
13c   passage d'un champ de la grille scalaire a la grille physique
14c=======================================================================
15
16c-----------------------------------------------------------------------
17c   declarations:
18c   -------------
19
20      INTEGER im,jm,ngrid,nfield
21      REAL pdyn(im,jm,nfield)
22      REAL pfi(ngrid,nfield)
23
[764]24      INTEGER i,j,ig,l
[630]25
26c-----------------------------------------------------------------------
27c   calcul:
28c   -------
29
30c      IF(ngrid.NE.2+(jm-2)*(im-1)) STOP 'probleme de dim'
31c   traitement des poles
32c   traitement des point normaux
[764]33c$OMP DO SCHEDULE(STATIC,OMP_CHUNK)
34      DO l=1,nfield   
[630]35       DO ig=1,klon
[774]36         i=index_i(ig)
37         j=index_j(ig)
[764]38         pfi(ig,l)=pdyn(i,j,l)
[630]39       ENDDO
[764]40      ENDDO
41c$OMP END DO NOWAIT
[1279]42#else
43      write(lunout,*) "gr_fi_dyn_p : This routine should not be called",
44     &   "without parallelized physics"
45      stop
46#endif
47! of #ifdef CPP_EARTH
[630]48      RETURN
49      END
Note: See TracBrowser for help on using the repository browser.