- Timestamp:
- Jul 28, 2024, 4:17:54 PM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Amaury_dev/libf/dyn3d_common/gr_v_scal.f90
r5105 r5136 1 2 1 ! $Header$ 3 2 4 SUBROUTINE gr_v_scal(nx, x_v,x_scal)3 SUBROUTINE gr_v_scal(nx, x_v, x_scal) 5 4 !%W% %G% 6 5 !======================================================================= … … 25 24 ! 26 25 !======================================================================= 26 USE lmdz_comgeom 27 27 IMPLICIT NONE 28 28 !----------------------------------------------------------------------- … … 32 32 INCLUDE "dimensions.h" 33 33 INCLUDE "paramet.h" 34 INCLUDE "comgeom.h"35 34 36 35 ! Arguments: … … 38 37 39 38 INTEGER :: nx 40 REAL :: x_v(ip1jm, nx),x_scal(ip1jmp1,nx)39 REAL :: x_v(ip1jm, nx), x_scal(ip1jmp1, nx) 41 40 42 41 ! Local: 43 42 ! ------ 44 43 45 INTEGER :: l, ij44 INTEGER :: l, ij 46 45 47 46 !----------------------------------------------------------------------- 48 47 49 DO l =1,nx50 DO ij=iip2,ip1jm51 x_scal(ij,l)= &52 (airev(ij -iip1)*x_v(ij-iip1,l)+airev(ij)*x_v(ij,l)) &53 /(airev(ij-iip1)+airev(ij))54 55 DO ij=1,iip156 x_scal(ij,l)=0.57 58 DO ij=ip1jm+1,ip1jmp159 x_scal(ij,l)=0.60 48 DO l = 1, nx 49 DO ij = iip2, ip1jm 50 x_scal(ij, l) = & 51 (airev(ij - iip1) * x_v(ij - iip1, l) + airev(ij) * x_v(ij, l)) & 52 / (airev(ij - iip1) + airev(ij)) 53 ENDDO 54 DO ij = 1, iip1 55 x_scal(ij, l) = 0. 56 ENDDO 57 DO ij = ip1jm + 1, ip1jmp1 58 x_scal(ij, l) = 0. 59 ENDDO 61 60 ENDDO 62 61
Note: See TracChangeset
for help on using the changeset viewer.