Changeset 1439


Ignore:
Timestamp:
02/22/18 18:21:22 (6 years ago)
Author:
oabramkina
Message:

Adding a check on existence of dimension str_len.

File:
1 edited

Legend:

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

    r1437 r1439  
    12591259          dims.push_back(axisDim); 
    12601260 
    1261           if (!axis->label.isEmpty()) SuperClassWriter::addDimension(strId, stringArrayLen); 
     1261          if (!axis->label.isEmpty() && !SuperClassWriter::dimExist(strId)) SuperClassWriter::addDimension(strId, stringArrayLen); 
    12621262 
    12631263          if (axis->hasValue || !axis->label.isEmpty()) 
     
    14811481        try 
    14821482        { 
    1483           if (!scalar->label.isEmpty()) SuperClassWriter::addDimension(strId, stringArrayLen); 
     1483          if (!scalar->label.isEmpty() && !SuperClassWriter::dimExist(strId)) SuperClassWriter::addDimension(strId, stringArrayLen); 
    14841484 
    14851485          if (!scalar->value.isEmpty() || !scalar->label.isEmpty()) 
Note: See TracChangeset for help on using the changeset viewer.