Ignore:
Timestamp:
Jul 22, 2024, 6:53:44 PM (17 months ago)
Author:
abarral
Message:

Remove CRAY key (obsolete calls to functions that don't exist anymore, bugs in some implementations, irrelevant now)
Replace usage of CPP_XIOS key by using_xios logical
Remove always unused testcpu bits
Replace most uses of CPP_StratAer by the corresponding logical defined in lmdz_cppkeys_wrapper.F90 [this breaks iso compilation because phyiso doesn't define all aerosols - to be fixed later]
Replaces uses of include "yomcst.h" by the lmdz_yomcst.f90 module in .[fF]90 files

Location:
LMDZ6/branches/Amaury_dev/libf/misc
Files:
1 edited
1 moved

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.
    254
    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
     5subroutine 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
     20end
     21
     22function 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
     36end
     37
  • LMDZ6/branches/Amaury_dev/libf/misc/lmdz_cppkeys_wrapper.F90

    r5091 r5098  
    22! This file is part of an effort to replace most uses of preprocessor CPP keys by fortran variables,
    33! 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),
    55! and imported through USE ..., ONLY: ... elsewhere
    66! CPP keys supported (key -> fortran variables associated):
     
    88!      CPP_PHYS  -> CPPKEY_PHYS
    99!      INCA      -> CPPKEY_INCA
     10!      CPP_StratAer-> CPPKEY_STRATAER
    1011! ---------------------------------------------
    1112
     
    1415  USE netcdf, ONLY: nf90_float, nf90_double
    1516  IMPLICIT NONE; PRIVATE
    16   PUBLIC nf90_format, CPPKEY_PHYS, CPPKEY_INCA
     17  PUBLIC nf90_format, CPPKEY_PHYS, CPPKEY_INCA, CPPKEY_STRATAER
    1718
    1819#ifdef NC_DOUBLE
     
    3435#endif
    3536
     37#ifdef CPP_StratAer
     38  LOGICAL, PARAMETER :: CPPKEY_STRATAER = .TRUE.
     39#else
     40  LOGICAL, PARAMETER :: CPPKEY_STRATAER = .FALSE.
     41#endif
     42
    3643END MODULE lmdz_cppkeys_wrapper
Note: See TracChangeset for help on using the changeset viewer.