Ignore:
Timestamp:
07/09/12 11:33:05 (12 years ago)
Author:
ymipsl
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/generate_interface_impl.hpp

    r347 r352  
    66#include "type_util.hpp" 
    77#include "indent.hpp" 
     8#include "array.hpp" 
    89 
    910namespace xios 
    1011{  
    11  
     12  template<> string CInterface::getStrFortranType<int>(void) {return string("INTEGER") ;} 
     13  template<> string CInterface::getStrFortranType<bool>(void) {return string("LOGICAL") ;} 
     14  template<> string CInterface::getStrFortranType<double>(void) {return string("REAL") ;} 
     15  template<> string CInterface::getStrFortranType<float>(void) {return string("REAL") ;} 
     16   
     17  template<> string CInterface::getStrFortranKind<int>(void) {return string("") ;} 
     18  template<> string CInterface::getStrFortranKind<bool>(void) {return string("") ;} 
     19  template<> string CInterface::getStrFortranKind<double>(void) {return string("(KIND=8)") ;} 
     20  template<> string CInterface::getStrFortranKind<float>(void) {return string("(KIND=4)") ;} 
     21   
     22  template<> string CInterface::getStrFortranKindC<int>(void) {return string("(KIND=C_INT)") ;} 
     23  template<> string CInterface::getStrFortranKindC<bool>(void) {return string("(KIND=C_BOOL)") ;} 
     24  template<> string CInterface::getStrFortranKindC<double>(void) {return string("(KIND=C_DOUBLE)") ;} 
     25  template<> string CInterface::getStrFortranKindC<float>(void) {return string("(KIND=C_FLOAT)") ;} 
     26   
     27  template<> bool CInterface::matchingTypeCFortran<int>(void) { return true ; }  
     28  template<> bool CInterface::matchingTypeCFortran<bool>(void) { return false ;}  
     29  template<> bool CInterface::matchingTypeCFortran<double>(void) { return true; } 
     30  template<> bool CInterface::matchingTypeCFortran<float>(void) { return true; } 
     31   
    1232 
    1333// ///////////////////////////////////////////////// 
     
    1535// ///////////////////////////////////////////////// 
    1636 
     37   
    1738  template <class T> 
    1839  void CInterface::AttributeCInterface(ostream& oss, const string& className,const string& name) 
Note: See TracChangeset for help on using the changeset viewer.