Changeset 5098 for LMDZ6/branches/Amaury_dev/libf/misc
- Timestamp:
- Jul 22, 2024, 6:53:44 PM (17 months ago)
- Location:
- LMDZ6/branches/Amaury_dev/libf/misc
- Files:
-
- 1 edited
- 1 moved
-
lmdz_TO_MOVE_ssum_scopy.f90 (moved) (moved from LMDZ6/branches/Amaury_dev/libf/misc/cray.F) (1 diff)
-
lmdz_cppkeys_wrapper.F90 (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Amaury_dev/libf/misc/lmdz_TO_MOVE_ssum_scopy.f90
r5097 r5098 1 ! 2 ! $Header$ 3 ! 4 #ifdef CRAY 5 SUBROUTINE riencray 6 END 7 #else 8 subroutine scopy(n,sx,incx,sy,incy) 9 c 10 IMPLICIT NONE 11 c 12 integer n,incx,incy,ix,iy,i 13 real sx((n-1)*incx+1),sy((n-1)*incy+1) 14 c 15 iy=1 16 ix=1 17 DO i=1,n 18 sy(iy)=sx(ix) 19 ix=ix+incx 20 iy=iy+incy 21 END DO 22 c 23 return 24 end 1 ! TO MOVE SOMEWHERE ELSE !! (Amaury - 07/2024) 2 ! Move with other vector/math functions 3 ! Those are old legacy CRAY replacement functions, that are now used in several parts of the code. 25 4 26 function ssum(n,sx,incx) 27 c 28 IMPLICIT NONE 29 c 30 integer n,incx,i,ix 31 real ssum,sx((n-1)*incx+1) 32 c 33 ssum=0. 34 ix=1 35 do i=1,n 36 ssum=ssum+sx(ix) 37 ix=ix+incx 38 END DO 39 c 40 return 41 end 42 #endif 5 subroutine scopy(n, sx, incx, sy, incy) 6 7 IMPLICIT NONE 8 9 integer n, incx, incy, ix, iy, i 10 real sx((n - 1) * incx + 1), sy((n - 1) * incy + 1) 11 12 iy = 1 13 ix = 1 14 DO i = 1, n 15 sy(iy) = sx(ix) 16 ix = ix + incx 17 iy = iy + incy 18 END DO 19 20 end 21 22 function ssum(n, sx, incx) 23 24 IMPLICIT NONE 25 26 integer n, incx, i, ix 27 real ssum, sx((n - 1) * incx + 1) 28 29 ssum = 0. 30 ix = 1 31 do i = 1, n 32 ssum = ssum + sx(ix) 33 ix = ix + incx 34 END DO 35 36 end 37 -
LMDZ6/branches/Amaury_dev/libf/misc/lmdz_cppkeys_wrapper.F90
r5091 r5098 2 2 ! This file is part of an effort to replace most uses of preprocessor CPP keys by fortran variables, 3 3 ! to improve readability, compilation coverage, and linting. 4 ! CPP keys used here should ONLY be used here ,4 ! CPP keys used here should ONLY be used here (unless specified explicitely), 5 5 ! and imported through USE ..., ONLY: ... elsewhere 6 6 ! CPP keys supported (key -> fortran variables associated): … … 8 8 ! CPP_PHYS -> CPPKEY_PHYS 9 9 ! INCA -> CPPKEY_INCA 10 ! CPP_StratAer-> CPPKEY_STRATAER 10 11 ! --------------------------------------------- 11 12 … … 14 15 USE netcdf, ONLY: nf90_float, nf90_double 15 16 IMPLICIT NONE; PRIVATE 16 PUBLIC nf90_format, CPPKEY_PHYS, CPPKEY_INCA 17 PUBLIC nf90_format, CPPKEY_PHYS, CPPKEY_INCA, CPPKEY_STRATAER 17 18 18 19 #ifdef NC_DOUBLE … … 34 35 #endif 35 36 37 #ifdef CPP_StratAer 38 LOGICAL, PARAMETER :: CPPKEY_STRATAER = .TRUE. 39 #else 40 LOGICAL, PARAMETER :: CPPKEY_STRATAER = .FALSE. 41 #endif 42 36 43 END MODULE lmdz_cppkeys_wrapper
Note: See TracChangeset
for help on using the changeset viewer.
