Changeset 776 for XIOS


Ignore:
Timestamp:
11/02/15 11:46:32 (8 years ago)
Author:
mhnguyen
Message:

Adding a dummy precision

+) A dummy precision serves for operation with error-rouding (such as interpolation)

Location:
XIOS/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/inputs/REMAP/iodef.xml

    r775 r776  
    1212     <field id="tmp_field_1" operation="instant" grid_ref="src_grid_curvilinear" /> 
    1313     <field id="dst_field_regular" operation="instant" field_ref="tmp_field" domain_ref="dst_domain_regular" read_access="true"/> 
    14 <!--     <field id="dst_field_regular_pole" operation="instant" field_ref="src_field" domain_ref="dst_domain_regular_pole" read_access="true"/>--> 
     14     <field id="dst_field_regular_pole" operation="instant" field_ref="src_field" domain_ref="dst_domain_regular_pole" read_access="true"/> 
    1515   </field_definition> 
    1616 
     
    1818   <file_definition type="one_file" par_access="collective" output_freq="1ts" output_level="10" enabled=".TRUE."> 
    1919     <file id="output" name="output"> 
    20 <!--        <field field_ref="src_field" name="field" />--> 
     20        <field field_ref="src_field" name="field" /> 
    2121     </file> 
    2222     <file id="output_dst" name="output_dst" type="one_file"> 
     
    2424     </file> 
    2525     <file id="out_dst_regular_pole" name="out_dst_regular_pole" type="one_file"> 
    26 <!--        <field field_ref="dst_field_regular_pole" name="field" />--> 
     26        <field field_ref="dst_field_regular_pole" name="field" /> 
    2727     </file> 
    2828     <file id="output_dst_regular" name="output_dst_regular" type="one_file"> 
  • XIOS/trunk/src/utils.hpp

    r775 r776  
    231231    return std::numeric_limits<Scalar>::epsilon(); 
    232232  } 
     233  static inline Scalar dummy_precision() { 
     234    return 0; 
     235  } 
    233236}; 
    234237 
     
    250253  static inline Scalar epsilon() { 
    251254    return std::numeric_limits<Scalar>::epsilon(); 
     255  } 
     256  static inline Scalar dummy_precision() { 
     257    return 1e-12; 
    252258  } 
    253259}; 
Note: See TracChangeset for help on using the changeset viewer.