Ignore:
Timestamp:
02/03/14 14:16:20 (10 years ago)
Author:
ymipsl
Message:

Enhancement : user defined global and field attribute can be output in the netcdfcf file.
A variable child element inclosed into a file element will be output as a global file attribute.
A variable child element inclosed into a field element will be output as a field attribute.

+ variable fortran interface added

YM

File:
1 edited

Legend:

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

    r369 r472  
    1818  CField field; 
    1919  CFieldGroup fieldgroup ; 
     20  CVariable variable; 
     21  CVariableGroup variablegroup ; 
    2022  CDomain domain ; 
    2123  CDomainGroup domaingroup ; 
     
    129131 
    130132 
     133  file.open((path+"variable_interface_attr.f90").c_str());  
     134  variable.generateFortran2003Interface(file) ; 
     135  file.close(); 
     136   
     137  file.open((path+"icvariable_attr.cpp").c_str());  
     138  variable.generateCInterface(file) ; 
     139  file.close(); 
     140   
     141  file.open((path+"ivariable_attr.F90").c_str());  
     142  variable.generateFortranInterface(file) ; 
     143  file.close(); 
     144   
     145  file.open((path+"variablegroup_interface_attr.f90").c_str());  
     146  variablegroup.generateFortran2003Interface(file) ; 
     147  file.close(); 
     148   
     149  file.open((path+"icvariablegroup_attr.cpp").c_str());  
     150  variablegroup.generateCInterface(file) ; 
     151  file.close(); 
     152   
     153  file.open((path+"ivariablegroup_attr.F90").c_str());  
     154  variablegroup.generateFortranInterface(file) ; 
     155  file.close(); 
     156 
     157 
     158 
    131159  file.open((path+"file_interface_attr.f90").c_str());  
    132160  afile.generateFortran2003Interface(file) ; 
Note: See TracChangeset for help on using the changeset viewer.