Last change
on this file since 1068 was
774,
checked in by Laurent Fairhead, 18 years ago
|
Suite du merge entre la version et la HEAD: quelques modifications de
Yann sur le
LF
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
1.2 KB
|
Line | |
---|
1 | SUBROUTINE gr_fi_dyn_p(nfield,ngrid,im,jm,pfi,pdyn) |
---|
2 | USE mod_interface_dyn_phys |
---|
3 | USE dimphy |
---|
4 | use parallel |
---|
5 | IMPLICIT NONE |
---|
6 | c======================================================================= |
---|
7 | c passage d'un champ de la grille scalaire a la grille physique |
---|
8 | c======================================================================= |
---|
9 | |
---|
10 | c----------------------------------------------------------------------- |
---|
11 | c declarations: |
---|
12 | c ------------- |
---|
13 | |
---|
14 | INTEGER im,jm,ngrid,nfield |
---|
15 | REAL pdyn(im,jm,nfield) |
---|
16 | REAL pfi(ngrid,nfield) |
---|
17 | |
---|
18 | INTEGER i,j,ifield,ig |
---|
19 | |
---|
20 | c----------------------------------------------------------------------- |
---|
21 | c calcul: |
---|
22 | c ------- |
---|
23 | c$OMP DO SCHEDULE(STATIC,OMP_CHUNK) |
---|
24 | DO ifield=1,nfield |
---|
25 | |
---|
26 | do ig=1,klon |
---|
27 | i=index_i(ig) |
---|
28 | j=index_j(ig) |
---|
29 | pdyn(i,j,ifield)=pfi(ig,ifield) |
---|
30 | if (i==1) pdyn(im,j,ifield)=pdyn(i,j,ifield) |
---|
31 | enddo |
---|
32 | |
---|
33 | c traitement des poles |
---|
34 | if (pole_nord) then |
---|
35 | do i=1,im |
---|
36 | pdyn(i,1,ifield)=pdyn(1,1,ifield) |
---|
37 | enddo |
---|
38 | endif |
---|
39 | |
---|
40 | if (pole_sud) then |
---|
41 | do i=1,im |
---|
42 | pdyn(i,jm,ifield)=pdyn(1,jm,ifield) |
---|
43 | enddo |
---|
44 | endif |
---|
45 | |
---|
46 | ENDDO |
---|
47 | c$OMP END DO NOWAIT |
---|
48 | RETURN |
---|
49 | END |
---|
Note: See
TracBrowser
for help on using the repository browser.