Ignore:
Timestamp:
03/05/18 16:00:56 (4 years ago)
Author:
oabramkina
Message:

Adding a scalar to the coordinate list of a variable only if the scalar has value or label defined.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/XIOS_DEV_CMIP6/src/io/nc4_data_output.cpp

    r1439 r1446  
    11#include "nc4_data_output.hpp" 
    22 
    3 #include <boost/lexical_cast.hpp> 
    43#include "attribute_template.hpp" 
    54#include "group_template.hpp" 
     
    20272026            CScalar* scalar = CScalar::get(scalarList[idxScalar]); 
    20282027            StdString scalarId = scalar->getScalarOutputName(); 
    2029             dimCoordList.push_back(scalarId); 
     2028            if (!scalar->value.isEmpty() || !scalar->label.isEmpty()) 
     2029              dimCoordList.push_back(scalarId); 
    20302030            ++idxScalar; 
    20312031          } 
Note: See TracChangeset for help on using the changeset viewer.