Changeset 465 for XIOS


Ignore:
Timestamp:
01/22/14 10:03:10 (10 years ago)
Author:
ymipsl
Message:

bug fix : field attribute prec was used without testing if it was defined.

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/output/nc4_data_output.cpp

    r464 r465  
    797797            field->outputField(field_data3D); 
    798798 
    799             if (field->prec==2) field_data3D=round(field_data3D) ; 
     799            if (!field->prec.isEmpty() && field->prec==2) field_data3D=round(field_data3D) ; 
    800800 
    801801            switch (SuperClass::type) 
     
    842842            if (!field->default_value.isEmpty()) field_data2D = field->default_value ; 
    843843            field->outputField(field_data2D); 
    844             if (field->prec==2) field_data2D=round(field_data2D) ; 
     844            if (!field->prec.isEmpty() && field->prec==2) field_data2D=round(field_data2D) ; 
    845845            switch (SuperClass::type) 
    846846            { 
Note: See TracChangeset for help on using the changeset viewer.