Last change
on this file since 3436 was
3175,
checked in by emillour, 11 months ago
|
Pluto PCM:
Add the old Pluto LMDZ for reference (required prior step to making
an LMDZ.PLUTO using the same framework as the other physics packages).
TB+EM
|
File size:
1.2 KB
|
Line | |
---|
1 | SUBROUTINE gr_v_scal(nx,x_v,x_scal) |
---|
2 | c%W% %G% |
---|
3 | c======================================================================= |
---|
4 | c |
---|
5 | c Author: Frederic Hourdin original: 11/11/92 |
---|
6 | c ------- |
---|
7 | c |
---|
8 | c Subject: |
---|
9 | c ------ |
---|
10 | c |
---|
11 | c Method: |
---|
12 | c -------- |
---|
13 | c |
---|
14 | c Interface: |
---|
15 | c ---------- |
---|
16 | c |
---|
17 | c Input: |
---|
18 | c ------ |
---|
19 | c |
---|
20 | c Output: |
---|
21 | c ------- |
---|
22 | c |
---|
23 | c======================================================================= |
---|
24 | IMPLICIT NONE |
---|
25 | c----------------------------------------------------------------------- |
---|
26 | c Declararations: |
---|
27 | c --------------- |
---|
28 | |
---|
29 | #include "dimensions.h" |
---|
30 | #include "paramet.h" |
---|
31 | #include "comgeom.h" |
---|
32 | |
---|
33 | c Arguments: |
---|
34 | c ---------- |
---|
35 | |
---|
36 | INTEGER nx |
---|
37 | REAL x_v(ip1jm,nx),x_scal(ip1jmp1,nx) |
---|
38 | |
---|
39 | c Local: |
---|
40 | c ------ |
---|
41 | |
---|
42 | INTEGER l,ij |
---|
43 | |
---|
44 | c----------------------------------------------------------------------- |
---|
45 | |
---|
46 | DO l=1,nx |
---|
47 | DO ij=iip2,ip1jm |
---|
48 | x_scal(ij,l)= |
---|
49 | s (airev(ij-iip1)*x_v(ij-iip1,l)+airev(ij)*x_v(ij,l)) |
---|
50 | s /(airev(ij-iip1)+airev(ij)) |
---|
51 | ENDDO |
---|
52 | DO ij=1,iip1 |
---|
53 | x_scal(ij,l)=0. |
---|
54 | ENDDO |
---|
55 | DO ij=ip1jm+1,ip1jmp1 |
---|
56 | x_scal(ij,l)=0. |
---|
57 | ENDDO |
---|
58 | ENDDO |
---|
59 | |
---|
60 | RETURN |
---|
61 | END |
---|
Note: See
TracBrowser
for help on using the repository browser.