Changeset 1626
- Timestamp:
- 12/17/18 10:19:12 (6 years ago)
- Location:
- XIOS/trunk
- Files:
-
- 44 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/arch/arch-GCC_LINUX.fcm
r1542 r1626 12 12 %DEBUG_CFLAGS -g 13 13 14 %BASE_FFLAGS -D__NONE__ -ffree-line-length-none14 %BASE_FFLAGS -D__NONE__ 15 15 %PROD_FFLAGS -O3 16 16 %DEV_FFLAGS -g -O2 -
XIOS/trunk/src/generate_fortran_interface.cpp
r1558 r1626 317 317 file.open((path+"ireorder_domain_attr.F90").c_str()); 318 318 reorderDomain.generateFortranInterface(file); 319 320 file.open((path+"extract_domain_interface_attr.F90").c_str());321 extractDomain.generateFortran2003Interface(file);322 file.close();323 324 file.open((path+"icextract_domain_attr.cpp").c_str());325 extractDomain.generateCInterface(file);326 file.close();327 328 file.open((path+"iextract_domain_attr.F90").c_str());329 extractDomain.generateFortranInterface(file);330 331 319 file.close(); 332 320 -
XIOS/trunk/src/generate_interface_impl.hpp
r1158 r1626 215 215 string fortranKindC=getStrFortranKindC<T>(); 216 216 217 oss << "SUBROUTINE cxios_set_" << className << "_" << name << "(" << className << "_hdl, " << name << ") BIND(C)" << iendl; 217 // oss << "SUBROUTINE cxios_set_" << className << "_" << name << "(" << className << "_hdl, " << name << ") BIND(C)" << iendl; 218 int indent = oss.iword(iendl.index); 219 string str = "SUBROUTINE cxios_set_" + className + "_" + name + "(" + className + "_hdl, " + name + ") BIND(C)"; 220 if ((str.length() + indent) >132) 221 { 222 oss << str.substr(0,130-indent) ; 223 oss << "&" << endl; 224 oss << "&" << str.substr(130-indent,str.length()) ; 225 } 226 else 227 { 228 oss << str; 229 } 230 oss << iendl; 218 231 oss << " USE ISO_C_BINDING" << iendl; 219 232 oss << " INTEGER (kind = C_INTPTR_T), VALUE :: " << className << "_hdl" << iendl; … … 231 244 void CInterface::AttributeFortran2003Interface<string>(ostream& oss, const string& className, const string& name) 232 245 { 233 oss << "SUBROUTINE cxios_set_" << className << "_" << name << "(" << className << "_hdl, " << name << ", " << name << "_size) BIND(C)" << iendl; 246 // oss << "SUBROUTINE cxios_set_" << className << "_" << name << "(" << className << "_hdl, " << name << ", " << name << "_size) BIND(C)" << iendl; 247 int indent = oss.iword(iendl.index); 248 string str ="SUBROUTINE cxios_set_" + className + "_" + name + "(" + className + "_hdl, " + name + ", " + name + "_size) BIND(C)"; 249 if ((str.length() + indent) >132) 250 { 251 oss << str.substr(0,130-indent) ; 252 oss << "&" << endl; 253 oss << "&" << str.substr(130-indent,str.length()) ; 254 } 255 else 256 { 257 oss << str; 258 } 259 oss << iendl; 234 260 oss << " USE ISO_C_BINDING" << iendl; 235 261 oss << " INTEGER (kind = C_INTPTR_T), VALUE :: " << className << "_hdl" << iendl; … … 238 264 oss << "END SUBROUTINE cxios_set_" << className << "_" << name << std::endl; 239 265 oss << iendl; 240 oss << "SUBROUTINE cxios_get_" << className << "_" << name << "(" << className << "_hdl, " << name << ", " << name << "_size) BIND(C)" << iendl; 266 // oss << "SUBROUTINE cxios_get_" << className << "_" << name << "(" << className << "_hdl, " << name << ", " << name << "_size) BIND(C)" << iendl; 267 str = "SUBROUTINE cxios_get_" + className + "_" + name + "(" + className + "_hdl, " + name + ", " + name + "_size) BIND(C)"; 268 if ((str.length() + indent) >132) 269 { 270 oss << str.substr(0,130-indent) ; 271 oss << "&" << endl; 272 oss << "&" << str.substr(130-indent,str.length()) ; 273 } 274 else 275 { 276 oss << str; 277 } 278 oss << iendl; 241 279 oss << " USE ISO_C_BINDING" << iendl; 242 280 oss << " INTEGER (kind = C_INTPTR_T), VALUE :: " << className << "_hdl" << iendl; … … 247 285 248 286 template <> 249 void CInterface::AttributeFortran2003Interface<CDate>(ostream& oss, const string& className, const string& name) 250 { 251 oss << "SUBROUTINE cxios_set_" << className << "_" << name << "(" << className << "_hdl, " << name << ") BIND(C)" << iendl; 252 oss << " USE ISO_C_BINDING" << iendl; 253 oss << " USE IDATE" << iendl; 254 oss << " INTEGER (kind = C_INTPTR_T), VALUE :: " << className << "_hdl" << iendl; 255 oss << " TYPE(txios(date)), VALUE :: " << name << iendl; 256 oss << "END SUBROUTINE cxios_set_" << className << "_" << name << std::endl; 287 void CInterface::AttributeFortran2003Interface<CDuration>(ostream& oss, const string& className, const string& name) 288 { 289 // oss << "SUBROUTINE cxios_set_" << className << "_" << name << "(" << className << "_hdl, " << name << ") BIND(C)" << iendl; 290 string str = "SUBROUTINE cxios_set_" + className + "_" + name + "(" + className + "_hdl, " + name + ") BIND(C)"; 291 int indent = oss.iword(iendl.index); 292 if ((str.length() + indent) >132) 293 { 294 oss << str.substr(0,130-indent) ; 295 oss << "&" << endl; 296 oss << "&" << str.substr(130-indent,str.length()) ; 297 } 298 else 299 { 300 oss << str; 301 } 257 302 oss << iendl; 258 oss << "SUBROUTINE cxios_get_" << className << "_" << name << "(" << className << "_hdl, " << name << ") BIND(C)" << iendl;259 oss << " USE ISO_C_BINDING" << iendl;260 oss << " USE IDATE" << iendl;261 oss << " INTEGER (kind = C_INTPTR_T), VALUE :: " << className << "_hdl" << iendl;262 oss << " TYPE(txios(date)) :: " << name << iendl;263 oss << "END SUBROUTINE cxios_get_" << className << "_" << name << std::endl;264 }265 266 template <>267 void CInterface::AttributeFortran2003Interface<CDuration>(ostream& oss, const string& className, const string& name)268 {269 oss << "SUBROUTINE cxios_set_" << className << "_" << name << "(" << className << "_hdl, " << name << ") BIND(C)" << iendl;270 303 oss << " USE ISO_C_BINDING" << iendl; 271 304 oss << " USE IDURATION" << iendl; -
XIOS/trunk/src/interface/c_attr/icaxis_attr.cpp
r1542 r1626 4 4 5 5 #include <boost/multi_array.hpp> 6 #include <memory>7 6 #include "xios.hpp" 8 7 #include "attribute_template.hpp" -
XIOS/trunk/src/interface/c_attr/icaxisgroup_attr.cpp
r1542 r1626 4 4 5 5 #include <boost/multi_array.hpp> 6 #include <memory>7 6 #include "xios.hpp" 8 7 #include "attribute_template.hpp" -
XIOS/trunk/src/interface/c_attr/iccalendar_wrapper_attr.cpp
r1542 r1626 4 4 5 5 #include <boost/multi_array.hpp> 6 #include <memory>7 6 #include "xios.hpp" 8 7 #include "attribute_template.hpp" -
XIOS/trunk/src/interface/c_attr/iccompute_connectivity_domain_attr.cpp
r1542 r1626 4 4 5 5 #include <boost/multi_array.hpp> 6 #include <memory>7 6 #include "xios.hpp" 8 7 #include "attribute_template.hpp" -
XIOS/trunk/src/interface/c_attr/iccontext_attr.cpp
r1542 r1626 4 4 5 5 #include <boost/multi_array.hpp> 6 #include <memory>7 6 #include "xios.hpp" 8 7 #include "attribute_template.hpp" -
XIOS/trunk/src/interface/c_attr/icdomain_attr.cpp
r1542 r1626 4 4 5 5 #include <boost/multi_array.hpp> 6 #include <memory>7 6 #include "xios.hpp" 8 7 #include "attribute_template.hpp" … … 952 951 953 952 953 void cxios_set_domain_radius(domain_Ptr domain_hdl, double radius) 954 { 955 CTimer::get("XIOS").resume(); 956 domain_hdl->radius.setValue(radius); 957 CTimer::get("XIOS").suspend(); 958 } 959 960 void cxios_get_domain_radius(domain_Ptr domain_hdl, double* radius) 961 { 962 CTimer::get("XIOS").resume(); 963 *radius = domain_hdl->radius.getInheritedValue(); 964 CTimer::get("XIOS").suspend(); 965 } 966 967 bool cxios_is_defined_domain_radius(domain_Ptr domain_hdl) 968 { 969 CTimer::get("XIOS").resume(); 970 bool isDefined = domain_hdl->radius.hasInheritedValue(); 971 CTimer::get("XIOS").suspend(); 972 return isDefined; 973 } 974 975 954 976 void cxios_set_domain_standard_name(domain_Ptr domain_hdl, const char * standard_name, int standard_name_size) 955 977 { -
XIOS/trunk/src/interface/c_attr/icdomaingroup_attr.cpp
r1542 r1626 4 4 5 5 #include <boost/multi_array.hpp> 6 #include <memory>7 6 #include "xios.hpp" 8 7 #include "attribute_template.hpp" … … 978 977 979 978 979 void cxios_set_domaingroup_radius(domaingroup_Ptr domaingroup_hdl, double radius) 980 { 981 CTimer::get("XIOS").resume(); 982 domaingroup_hdl->radius.setValue(radius); 983 CTimer::get("XIOS").suspend(); 984 } 985 986 void cxios_get_domaingroup_radius(domaingroup_Ptr domaingroup_hdl, double* radius) 987 { 988 CTimer::get("XIOS").resume(); 989 *radius = domaingroup_hdl->radius.getInheritedValue(); 990 CTimer::get("XIOS").suspend(); 991 } 992 993 bool cxios_is_defined_domaingroup_radius(domaingroup_Ptr domaingroup_hdl) 994 { 995 CTimer::get("XIOS").resume(); 996 bool isDefined = domaingroup_hdl->radius.hasInheritedValue(); 997 CTimer::get("XIOS").suspend(); 998 return isDefined; 999 } 1000 1001 980 1002 void cxios_set_domaingroup_standard_name(domaingroup_Ptr domaingroup_hdl, const char * standard_name, int standard_name_size) 981 1003 { -
XIOS/trunk/src/interface/c_attr/icduplicate_scalar_to_axis_attr.cpp
r1542 r1626 4 4 5 5 #include <boost/multi_array.hpp> 6 #include <memory>7 6 #include "xios.hpp" 8 7 #include "attribute_template.hpp" -
XIOS/trunk/src/interface/c_attr/icexpand_domain_attr.cpp
r1542 r1626 4 4 5 5 #include <boost/multi_array.hpp> 6 #include <memory>7 6 #include "xios.hpp" 8 7 #include "attribute_template.hpp" -
XIOS/trunk/src/interface/c_attr/icextract_axis_to_scalar_attr.cpp
r1542 r1626 4 4 5 5 #include <boost/multi_array.hpp> 6 #include <memory>7 6 #include "xios.hpp" 8 7 #include "attribute_template.hpp" -
XIOS/trunk/src/interface/c_attr/icextract_domain_to_axis_attr.cpp
r1542 r1626 4 4 5 5 #include <boost/multi_array.hpp> 6 #include <memory>7 6 #include "xios.hpp" 8 7 #include "attribute_template.hpp" -
XIOS/trunk/src/interface/c_attr/icfield_attr.cpp
r1542 r1626 4 4 5 5 #include <boost/multi_array.hpp> 6 #include <memory>7 6 #include "xios.hpp" 8 7 #include "attribute_template.hpp" -
XIOS/trunk/src/interface/c_attr/icfieldgroup_attr.cpp
r1542 r1626 4 4 5 5 #include <boost/multi_array.hpp> 6 #include <memory>7 6 #include "xios.hpp" 8 7 #include "attribute_template.hpp" -
XIOS/trunk/src/interface/c_attr/icfile_attr.cpp
r1542 r1626 4 4 5 5 #include <boost/multi_array.hpp> 6 #include <memory>7 6 #include "xios.hpp" 8 7 #include "attribute_template.hpp" -
XIOS/trunk/src/interface/c_attr/icfilegroup_attr.cpp
r1542 r1626 4 4 5 5 #include <boost/multi_array.hpp> 6 #include <memory>7 6 #include "xios.hpp" 8 7 #include "attribute_template.hpp" -
XIOS/trunk/src/interface/c_attr/icgenerate_rectilinear_domain_attr.cpp
r1542 r1626 4 4 5 5 #include <boost/multi_array.hpp> 6 #include <memory>7 6 #include "xios.hpp" 8 7 #include "attribute_template.hpp" -
XIOS/trunk/src/interface/c_attr/icgrid_attr.cpp
r1542 r1626 4 4 5 5 #include <boost/multi_array.hpp> 6 #include <memory>7 6 #include "xios.hpp" 8 7 #include "attribute_template.hpp" -
XIOS/trunk/src/interface/c_attr/icgridgroup_attr.cpp
r1542 r1626 4 4 5 5 #include <boost/multi_array.hpp> 6 #include <memory>7 6 #include "xios.hpp" 8 7 #include "attribute_template.hpp" -
XIOS/trunk/src/interface/c_attr/icinterpolate_axis_attr.cpp
r1542 r1626 4 4 5 5 #include <boost/multi_array.hpp> 6 #include <memory>7 6 #include "xios.hpp" 8 7 #include "attribute_template.hpp" -
XIOS/trunk/src/interface/c_attr/icinterpolate_domain_attr.cpp
r1542 r1626 4 4 5 5 #include <boost/multi_array.hpp> 6 #include <memory>7 6 #include "xios.hpp" 8 7 #include "attribute_template.hpp" … … 162 161 163 162 163 void cxios_set_interpolate_domain_use_area(interpolate_domain_Ptr interpolate_domain_hdl, bool use_area) 164 { 165 CTimer::get("XIOS").resume(); 166 interpolate_domain_hdl->use_area.setValue(use_area); 167 CTimer::get("XIOS").suspend(); 168 } 169 170 void cxios_get_interpolate_domain_use_area(interpolate_domain_Ptr interpolate_domain_hdl, bool* use_area) 171 { 172 CTimer::get("XIOS").resume(); 173 *use_area = interpolate_domain_hdl->use_area.getInheritedValue(); 174 CTimer::get("XIOS").suspend(); 175 } 176 177 bool cxios_is_defined_interpolate_domain_use_area(interpolate_domain_Ptr interpolate_domain_hdl) 178 { 179 CTimer::get("XIOS").resume(); 180 bool isDefined = interpolate_domain_hdl->use_area.hasInheritedValue(); 181 CTimer::get("XIOS").suspend(); 182 return isDefined; 183 } 184 185 164 186 void cxios_set_interpolate_domain_weight_filename(interpolate_domain_Ptr interpolate_domain_hdl, const char * weight_filename, int weight_filename_size) 165 187 { -
XIOS/trunk/src/interface/c_attr/icinverse_axis_attr.cpp
r1542 r1626 4 4 5 5 #include <boost/multi_array.hpp> 6 #include <memory>7 6 #include "xios.hpp" 8 7 #include "attribute_template.hpp" -
XIOS/trunk/src/interface/c_attr/icreduce_axis_to_axis_attr.cpp
r1542 r1626 4 4 5 5 #include <boost/multi_array.hpp> 6 #include <memory>7 6 #include "xios.hpp" 8 7 #include "attribute_template.hpp" -
XIOS/trunk/src/interface/c_attr/icreduce_axis_to_scalar_attr.cpp
r1542 r1626 4 4 5 5 #include <boost/multi_array.hpp> 6 #include <memory>7 6 #include "xios.hpp" 8 7 #include "attribute_template.hpp" -
XIOS/trunk/src/interface/c_attr/icreduce_domain_to_axis_attr.cpp
r1542 r1626 4 4 5 5 #include <boost/multi_array.hpp> 6 #include <memory>7 6 #include "xios.hpp" 8 7 #include "attribute_template.hpp" -
XIOS/trunk/src/interface/c_attr/icreduce_domain_to_scalar_attr.cpp
r1542 r1626 4 4 5 5 #include <boost/multi_array.hpp> 6 #include <memory>7 6 #include "xios.hpp" 8 7 #include "attribute_template.hpp" -
XIOS/trunk/src/interface/c_attr/icreduce_scalar_to_scalar_attr.cpp
r1542 r1626 4 4 5 5 #include <boost/multi_array.hpp> 6 #include <memory>7 6 #include "xios.hpp" 8 7 #include "attribute_template.hpp" -
XIOS/trunk/src/interface/c_attr/icreorder_domain_attr.cpp
r1542 r1626 4 4 5 5 #include <boost/multi_array.hpp> 6 #include <memory>7 6 #include "xios.hpp" 8 7 #include "attribute_template.hpp" -
XIOS/trunk/src/interface/c_attr/icscalar_attr.cpp
r1542 r1626 4 4 5 5 #include <boost/multi_array.hpp> 6 #include <memory>7 6 #include "xios.hpp" 8 7 #include "attribute_template.hpp" -
XIOS/trunk/src/interface/c_attr/icscalargroup_attr.cpp
r1542 r1626 4 4 5 5 #include <boost/multi_array.hpp> 6 #include <memory>7 6 #include "xios.hpp" 8 7 #include "attribute_template.hpp" -
XIOS/trunk/src/interface/c_attr/ictemporal_splitting_attr.cpp
r1542 r1626 4 4 5 5 #include <boost/multi_array.hpp> 6 #include <memory>7 6 #include "xios.hpp" 8 7 #include "attribute_template.hpp" -
XIOS/trunk/src/interface/c_attr/icvariable_attr.cpp
r1542 r1626 4 4 5 5 #include <boost/multi_array.hpp> 6 #include <memory>7 6 #include "xios.hpp" 8 7 #include "attribute_template.hpp" -
XIOS/trunk/src/interface/c_attr/icvariablegroup_attr.cpp
r1542 r1626 4 4 5 5 #include <boost/multi_array.hpp> 6 #include <memory>7 6 #include "xios.hpp" 8 7 #include "attribute_template.hpp" -
XIOS/trunk/src/interface/c_attr/iczoom_axis_attr.cpp
r1542 r1626 4 4 5 5 #include <boost/multi_array.hpp> 6 #include <memory>7 6 #include "xios.hpp" 8 7 #include "attribute_template.hpp" -
XIOS/trunk/src/interface/c_attr/iczoom_domain_attr.cpp
r1542 r1626 4 4 5 5 #include <boost/multi_array.hpp> 6 #include <memory>7 6 #include "xios.hpp" 8 7 #include "attribute_template.hpp" -
XIOS/trunk/src/interface/fortran_attr/domain_interface_attr.F90
r1492 r1626 782 782 783 783 784 SUBROUTINE cxios_set_domain_radius(domain_hdl, radius) BIND(C) 785 USE ISO_C_BINDING 786 INTEGER (kind = C_INTPTR_T), VALUE :: domain_hdl 787 REAL (KIND=C_DOUBLE) , VALUE :: radius 788 END SUBROUTINE cxios_set_domain_radius 789 790 SUBROUTINE cxios_get_domain_radius(domain_hdl, radius) BIND(C) 791 USE ISO_C_BINDING 792 INTEGER (kind = C_INTPTR_T), VALUE :: domain_hdl 793 REAL (KIND=C_DOUBLE) :: radius 794 END SUBROUTINE cxios_get_domain_radius 795 796 FUNCTION cxios_is_defined_domain_radius(domain_hdl) BIND(C) 797 USE ISO_C_BINDING 798 LOGICAL(kind=C_BOOL) :: cxios_is_defined_domain_radius 799 INTEGER (kind = C_INTPTR_T), VALUE :: domain_hdl 800 END FUNCTION cxios_is_defined_domain_radius 801 802 784 803 SUBROUTINE cxios_set_domain_standard_name(domain_hdl, standard_name, standard_name_size) BIND(C) 785 804 USE ISO_C_BINDING -
XIOS/trunk/src/interface/fortran_attr/domaingroup_interface_attr.F90
r1492 r1626 803 803 804 804 805 SUBROUTINE cxios_set_domaingroup_radius(domaingroup_hdl, radius) BIND(C) 806 USE ISO_C_BINDING 807 INTEGER (kind = C_INTPTR_T), VALUE :: domaingroup_hdl 808 REAL (KIND=C_DOUBLE) , VALUE :: radius 809 END SUBROUTINE cxios_set_domaingroup_radius 810 811 SUBROUTINE cxios_get_domaingroup_radius(domaingroup_hdl, radius) BIND(C) 812 USE ISO_C_BINDING 813 INTEGER (kind = C_INTPTR_T), VALUE :: domaingroup_hdl 814 REAL (KIND=C_DOUBLE) :: radius 815 END SUBROUTINE cxios_get_domaingroup_radius 816 817 FUNCTION cxios_is_defined_domaingroup_radius(domaingroup_hdl) BIND(C) 818 USE ISO_C_BINDING 819 LOGICAL(kind=C_BOOL) :: cxios_is_defined_domaingroup_radius 820 INTEGER (kind = C_INTPTR_T), VALUE :: domaingroup_hdl 821 END FUNCTION cxios_is_defined_domaingroup_radius 822 823 805 824 SUBROUTINE cxios_set_domaingroup_standard_name(domaingroup_hdl, standard_name, standard_name_size) BIND(C) 806 825 USE ISO_C_BINDING -
XIOS/trunk/src/interface/fortran_attr/idomain_attr.F90
r1492 r1626 16 16 , data_nj, dim_i_name, dim_j_name, domain_ref, i_index, ibegin, j_index, jbegin, lat_name, latvalue_1d & 17 17 , latvalue_2d, lon_name, long_name, lonvalue_1d, lonvalue_2d, mask_1d, mask_2d, name, ni, ni_glo & 18 , nj, nj_glo, nvertex, prec, standard_name, type )18 , nj, nj_glo, nvertex, prec, radius, standard_name, type ) 19 19 20 20 IMPLICIT NONE … … 61 61 INTEGER , OPTIONAL, INTENT(IN) :: nvertex 62 62 INTEGER , OPTIONAL, INTENT(IN) :: prec 63 REAL (KIND=8) , OPTIONAL, INTENT(IN) :: radius 63 64 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: standard_name 64 65 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: type … … 71 72 , data_nj, dim_i_name, dim_j_name, domain_ref, i_index, ibegin, j_index, jbegin, lat_name, latvalue_1d & 72 73 , latvalue_2d, lon_name, long_name, lonvalue_1d, lonvalue_2d, mask_1d, mask_2d, name, ni, ni_glo & 73 , nj, nj_glo, nvertex, prec, standard_name, type )74 , nj, nj_glo, nvertex, prec, radius, standard_name, type ) 74 75 75 76 END SUBROUTINE xios(set_domain_attr) … … 80 81 , data_nj, dim_i_name, dim_j_name, domain_ref, i_index, ibegin, j_index, jbegin, lat_name, latvalue_1d & 81 82 , latvalue_2d, lon_name, long_name, lonvalue_1d, lonvalue_2d, mask_1d, mask_2d, name, ni, ni_glo & 82 , nj, nj_glo, nvertex, prec, standard_name, type )83 , nj, nj_glo, nvertex, prec, radius, standard_name, type ) 83 84 84 85 IMPLICIT NONE … … 124 125 INTEGER , OPTIONAL, INTENT(IN) :: nvertex 125 126 INTEGER , OPTIONAL, INTENT(IN) :: prec 127 REAL (KIND=8) , OPTIONAL, INTENT(IN) :: radius 126 128 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: standard_name 127 129 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: type … … 132 134 , data_nj, dim_i_name, dim_j_name, domain_ref, i_index, ibegin, j_index, jbegin, lat_name, latvalue_1d & 133 135 , latvalue_2d, lon_name, long_name, lonvalue_1d, lonvalue_2d, mask_1d, mask_2d, name, ni, ni_glo & 134 , nj, nj_glo, nvertex, prec, standard_name, type )136 , nj, nj_glo, nvertex, prec, radius, standard_name, type ) 135 137 136 138 END SUBROUTINE xios(set_domain_attr_hdl) … … 141 143 , data_ni_, data_nj_, dim_i_name_, dim_j_name_, domain_ref_, i_index_, ibegin_, j_index_, jbegin_ & 142 144 , lat_name_, latvalue_1d_, latvalue_2d_, lon_name_, long_name_, lonvalue_1d_, lonvalue_2d_, mask_1d_ & 143 , mask_2d_, name_, ni_, ni_glo_, nj_, nj_glo_, nvertex_, prec_, standard_name_, type_ ) 145 , mask_2d_, name_, ni_, ni_glo_, nj_, nj_glo_, nvertex_, prec_, radius_, standard_name_, type_ & 146 ) 144 147 145 148 IMPLICIT NONE … … 185 188 INTEGER , OPTIONAL, INTENT(IN) :: nvertex_ 186 189 INTEGER , OPTIONAL, INTENT(IN) :: prec_ 190 REAL (KIND=8) , OPTIONAL, INTENT(IN) :: radius_ 187 191 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: standard_name_ 188 192 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: type_ … … 382 386 ENDIF 383 387 388 IF (PRESENT(radius_)) THEN 389 CALL cxios_set_domain_radius & 390 (domain_hdl%daddr, radius_) 391 ENDIF 392 384 393 IF (PRESENT(standard_name_)) THEN 385 394 CALL cxios_set_domain_standard_name & … … 399 408 , data_nj, dim_i_name, dim_j_name, domain_ref, i_index, ibegin, j_index, jbegin, lat_name, latvalue_1d & 400 409 , latvalue_2d, lon_name, long_name, lonvalue_1d, lonvalue_2d, mask_1d, mask_2d, name, ni, ni_glo & 401 , nj, nj_glo, nvertex, prec, standard_name, type )410 , nj, nj_glo, nvertex, prec, radius, standard_name, type ) 402 411 403 412 IMPLICIT NONE … … 444 453 INTEGER , OPTIONAL, INTENT(OUT) :: nvertex 445 454 INTEGER , OPTIONAL, INTENT(OUT) :: prec 455 REAL (KIND=8) , OPTIONAL, INTENT(OUT) :: radius 446 456 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: standard_name 447 457 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: type … … 454 464 , data_nj, dim_i_name, dim_j_name, domain_ref, i_index, ibegin, j_index, jbegin, lat_name, latvalue_1d & 455 465 , latvalue_2d, lon_name, long_name, lonvalue_1d, lonvalue_2d, mask_1d, mask_2d, name, ni, ni_glo & 456 , nj, nj_glo, nvertex, prec, standard_name, type )466 , nj, nj_glo, nvertex, prec, radius, standard_name, type ) 457 467 458 468 END SUBROUTINE xios(get_domain_attr) … … 463 473 , data_nj, dim_i_name, dim_j_name, domain_ref, i_index, ibegin, j_index, jbegin, lat_name, latvalue_1d & 464 474 , latvalue_2d, lon_name, long_name, lonvalue_1d, lonvalue_2d, mask_1d, mask_2d, name, ni, ni_glo & 465 , nj, nj_glo, nvertex, prec, standard_name, type )475 , nj, nj_glo, nvertex, prec, radius, standard_name, type ) 466 476 467 477 IMPLICIT NONE … … 507 517 INTEGER , OPTIONAL, INTENT(OUT) :: nvertex 508 518 INTEGER , OPTIONAL, INTENT(OUT) :: prec 519 REAL (KIND=8) , OPTIONAL, INTENT(OUT) :: radius 509 520 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: standard_name 510 521 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: type … … 515 526 , data_nj, dim_i_name, dim_j_name, domain_ref, i_index, ibegin, j_index, jbegin, lat_name, latvalue_1d & 516 527 , latvalue_2d, lon_name, long_name, lonvalue_1d, lonvalue_2d, mask_1d, mask_2d, name, ni, ni_glo & 517 , nj, nj_glo, nvertex, prec, standard_name, type )528 , nj, nj_glo, nvertex, prec, radius, standard_name, type ) 518 529 519 530 END SUBROUTINE xios(get_domain_attr_hdl) … … 524 535 , data_ni_, data_nj_, dim_i_name_, dim_j_name_, domain_ref_, i_index_, ibegin_, j_index_, jbegin_ & 525 536 , lat_name_, latvalue_1d_, latvalue_2d_, lon_name_, long_name_, lonvalue_1d_, lonvalue_2d_, mask_1d_ & 526 , mask_2d_, name_, ni_, ni_glo_, nj_, nj_glo_, nvertex_, prec_, standard_name_, type_ ) 537 , mask_2d_, name_, ni_, ni_glo_, nj_, nj_glo_, nvertex_, prec_, radius_, standard_name_, type_ & 538 ) 527 539 528 540 IMPLICIT NONE … … 568 580 INTEGER , OPTIONAL, INTENT(OUT) :: nvertex_ 569 581 INTEGER , OPTIONAL, INTENT(OUT) :: prec_ 582 REAL (KIND=8) , OPTIONAL, INTENT(OUT) :: radius_ 570 583 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: standard_name_ 571 584 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: type_ … … 765 778 ENDIF 766 779 780 IF (PRESENT(radius_)) THEN 781 CALL cxios_get_domain_radius & 782 (domain_hdl%daddr, radius_) 783 ENDIF 784 767 785 IF (PRESENT(standard_name_)) THEN 768 786 CALL cxios_get_domain_standard_name & … … 782 800 , data_nj, dim_i_name, dim_j_name, domain_ref, i_index, ibegin, j_index, jbegin, lat_name, latvalue_1d & 783 801 , latvalue_2d, lon_name, long_name, lonvalue_1d, lonvalue_2d, mask_1d, mask_2d, name, ni, ni_glo & 784 , nj, nj_glo, nvertex, prec, standard_name, type )802 , nj, nj_glo, nvertex, prec, radius, standard_name, type ) 785 803 786 804 IMPLICIT NONE … … 863 881 LOGICAL, OPTIONAL, INTENT(OUT) :: prec 864 882 LOGICAL(KIND=C_BOOL) :: prec_tmp 883 LOGICAL, OPTIONAL, INTENT(OUT) :: radius 884 LOGICAL(KIND=C_BOOL) :: radius_tmp 865 885 LOGICAL, OPTIONAL, INTENT(OUT) :: standard_name 866 886 LOGICAL(KIND=C_BOOL) :: standard_name_tmp … … 875 895 , data_nj, dim_i_name, dim_j_name, domain_ref, i_index, ibegin, j_index, jbegin, lat_name, latvalue_1d & 876 896 , latvalue_2d, lon_name, long_name, lonvalue_1d, lonvalue_2d, mask_1d, mask_2d, name, ni, ni_glo & 877 , nj, nj_glo, nvertex, prec, standard_name, type )897 , nj, nj_glo, nvertex, prec, radius, standard_name, type ) 878 898 879 899 END SUBROUTINE xios(is_defined_domain_attr) … … 884 904 , data_nj, dim_i_name, dim_j_name, domain_ref, i_index, ibegin, j_index, jbegin, lat_name, latvalue_1d & 885 905 , latvalue_2d, lon_name, long_name, lonvalue_1d, lonvalue_2d, mask_1d, mask_2d, name, ni, ni_glo & 886 , nj, nj_glo, nvertex, prec, standard_name, type )906 , nj, nj_glo, nvertex, prec, radius, standard_name, type ) 887 907 888 908 IMPLICIT NONE … … 964 984 LOGICAL, OPTIONAL, INTENT(OUT) :: prec 965 985 LOGICAL(KIND=C_BOOL) :: prec_tmp 986 LOGICAL, OPTIONAL, INTENT(OUT) :: radius 987 LOGICAL(KIND=C_BOOL) :: radius_tmp 966 988 LOGICAL, OPTIONAL, INTENT(OUT) :: standard_name 967 989 LOGICAL(KIND=C_BOOL) :: standard_name_tmp … … 974 996 , data_nj, dim_i_name, dim_j_name, domain_ref, i_index, ibegin, j_index, jbegin, lat_name, latvalue_1d & 975 997 , latvalue_2d, lon_name, long_name, lonvalue_1d, lonvalue_2d, mask_1d, mask_2d, name, ni, ni_glo & 976 , nj, nj_glo, nvertex, prec, standard_name, type )998 , nj, nj_glo, nvertex, prec, radius, standard_name, type ) 977 999 978 1000 END SUBROUTINE xios(is_defined_domain_attr_hdl) … … 983 1005 , data_ni_, data_nj_, dim_i_name_, dim_j_name_, domain_ref_, i_index_, ibegin_, j_index_, jbegin_ & 984 1006 , lat_name_, latvalue_1d_, latvalue_2d_, lon_name_, long_name_, lonvalue_1d_, lonvalue_2d_, mask_1d_ & 985 , mask_2d_, name_, ni_, ni_glo_, nj_, nj_glo_, nvertex_, prec_, standard_name_, type_ ) 1007 , mask_2d_, name_, ni_, ni_glo_, nj_, nj_glo_, nvertex_, prec_, radius_, standard_name_, type_ & 1008 ) 986 1009 987 1010 IMPLICIT NONE … … 1063 1086 LOGICAL, OPTIONAL, INTENT(OUT) :: prec_ 1064 1087 LOGICAL(KIND=C_BOOL) :: prec__tmp 1088 LOGICAL, OPTIONAL, INTENT(OUT) :: radius_ 1089 LOGICAL(KIND=C_BOOL) :: radius__tmp 1065 1090 LOGICAL, OPTIONAL, INTENT(OUT) :: standard_name_ 1066 1091 LOGICAL(KIND=C_BOOL) :: standard_name__tmp … … 1296 1321 ENDIF 1297 1322 1323 IF (PRESENT(radius_)) THEN 1324 radius__tmp = cxios_is_defined_domain_radius & 1325 (domain_hdl%daddr) 1326 radius_ = radius__tmp 1327 ENDIF 1328 1298 1329 IF (PRESENT(standard_name_)) THEN 1299 1330 standard_name__tmp = cxios_is_defined_domain_standard_name & -
XIOS/trunk/src/interface/fortran_attr/idomaingroup_attr.F90
r1492 r1626 16 16 , data_nj, dim_i_name, dim_j_name, domain_ref, group_ref, i_index, ibegin, j_index, jbegin, lat_name & 17 17 , latvalue_1d, latvalue_2d, lon_name, long_name, lonvalue_1d, lonvalue_2d, mask_1d, mask_2d & 18 , name, ni, ni_glo, nj, nj_glo, nvertex, prec, standard_name, type )18 , name, ni, ni_glo, nj, nj_glo, nvertex, prec, radius, standard_name, type ) 19 19 20 20 IMPLICIT NONE … … 62 62 INTEGER , OPTIONAL, INTENT(IN) :: nvertex 63 63 INTEGER , OPTIONAL, INTENT(IN) :: prec 64 REAL (KIND=8) , OPTIONAL, INTENT(IN) :: radius 64 65 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: standard_name 65 66 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: type … … 72 73 , data_nj, dim_i_name, dim_j_name, domain_ref, group_ref, i_index, ibegin, j_index, jbegin, lat_name & 73 74 , latvalue_1d, latvalue_2d, lon_name, long_name, lonvalue_1d, lonvalue_2d, mask_1d, mask_2d & 74 , name, ni, ni_glo, nj, nj_glo, nvertex, prec, standard_name, type )75 , name, ni, ni_glo, nj, nj_glo, nvertex, prec, radius, standard_name, type ) 75 76 76 77 END SUBROUTINE xios(set_domaingroup_attr) … … 81 82 , data_nj, dim_i_name, dim_j_name, domain_ref, group_ref, i_index, ibegin, j_index, jbegin, lat_name & 82 83 , latvalue_1d, latvalue_2d, lon_name, long_name, lonvalue_1d, lonvalue_2d, mask_1d, mask_2d & 83 , name, ni, ni_glo, nj, nj_glo, nvertex, prec, standard_name, type )84 , name, ni, ni_glo, nj, nj_glo, nvertex, prec, radius, standard_name, type ) 84 85 85 86 IMPLICIT NONE … … 126 127 INTEGER , OPTIONAL, INTENT(IN) :: nvertex 127 128 INTEGER , OPTIONAL, INTENT(IN) :: prec 129 REAL (KIND=8) , OPTIONAL, INTENT(IN) :: radius 128 130 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: standard_name 129 131 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: type … … 134 136 , data_nj, dim_i_name, dim_j_name, domain_ref, group_ref, i_index, ibegin, j_index, jbegin, lat_name & 135 137 , latvalue_1d, latvalue_2d, lon_name, long_name, lonvalue_1d, lonvalue_2d, mask_1d, mask_2d & 136 , name, ni, ni_glo, nj, nj_glo, nvertex, prec, standard_name, type )138 , name, ni, ni_glo, nj, nj_glo, nvertex, prec, radius, standard_name, type ) 137 139 138 140 END SUBROUTINE xios(set_domaingroup_attr_hdl) … … 143 145 , data_ni_, data_nj_, dim_i_name_, dim_j_name_, domain_ref_, group_ref_, i_index_, ibegin_, j_index_ & 144 146 , jbegin_, lat_name_, latvalue_1d_, latvalue_2d_, lon_name_, long_name_, lonvalue_1d_, lonvalue_2d_ & 145 , mask_1d_, mask_2d_, name_, ni_, ni_glo_, nj_, nj_glo_, nvertex_, prec_, standard_name_, type_ &146 )147 , mask_1d_, mask_2d_, name_, ni_, ni_glo_, nj_, nj_glo_, nvertex_, prec_, radius_, standard_name_ & 148 , type_ ) 147 149 148 150 IMPLICIT NONE … … 189 191 INTEGER , OPTIONAL, INTENT(IN) :: nvertex_ 190 192 INTEGER , OPTIONAL, INTENT(IN) :: prec_ 193 REAL (KIND=8) , OPTIONAL, INTENT(IN) :: radius_ 191 194 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: standard_name_ 192 195 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: type_ … … 391 394 ENDIF 392 395 396 IF (PRESENT(radius_)) THEN 397 CALL cxios_set_domaingroup_radius & 398 (domaingroup_hdl%daddr, radius_) 399 ENDIF 400 393 401 IF (PRESENT(standard_name_)) THEN 394 402 CALL cxios_set_domaingroup_standard_name & … … 408 416 , data_nj, dim_i_name, dim_j_name, domain_ref, group_ref, i_index, ibegin, j_index, jbegin, lat_name & 409 417 , latvalue_1d, latvalue_2d, lon_name, long_name, lonvalue_1d, lonvalue_2d, mask_1d, mask_2d & 410 , name, ni, ni_glo, nj, nj_glo, nvertex, prec, standard_name, type )418 , name, ni, ni_glo, nj, nj_glo, nvertex, prec, radius, standard_name, type ) 411 419 412 420 IMPLICIT NONE … … 454 462 INTEGER , OPTIONAL, INTENT(OUT) :: nvertex 455 463 INTEGER , OPTIONAL, INTENT(OUT) :: prec 464 REAL (KIND=8) , OPTIONAL, INTENT(OUT) :: radius 456 465 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: standard_name 457 466 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: type … … 464 473 , data_nj, dim_i_name, dim_j_name, domain_ref, group_ref, i_index, ibegin, j_index, jbegin, lat_name & 465 474 , latvalue_1d, latvalue_2d, lon_name, long_name, lonvalue_1d, lonvalue_2d, mask_1d, mask_2d & 466 , name, ni, ni_glo, nj, nj_glo, nvertex, prec, standard_name, type )475 , name, ni, ni_glo, nj, nj_glo, nvertex, prec, radius, standard_name, type ) 467 476 468 477 END SUBROUTINE xios(get_domaingroup_attr) … … 473 482 , data_nj, dim_i_name, dim_j_name, domain_ref, group_ref, i_index, ibegin, j_index, jbegin, lat_name & 474 483 , latvalue_1d, latvalue_2d, lon_name, long_name, lonvalue_1d, lonvalue_2d, mask_1d, mask_2d & 475 , name, ni, ni_glo, nj, nj_glo, nvertex, prec, standard_name, type )484 , name, ni, ni_glo, nj, nj_glo, nvertex, prec, radius, standard_name, type ) 476 485 477 486 IMPLICIT NONE … … 518 527 INTEGER , OPTIONAL, INTENT(OUT) :: nvertex 519 528 INTEGER , OPTIONAL, INTENT(OUT) :: prec 529 REAL (KIND=8) , OPTIONAL, INTENT(OUT) :: radius 520 530 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: standard_name 521 531 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: type … … 526 536 , data_nj, dim_i_name, dim_j_name, domain_ref, group_ref, i_index, ibegin, j_index, jbegin, lat_name & 527 537 , latvalue_1d, latvalue_2d, lon_name, long_name, lonvalue_1d, lonvalue_2d, mask_1d, mask_2d & 528 , name, ni, ni_glo, nj, nj_glo, nvertex, prec, standard_name, type )538 , name, ni, ni_glo, nj, nj_glo, nvertex, prec, radius, standard_name, type ) 529 539 530 540 END SUBROUTINE xios(get_domaingroup_attr_hdl) … … 535 545 , data_ni_, data_nj_, dim_i_name_, dim_j_name_, domain_ref_, group_ref_, i_index_, ibegin_, j_index_ & 536 546 , jbegin_, lat_name_, latvalue_1d_, latvalue_2d_, lon_name_, long_name_, lonvalue_1d_, lonvalue_2d_ & 537 , mask_1d_, mask_2d_, name_, ni_, ni_glo_, nj_, nj_glo_, nvertex_, prec_, standard_name_, type_ &538 )547 , mask_1d_, mask_2d_, name_, ni_, ni_glo_, nj_, nj_glo_, nvertex_, prec_, radius_, standard_name_ & 548 , type_ ) 539 549 540 550 IMPLICIT NONE … … 581 591 INTEGER , OPTIONAL, INTENT(OUT) :: nvertex_ 582 592 INTEGER , OPTIONAL, INTENT(OUT) :: prec_ 593 REAL (KIND=8) , OPTIONAL, INTENT(OUT) :: radius_ 583 594 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: standard_name_ 584 595 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: type_ … … 783 794 ENDIF 784 795 796 IF (PRESENT(radius_)) THEN 797 CALL cxios_get_domaingroup_radius & 798 (domaingroup_hdl%daddr, radius_) 799 ENDIF 800 785 801 IF (PRESENT(standard_name_)) THEN 786 802 CALL cxios_get_domaingroup_standard_name & … … 800 816 , data_nj, dim_i_name, dim_j_name, domain_ref, group_ref, i_index, ibegin, j_index, jbegin, lat_name & 801 817 , latvalue_1d, latvalue_2d, lon_name, long_name, lonvalue_1d, lonvalue_2d, mask_1d, mask_2d & 802 , name, ni, ni_glo, nj, nj_glo, nvertex, prec, standard_name, type )818 , name, ni, ni_glo, nj, nj_glo, nvertex, prec, radius, standard_name, type ) 803 819 804 820 IMPLICIT NONE … … 883 899 LOGICAL, OPTIONAL, INTENT(OUT) :: prec 884 900 LOGICAL(KIND=C_BOOL) :: prec_tmp 901 LOGICAL, OPTIONAL, INTENT(OUT) :: radius 902 LOGICAL(KIND=C_BOOL) :: radius_tmp 885 903 LOGICAL, OPTIONAL, INTENT(OUT) :: standard_name 886 904 LOGICAL(KIND=C_BOOL) :: standard_name_tmp … … 895 913 , data_nj, dim_i_name, dim_j_name, domain_ref, group_ref, i_index, ibegin, j_index, jbegin, lat_name & 896 914 , latvalue_1d, latvalue_2d, lon_name, long_name, lonvalue_1d, lonvalue_2d, mask_1d, mask_2d & 897 , name, ni, ni_glo, nj, nj_glo, nvertex, prec, standard_name, type )915 , name, ni, ni_glo, nj, nj_glo, nvertex, prec, radius, standard_name, type ) 898 916 899 917 END SUBROUTINE xios(is_defined_domaingroup_attr) … … 904 922 , data_nj, dim_i_name, dim_j_name, domain_ref, group_ref, i_index, ibegin, j_index, jbegin, lat_name & 905 923 , latvalue_1d, latvalue_2d, lon_name, long_name, lonvalue_1d, lonvalue_2d, mask_1d, mask_2d & 906 , name, ni, ni_glo, nj, nj_glo, nvertex, prec, standard_name, type )924 , name, ni, ni_glo, nj, nj_glo, nvertex, prec, radius, standard_name, type ) 907 925 908 926 IMPLICIT NONE … … 986 1004 LOGICAL, OPTIONAL, INTENT(OUT) :: prec 987 1005 LOGICAL(KIND=C_BOOL) :: prec_tmp 1006 LOGICAL, OPTIONAL, INTENT(OUT) :: radius 1007 LOGICAL(KIND=C_BOOL) :: radius_tmp 988 1008 LOGICAL, OPTIONAL, INTENT(OUT) :: standard_name 989 1009 LOGICAL(KIND=C_BOOL) :: standard_name_tmp … … 996 1016 , data_nj, dim_i_name, dim_j_name, domain_ref, group_ref, i_index, ibegin, j_index, jbegin, lat_name & 997 1017 , latvalue_1d, latvalue_2d, lon_name, long_name, lonvalue_1d, lonvalue_2d, mask_1d, mask_2d & 998 , name, ni, ni_glo, nj, nj_glo, nvertex, prec, standard_name, type )1018 , name, ni, ni_glo, nj, nj_glo, nvertex, prec, radius, standard_name, type ) 999 1019 1000 1020 END SUBROUTINE xios(is_defined_domaingroup_attr_hdl) … … 1005 1025 , data_ni_, data_nj_, dim_i_name_, dim_j_name_, domain_ref_, group_ref_, i_index_, ibegin_, j_index_ & 1006 1026 , jbegin_, lat_name_, latvalue_1d_, latvalue_2d_, lon_name_, long_name_, lonvalue_1d_, lonvalue_2d_ & 1007 , mask_1d_, mask_2d_, name_, ni_, ni_glo_, nj_, nj_glo_, nvertex_, prec_, standard_name_, type_ &1008 )1027 , mask_1d_, mask_2d_, name_, ni_, ni_glo_, nj_, nj_glo_, nvertex_, prec_, radius_, standard_name_ & 1028 , type_ ) 1009 1029 1010 1030 IMPLICIT NONE … … 1088 1108 LOGICAL, OPTIONAL, INTENT(OUT) :: prec_ 1089 1109 LOGICAL(KIND=C_BOOL) :: prec__tmp 1110 LOGICAL, OPTIONAL, INTENT(OUT) :: radius_ 1111 LOGICAL(KIND=C_BOOL) :: radius__tmp 1090 1112 LOGICAL, OPTIONAL, INTENT(OUT) :: standard_name_ 1091 1113 LOGICAL(KIND=C_BOOL) :: standard_name__tmp … … 1327 1349 ENDIF 1328 1350 1351 IF (PRESENT(radius_)) THEN 1352 radius__tmp = cxios_is_defined_domaingroup_radius & 1353 (domaingroup_hdl%daddr) 1354 radius_ = radius__tmp 1355 ENDIF 1356 1329 1357 IF (PRESENT(standard_name_)) THEN 1330 1358 standard_name__tmp = cxios_is_defined_domaingroup_standard_name & -
XIOS/trunk/src/interface/fortran_attr/iinterpolate_domain_attr.F90
r1492 r1626 13 13 SUBROUTINE xios(set_interpolate_domain_attr) & 14 14 ( interpolate_domain_id, detect_missing_value, mode, order, quantity, read_write_convention & 15 , renormalize, weight_filename, write_weight )15 , renormalize, use_area, weight_filename, write_weight ) 16 16 17 17 IMPLICIT NONE … … 27 27 LOGICAL , OPTIONAL, INTENT(IN) :: renormalize 28 28 LOGICAL (KIND=C_BOOL) :: renormalize_tmp 29 LOGICAL , OPTIONAL, INTENT(IN) :: use_area 30 LOGICAL (KIND=C_BOOL) :: use_area_tmp 29 31 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: weight_filename 30 32 LOGICAL , OPTIONAL, INTENT(IN) :: write_weight … … 35 37 CALL xios(set_interpolate_domain_attr_hdl_) & 36 38 ( interpolate_domain_hdl, detect_missing_value, mode, order, quantity, read_write_convention & 37 , renormalize, weight_filename, write_weight )39 , renormalize, use_area, weight_filename, write_weight ) 38 40 39 41 END SUBROUTINE xios(set_interpolate_domain_attr) … … 41 43 SUBROUTINE xios(set_interpolate_domain_attr_hdl) & 42 44 ( interpolate_domain_hdl, detect_missing_value, mode, order, quantity, read_write_convention & 43 , renormalize, weight_filename, write_weight )45 , renormalize, use_area, weight_filename, write_weight ) 44 46 45 47 IMPLICIT NONE … … 54 56 LOGICAL , OPTIONAL, INTENT(IN) :: renormalize 55 57 LOGICAL (KIND=C_BOOL) :: renormalize_tmp 58 LOGICAL , OPTIONAL, INTENT(IN) :: use_area 59 LOGICAL (KIND=C_BOOL) :: use_area_tmp 56 60 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: weight_filename 57 61 LOGICAL , OPTIONAL, INTENT(IN) :: write_weight … … 60 64 CALL xios(set_interpolate_domain_attr_hdl_) & 61 65 ( interpolate_domain_hdl, detect_missing_value, mode, order, quantity, read_write_convention & 62 , renormalize, weight_filename, write_weight )66 , renormalize, use_area, weight_filename, write_weight ) 63 67 64 68 END SUBROUTINE xios(set_interpolate_domain_attr_hdl) … … 66 70 SUBROUTINE xios(set_interpolate_domain_attr_hdl_) & 67 71 ( interpolate_domain_hdl, detect_missing_value_, mode_, order_, quantity_, read_write_convention_ & 68 , renormalize_, weight_filename_, write_weight_ )72 , renormalize_, use_area_, weight_filename_, write_weight_ ) 69 73 70 74 IMPLICIT NONE … … 79 83 LOGICAL , OPTIONAL, INTENT(IN) :: renormalize_ 80 84 LOGICAL (KIND=C_BOOL) :: renormalize__tmp 85 LOGICAL , OPTIONAL, INTENT(IN) :: use_area_ 86 LOGICAL (KIND=C_BOOL) :: use_area__tmp 81 87 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: weight_filename_ 82 88 LOGICAL , OPTIONAL, INTENT(IN) :: write_weight_ … … 116 122 ENDIF 117 123 124 IF (PRESENT(use_area_)) THEN 125 use_area__tmp = use_area_ 126 CALL cxios_set_interpolate_domain_use_area & 127 (interpolate_domain_hdl%daddr, use_area__tmp) 128 ENDIF 129 118 130 IF (PRESENT(weight_filename_)) THEN 119 131 CALL cxios_set_interpolate_domain_weight_filename & … … 131 143 SUBROUTINE xios(get_interpolate_domain_attr) & 132 144 ( interpolate_domain_id, detect_missing_value, mode, order, quantity, read_write_convention & 133 , renormalize, weight_filename, write_weight )145 , renormalize, use_area, weight_filename, write_weight ) 134 146 135 147 IMPLICIT NONE … … 145 157 LOGICAL , OPTIONAL, INTENT(OUT) :: renormalize 146 158 LOGICAL (KIND=C_BOOL) :: renormalize_tmp 159 LOGICAL , OPTIONAL, INTENT(OUT) :: use_area 160 LOGICAL (KIND=C_BOOL) :: use_area_tmp 147 161 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: weight_filename 148 162 LOGICAL , OPTIONAL, INTENT(OUT) :: write_weight … … 153 167 CALL xios(get_interpolate_domain_attr_hdl_) & 154 168 ( interpolate_domain_hdl, detect_missing_value, mode, order, quantity, read_write_convention & 155 , renormalize, weight_filename, write_weight )169 , renormalize, use_area, weight_filename, write_weight ) 156 170 157 171 END SUBROUTINE xios(get_interpolate_domain_attr) … … 159 173 SUBROUTINE xios(get_interpolate_domain_attr_hdl) & 160 174 ( interpolate_domain_hdl, detect_missing_value, mode, order, quantity, read_write_convention & 161 , renormalize, weight_filename, write_weight )175 , renormalize, use_area, weight_filename, write_weight ) 162 176 163 177 IMPLICIT NONE … … 172 186 LOGICAL , OPTIONAL, INTENT(OUT) :: renormalize 173 187 LOGICAL (KIND=C_BOOL) :: renormalize_tmp 188 LOGICAL , OPTIONAL, INTENT(OUT) :: use_area 189 LOGICAL (KIND=C_BOOL) :: use_area_tmp 174 190 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: weight_filename 175 191 LOGICAL , OPTIONAL, INTENT(OUT) :: write_weight … … 178 194 CALL xios(get_interpolate_domain_attr_hdl_) & 179 195 ( interpolate_domain_hdl, detect_missing_value, mode, order, quantity, read_write_convention & 180 , renormalize, weight_filename, write_weight )196 , renormalize, use_area, weight_filename, write_weight ) 181 197 182 198 END SUBROUTINE xios(get_interpolate_domain_attr_hdl) … … 184 200 SUBROUTINE xios(get_interpolate_domain_attr_hdl_) & 185 201 ( interpolate_domain_hdl, detect_missing_value_, mode_, order_, quantity_, read_write_convention_ & 186 , renormalize_, weight_filename_, write_weight_ )202 , renormalize_, use_area_, weight_filename_, write_weight_ ) 187 203 188 204 IMPLICIT NONE … … 197 213 LOGICAL , OPTIONAL, INTENT(OUT) :: renormalize_ 198 214 LOGICAL (KIND=C_BOOL) :: renormalize__tmp 215 LOGICAL , OPTIONAL, INTENT(OUT) :: use_area_ 216 LOGICAL (KIND=C_BOOL) :: use_area__tmp 199 217 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: weight_filename_ 200 218 LOGICAL , OPTIONAL, INTENT(OUT) :: write_weight_ … … 234 252 ENDIF 235 253 254 IF (PRESENT(use_area_)) THEN 255 CALL cxios_get_interpolate_domain_use_area & 256 (interpolate_domain_hdl%daddr, use_area__tmp) 257 use_area_ = use_area__tmp 258 ENDIF 259 236 260 IF (PRESENT(weight_filename_)) THEN 237 261 CALL cxios_get_interpolate_domain_weight_filename & … … 249 273 SUBROUTINE xios(is_defined_interpolate_domain_attr) & 250 274 ( interpolate_domain_id, detect_missing_value, mode, order, quantity, read_write_convention & 251 , renormalize, weight_filename, write_weight )275 , renormalize, use_area, weight_filename, write_weight ) 252 276 253 277 IMPLICIT NONE … … 266 290 LOGICAL, OPTIONAL, INTENT(OUT) :: renormalize 267 291 LOGICAL(KIND=C_BOOL) :: renormalize_tmp 292 LOGICAL, OPTIONAL, INTENT(OUT) :: use_area 293 LOGICAL(KIND=C_BOOL) :: use_area_tmp 268 294 LOGICAL, OPTIONAL, INTENT(OUT) :: weight_filename 269 295 LOGICAL(KIND=C_BOOL) :: weight_filename_tmp … … 275 301 CALL xios(is_defined_interpolate_domain_attr_hdl_) & 276 302 ( interpolate_domain_hdl, detect_missing_value, mode, order, quantity, read_write_convention & 277 , renormalize, weight_filename, write_weight )303 , renormalize, use_area, weight_filename, write_weight ) 278 304 279 305 END SUBROUTINE xios(is_defined_interpolate_domain_attr) … … 281 307 SUBROUTINE xios(is_defined_interpolate_domain_attr_hdl) & 282 308 ( interpolate_domain_hdl, detect_missing_value, mode, order, quantity, read_write_convention & 283 , renormalize, weight_filename, write_weight )309 , renormalize, use_area, weight_filename, write_weight ) 284 310 285 311 IMPLICIT NONE … … 297 323 LOGICAL, OPTIONAL, INTENT(OUT) :: renormalize 298 324 LOGICAL(KIND=C_BOOL) :: renormalize_tmp 325 LOGICAL, OPTIONAL, INTENT(OUT) :: use_area 326 LOGICAL(KIND=C_BOOL) :: use_area_tmp 299 327 LOGICAL, OPTIONAL, INTENT(OUT) :: weight_filename 300 328 LOGICAL(KIND=C_BOOL) :: weight_filename_tmp … … 304 332 CALL xios(is_defined_interpolate_domain_attr_hdl_) & 305 333 ( interpolate_domain_hdl, detect_missing_value, mode, order, quantity, read_write_convention & 306 , renormalize, weight_filename, write_weight )334 , renormalize, use_area, weight_filename, write_weight ) 307 335 308 336 END SUBROUTINE xios(is_defined_interpolate_domain_attr_hdl) … … 310 338 SUBROUTINE xios(is_defined_interpolate_domain_attr_hdl_) & 311 339 ( interpolate_domain_hdl, detect_missing_value_, mode_, order_, quantity_, read_write_convention_ & 312 , renormalize_, weight_filename_, write_weight_ )340 , renormalize_, use_area_, weight_filename_, write_weight_ ) 313 341 314 342 IMPLICIT NONE … … 326 354 LOGICAL, OPTIONAL, INTENT(OUT) :: renormalize_ 327 355 LOGICAL(KIND=C_BOOL) :: renormalize__tmp 356 LOGICAL, OPTIONAL, INTENT(OUT) :: use_area_ 357 LOGICAL(KIND=C_BOOL) :: use_area__tmp 328 358 LOGICAL, OPTIONAL, INTENT(OUT) :: weight_filename_ 329 359 LOGICAL(KIND=C_BOOL) :: weight_filename__tmp … … 367 397 ENDIF 368 398 399 IF (PRESENT(use_area_)) THEN 400 use_area__tmp = cxios_is_defined_interpolate_domain_use_area & 401 (interpolate_domain_hdl%daddr) 402 use_area_ = use_area__tmp 403 ENDIF 404 369 405 IF (PRESENT(weight_filename_)) THEN 370 406 weight_filename__tmp = cxios_is_defined_interpolate_domain_weight_filename & -
XIOS/trunk/src/interface/fortran_attr/interpolate_domain_interface_attr.F90
r1492 r1626 88 88 89 89 90 SUBROUTINE cxios_set_interpolate_domain_read_write_convention(interpolate_domain_hdl, read_write_convention, read_write_convention_size) BIND(C) 90 SUBROUTINE cxios_set_interpolate_domain_read_write_convention(interpolate_domain_hdl, read_write_convention, read_write_conven& 91 &tion_size) BIND(C) 91 92 USE ISO_C_BINDING 92 93 INTEGER (kind = C_INTPTR_T), VALUE :: interpolate_domain_hdl … … 95 96 END SUBROUTINE cxios_set_interpolate_domain_read_write_convention 96 97 97 SUBROUTINE cxios_get_interpolate_domain_read_write_convention(interpolate_domain_hdl, read_write_convention, read_write_convention_size) BIND(C) 98 SUBROUTINE cxios_get_interpolate_domain_read_write_convention(interpolate_domain_hdl, read_write_convention, read_write_conven& 99 &tion_size) BIND(C) 98 100 USE ISO_C_BINDING 99 101 INTEGER (kind = C_INTPTR_T), VALUE :: interpolate_domain_hdl … … 126 128 INTEGER (kind = C_INTPTR_T), VALUE :: interpolate_domain_hdl 127 129 END FUNCTION cxios_is_defined_interpolate_domain_renormalize 130 131 132 SUBROUTINE cxios_set_interpolate_domain_use_area(interpolate_domain_hdl, use_area) BIND(C) 133 USE ISO_C_BINDING 134 INTEGER (kind = C_INTPTR_T), VALUE :: interpolate_domain_hdl 135 LOGICAL (KIND=C_BOOL) , VALUE :: use_area 136 END SUBROUTINE cxios_set_interpolate_domain_use_area 137 138 SUBROUTINE cxios_get_interpolate_domain_use_area(interpolate_domain_hdl, use_area) BIND(C) 139 USE ISO_C_BINDING 140 INTEGER (kind = C_INTPTR_T), VALUE :: interpolate_domain_hdl 141 LOGICAL (KIND=C_BOOL) :: use_area 142 END SUBROUTINE cxios_get_interpolate_domain_use_area 143 144 FUNCTION cxios_is_defined_interpolate_domain_use_area(interpolate_domain_hdl) BIND(C) 145 USE ISO_C_BINDING 146 LOGICAL(kind=C_BOOL) :: cxios_is_defined_interpolate_domain_use_area 147 INTEGER (kind = C_INTPTR_T), VALUE :: interpolate_domain_hdl 148 END FUNCTION cxios_is_defined_interpolate_domain_use_area 128 149 129 150 -
XIOS/trunk/src/object_template_impl.hpp
r1622 r1626 477 477 oss << iendl; 478 478 oss << "#include <boost/multi_array.hpp>" << iendl; 479 oss << "#include <boostXXX/shared_ptr.hpp>" << iendl;480 479 oss << "#include \"xios.hpp\"" << iendl; 481 480 oss << "#include \"attribute_template.hpp\"" << iendl; … … 511 510 oss << "INTERFACE" << iendl++; 512 511 oss << "! Do not call directly / interface FORTRAN 2003 <-> C99"; 513 SuperClassMap::generateFortran2003Interface(oss, className);512 SuperClassMap::generateFortran2003Interface(oss, className); 514 513 oss << iendl--; 515 514 oss << "END INTERFACE" << iendl--;
Note: See TracChangeset
for help on using the changeset viewer.