Changeset 2118


Ignore:
Timestamp:
03/26/21 11:27:42 (3 years ago)
Author:
jderouillat
Message:

Enable GNU compilation

Location:
XIOS/dev/dev_ym/XIOS_COUPLING/src
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/array_new.cpp

    r1875 r2118  
    44{ 
    55 
     6#define macrotyperank(_TYPE_,_RANK_)\ 
     7  template<> int CArray<_TYPE_,_RANK_>::TV_ttf_display_type( const CArray<_TYPE_,_RANK_>* array ) \ 
     8  {\ 
     9    return show_TV_ttf_display_type (array) ;\ 
     10  } 
     11 
     12#define macrotype(_TYPE_)\ 
     13macrotyperank(_TYPE_,1)\ 
     14macrotyperank(_TYPE_,2)\ 
     15macrotyperank(_TYPE_,3)\ 
     16macrotyperank(_TYPE_,4)\ 
     17macrotyperank(_TYPE_,5)\ 
     18macrotyperank(_TYPE_,6)\ 
     19macrotyperank(_TYPE_,7) 
     20 
     21macrotype(double) 
     22macrotype(int) 
     23macrotype(bool) 
     24macrotype(size_t) 
     25macrotype(float) 
     26macrotype(string) 
     27 
     28#undef macrotyperank 
     29#undef macrotype 
    630 
    731} 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/array_new.hpp

    r1918 r2118  
    299299        : Array<T_numtype,N_rank>(array, r0,r1, r2, r3, r4, r5, r6, r7, r8, r9, r10) 
    300300        , initialized(true) 
    301       { bool neverTrue ; neverTrue=false ; bool neverTrue ; neverTrue=false ; if(neverTrue) inc_symbol(); } 
     301      { bool neverTrue ; neverTrue=false ; if(neverTrue) inc_symbol(); } 
    302302 
    303303      virtual ~CArray() {} 
     
    645645 
    646646#define macrotyperank(_TYPE_,_RANK_)\ 
    647   template<> int CArray<_TYPE_,_RANK_>::TV_ttf_display_type( const CArray<_TYPE_,_RANK_>* array ) \ 
    648   {\ 
    649     return show_TV_ttf_display_type (array) ;\ 
    650   } 
     647  template<> int CArray<_TYPE_,_RANK_>::TV_ttf_display_type( const CArray<_TYPE_,_RANK_>* array ); 
    651648 
    652649#define macrotype(_TYPE_)\ 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/attribute_array.hpp

    r1875 r2118  
    118118 
    119119#define macrotyperank(_TYPE_,_RANK_)\ 
    120   template<> int CAttributeArray<_TYPE_,_RANK_>::TV_ttf_display_type(const CAttributeArray<_TYPE_,_RANK_>* array ) \ 
    121   {\ 
    122     return CAttributeArray<_TYPE_,_RANK_>::show_TV_ttf_display_type (array) ;\ 
    123   } 
     120  template<> int CAttributeArray<_TYPE_,_RANK_>::TV_ttf_display_type(const CAttributeArray<_TYPE_,_RANK_>* array ); 
    124121 
    125122#define macrotype(_TYPE_)\ 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/attribute_array_decl.cpp

    r1158 r2118  
    1919  template class CAttributeArray<StdString,1> ; 
    2020  template class CAttributeArray<StdString,2> ; 
     21 
     22#define macrotyperank(_TYPE_,_RANK_)                                    \ 
     23  template<> int CAttributeArray<_TYPE_,_RANK_>::TV_ttf_display_type(const CAttributeArray<_TYPE_,_RANK_>* array ) \ 
     24  {\ 
     25    return CAttributeArray<_TYPE_,_RANK_>::show_TV_ttf_display_type (array) ;\ 
     26  } 
     27 
     28#define macrotype(_TYPE_)\ 
     29macrotyperank(_TYPE_,1)\ 
     30macrotyperank(_TYPE_,2)\ 
     31macrotyperank(_TYPE_,3)\ 
     32macrotyperank(_TYPE_,4)\ 
     33macrotyperank(_TYPE_,5)\ 
     34macrotyperank(_TYPE_,6)\ 
     35macrotyperank(_TYPE_,7) 
     36 
     37macrotype(double) 
     38macrotype(int) 
     39macrotype(bool) 
     40macrotype(size_t) 
     41macrotype(float) 
     42macrotype(string) 
     43 
     44#undef macrotyperank 
     45#undef macrotype 
     46 
    2147} 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/attribute_template.hpp

    r1875 r2118  
    146146 
    147147#define macrotype(_TYPE_)\ 
    148   template<> int CAttributeTemplate<_TYPE_>::TV_ttf_display_type( const CAttributeTemplate<_TYPE_>* attr ) \ 
    149   {\ 
    150     return show_TV_ttf_display_type (attr) ;\ 
    151   } 
     148  template<> int CAttributeTemplate<_TYPE_>::TV_ttf_display_type( const CAttributeTemplate<_TYPE_>* attr ); 
    152149 
    153150macrotype(double) 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/attribute_template_decl.cpp

    r537 r2118  
    1212  template class CAttributeTemplate<CDate> ; 
    1313  template class CAttributeTemplate<CDuration> ; 
     14 
     15#define macrotype(_TYPE_)                                               \ 
     16  template<> int CAttributeTemplate<_TYPE_>::TV_ttf_display_type( const CAttributeTemplate<_TYPE_>* attr ) \ 
     17  {\ 
     18    return show_TV_ttf_display_type (attr) ;\ 
     19  } 
     20 
     21macrotype(double) 
     22macrotype(int) 
     23macrotype(bool) 
     24macrotype(string) 
     25//macrotype(CDate) 
     26//macrotype(CDuration) 
     27#undef macrotype 
     28 
    1429} 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/distribution/gatherer_connector.hpp

    r2011 r2118  
    151151      void transfer(map<int, CArray<T,1>>& dataIn, CArray<T,1>& dataOut, T missingValue) 
    152152      { 
    153         transfer(1, 1, dataIn, dataout, missingValue) 
     153        transfer(1, 1, dataIn, dataOut, missingValue); 
    154154      } 
    155155       
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/distribution/scatterer_connector.hpp

    r1984 r2118  
    5050    void transfer(int sizeT, const CArray<T,n>& dataIn, map<int, CArray<T,1>>& dataOut) 
    5151    { 
    52       transfer(1, sizeT, dataIn, dataOut) 
     52      transfer(1, sizeT, dataIn, dataOut); 
    5353    } 
    5454     
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/mpi_tools.cpp

    r1984 r2118  
    2727  } 
    2828 
     29  template<> 
     30  MPI_Datatype MPI_GetType<char>(void) { return MPI_CHAR ;} 
     31 
     32  template<> 
     33  MPI_Datatype MPI_GetType<short int>(void) { return MPI_SHORT ;} 
     34 
     35  template<> 
     36  MPI_Datatype MPI_GetType<int>(void) { return MPI_INT ;} 
     37 
     38  template<> 
     39  MPI_Datatype MPI_GetType<size_t>(void) { return MPI_SIZE_T ;} 
     40 
     41  template<> 
     42  MPI_Datatype MPI_GetType<float>(void) { return MPI_FLOAT ;} 
     43 
     44  template<> 
     45  MPI_Datatype MPI_GetType<double>(void) { return MPI_DOUBLE ;} 
     46 
     47  template<> 
     48  MPI_Datatype MPI_GetType<long double>(void) { return MPI_LONG_DOUBLE ;} 
     49 
    2950} 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/mpi_tools.hpp

    r1984 r2118  
    1313 
    1414  template<> 
    15   MPI_Datatype MPI_GetType<char>(void) { return MPI_CHAR ;} 
     15  MPI_Datatype MPI_GetType<char>(void); 
    1616 
    1717  template<> 
    18   MPI_Datatype MPI_GetType<short int>(void) { return MPI_SHORT ;} 
     18  MPI_Datatype MPI_GetType<short int>(void); 
    1919 
    2020  template<> 
    21   MPI_Datatype MPI_GetType<int>(void) { return MPI_INT ;} 
     21  MPI_Datatype MPI_GetType<int>(void); 
    2222 
    2323  template<> 
    24   MPI_Datatype MPI_GetType<size_t>(void) { return MPI_SIZE_T ;} 
     24  MPI_Datatype MPI_GetType<size_t>(void); 
    2525 
    2626  template<> 
    27   MPI_Datatype MPI_GetType<float>(void) { return MPI_FLOAT ;} 
     27  MPI_Datatype MPI_GetType<float>(void); 
    2828 
    2929  template<> 
    30   MPI_Datatype MPI_GetType<double>(void) { return MPI_DOUBLE ;} 
     30  MPI_Datatype MPI_GetType<double>(void); 
    3131 
    3232  template<> 
    33   MPI_Datatype MPI_GetType<long double>(void) { return MPI_LONG_DOUBLE ;} 
     33  MPI_Datatype MPI_GetType<long double>(void); 
    3434 
    3535 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/transformation/transformation.hpp

    r2011 r2118  
    55#include "xml_node.hpp" 
    66#include "transformation_enum.hpp" 
     7#include "exception.hpp" 
    78 
    89namespace xios { 
Note: See TracChangeset for help on using the changeset viewer.