Changeset 1433


Ignore:
Timestamp:
02/19/18 16:58:17 (6 years ago)
Author:
oabramkina
Message:

Bugfix on writing of an axis introduced in r1430.

File:
1 edited

Legend:

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

    r1430 r1433  
    12541254        try 
    12551255        { 
     1256          if (axis->dim_name.isEmpty()) axisDim = axisid; 
     1257          else axisDim=axis->dim_name.getValue(); 
     1258          SuperClassWriter::addDimension(axisDim, zoom_size); 
     1259          dims.push_back(axisDim); 
     1260 
    12561261          if (!axis->label.isEmpty()) SuperClassWriter::addDimension(strId, stringArrayLen); 
     1262 
    12571263          if (axis->hasValue) 
    12581264          { 
    1259             if (axis->dim_name.isEmpty()) axisDim = axisid; 
    1260             else axisDim=axis->dim_name.getValue(); 
    1261  
    1262             SuperClassWriter::addDimension(axisDim, zoom_size); 
    1263             dims.push_back(axisDim); 
    1264  
    12651265            if (!axis->label.isEmpty()) dims.push_back(strId); 
    12661266 
Note: See TracChangeset for help on using the changeset viewer.