Line | |
---|
1 | ! |
---|
2 | ! $Id: gr_dyn_fi_p.F 1279 2009-12-10 09:02:56Z fairhead $ |
---|
3 | ! |
---|
4 | SUBROUTINE gr_dyn_fi_p(nfield,im,jm,ngrid,pdyn,pfi) |
---|
5 | #ifdef CPP_EARTH |
---|
6 | ! Interface with parallel physics, |
---|
7 | ! for now this routine only works with Earth physics |
---|
8 | USE mod_interface_dyn_phys |
---|
9 | USE dimphy |
---|
10 | USE PARALLEL |
---|
11 | IMPLICIT NONE |
---|
12 | c======================================================================= |
---|
13 | c passage d'un champ de la grille scalaire a la grille physique |
---|
14 | c======================================================================= |
---|
15 | |
---|
16 | c----------------------------------------------------------------------- |
---|
17 | c declarations: |
---|
18 | c ------------- |
---|
19 | |
---|
20 | INTEGER im,jm,ngrid,nfield |
---|
21 | REAL pdyn(im,jm,nfield) |
---|
22 | REAL pfi(ngrid,nfield) |
---|
23 | |
---|
24 | INTEGER i,j,ig,l |
---|
25 | |
---|
26 | c----------------------------------------------------------------------- |
---|
27 | c calcul: |
---|
28 | c ------- |
---|
29 | |
---|
30 | c IF(ngrid.NE.2+(jm-2)*(im-1)) STOP 'probleme de dim' |
---|
31 | c traitement des poles |
---|
32 | c traitement des point normaux |
---|
33 | c$OMP DO SCHEDULE(STATIC,OMP_CHUNK) |
---|
34 | DO l=1,nfield |
---|
35 | DO ig=1,klon |
---|
36 | i=index_i(ig) |
---|
37 | j=index_j(ig) |
---|
38 | pfi(ig,l)=pdyn(i,j,l) |
---|
39 | ENDDO |
---|
40 | ENDDO |
---|
41 | c$OMP END DO NOWAIT |
---|
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 |
---|
48 | RETURN |
---|
49 | END |
---|
Note: See
TracBrowser
for help on using the repository browser.