Changeset 1446


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

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

Location:
XIOS/dev/XIOS_DEV_CMIP6
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/XIOS_DEV_CMIP6/bld.cfg

    r1280 r1446  
    3131bld::lib xios 
    3232bld::target libxios.a  
     33#bld::target generate_fortran_interface.exe  
    3334#bld::target test_remap.exe 
    3435bld::target xios_server.exe  
  • 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.