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