New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 14495 for NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/src/OCE/LBC/mpp_nfd_generic.h90 – NEMO

Ignore:
Timestamp:
2021-02-18T18:06:18+01:00 (3 years ago)
Author:
mcastril
Message:

Further changes to make the mixed precision branch compliant with cpp -traditional and GNU compiler

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/src/OCE/LBC/mpp_nfd_generic.h90

    r14219 r14495  
     1#  define PASTE(a) a 
     2#  define ADD_TRAIL_USCORE(a) PASTE(a)_ 
     3#  define CONCATENATE(a,b) ADD_TRAIL_USCORE(a)b 
     4 
    15#if defined MULTI 
    26#   define NAT_IN(k)                cd_nat(k)    
     
    6771#    define RECVROUTINE mpprecv_sp 
    6872#    define MPI_TYPE MPI_REAL 
    69 #    define HUGEVAL(x)   HUGE(x##_sp) 
     73#    define HUGEVAL(x)   HUGE(CONCATENATE(x,sp)) 
    7074# else 
    7175#    define PRECISION dp 
     
    7377#    define RECVROUTINE mpprecv_dp 
    7478#    define MPI_TYPE MPI_DOUBLE_PRECISION 
    75 #    define HUGEVAL(x)   HUGE(x##_dp) 
     79#    define HUGEVAL(x)   HUGE(CONCATENATE(x,dp)) 
    7680# endif 
    7781 
Note: See TracChangeset for help on using the changeset viewer.