Ignore:
Timestamp:
07/05/16 15:59:23 (8 years ago)
Author:
mhnguyen
Message:

Adding Fortran interface for reduce_axis_to_scalar

Test
+) On Curie
+) Only compilation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/generate_fortran_interface.cpp

    r786 r891  
    55#include "object_template.hpp" 
    66#include "group_template.hpp" 
    7 //#include "context.hpp" 
    8 //#include "file.hpp" 
    9 //#include "zoom_domain.hpp" 
    10 //#include "zoom_axis.hpp" 
    11 //#include "interpolate_axis.hpp" 
    12 //#include "interpolate_domain.hpp" 
    137#include "node_type.hpp" 
    148 
     
    2014  CContext* context=CContext::create("interface"); 
    2115  CCalendarWrapper calendarWrapper; 
     16  CScalar scalar; 
     17  CScalarGroup scalargroup; 
    2218  CAxis axis; 
    2319  CAxisGroup axisgroup; 
     
    3430  CFileGroup filegroup; 
    3531 
     32  CInterpolateDomain interpolateDomain; 
    3633  CZoomDomain zoomDomain; 
     34  CGenerateRectilinearDomain genDomain; 
     35 
     36  CInterpolateAxis interpolateAxis; 
    3737  CZoomAxis zoomAxis; 
    38  
    39   CInterpolateAxis interpolateAxis; 
    40   CInterpolateDomain interpolateDomain; 
    41  
    42   CGenerateRectilinearDomain genDomain; 
    4338  CInverseAxis inverseAxis; 
     39 
     40  CReduceAxisToScalar reduceAxisToScalar; 
    4441 
    4542  ostringstream oss; 
    4643  ofstream file; 
    4744 
     45  file.open((path+"scalar_interface_attr.F90").c_str()); 
     46  scalar.generateFortran2003Interface(file); 
     47  file.close(); 
     48 
     49  file.open((path+"icscalar_attr.cpp").c_str()); 
     50  scalar.generateCInterface(file); 
     51  file.close(); 
     52 
     53  file.open((path+"iscalar_attr.F90").c_str()); 
     54  scalar.generateFortranInterface(file); 
     55  file.close(); 
     56 
     57  file.open((path+"scalargroup_interface_attr.F90").c_str()); 
     58  scalargroup.generateFortran2003Interface(file); 
     59  file.close(); 
     60 
     61  file.open((path+"icscalargroup_attr.cpp").c_str()); 
     62  scalargroup.generateCInterface(file); 
     63  file.close(); 
     64 
     65  file.open((path+"iscalargroup_attr.F90").c_str()); 
     66  scalargroup.generateFortranInterface(file); 
     67  file.close(); 
     68 
    4869  file.open((path+"axis_interface_attr.F90").c_str()); 
    4970  axis.generateFortran2003Interface(file); 
     
    281302  file.close(); 
    282303 
     304  file.open((path+"reduce_axis_to_scalar_interface_attr.F90").c_str()); 
     305  reduceAxisToScalar.generateFortran2003Interface(file); 
     306  file.close(); 
     307 
     308  file.open((path+"icreduce_axis_to_scalar_attr.cpp").c_str()); 
     309  reduceAxisToScalar.generateCInterface(file); 
     310  file.close(); 
     311 
     312  file.open((path+"ireduce_axis_to_scalar_attr.F90").c_str()); 
     313  reduceAxisToScalar.generateFortranInterface(file); 
     314  file.close(); 
     315 
    283316  file.open((path+"context_interface_attr.F90").c_str()); 
    284317  context->generateFortran2003Interface(file); 
Note: See TracChangeset for help on using the changeset viewer.