Ignore:
Timestamp:
06/05/15 16:42:18 (9 years ago)
Author:
rlacroix
Message:

Improve CF compliance: add a new axis attribute "bounds".

Fixes ticket #67.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/branchs/xios-1.0/src/node/axis.cpp

    r566 r609  
    8080               << "The array \'value\' of axis [ id = '" << getId() << "' , context = '" << CObjectFactory::GetCurrentContextId() << "' ] has a different size that the one defined by the \'size\' attribute"); 
    8181 
     82      if (!bounds.isEmpty()) 
     83      { 
     84        if (bounds.extent(0) != size || bounds.extent(1) != 2) 
     85            ERROR("CAxis::checkAttributes(void)", 
     86                  << "The bounds array of the axis [ id = '" << getId() << "' , context = '" << CObjectFactory::GetCurrentContextId() << "' ] must be of dimension axis size x 2" << endl 
     87                  << "Axis size is " << size << endl 
     88                  << "Bounds size is "<< bounds.extent(0) << " x " << bounds.extent(1)); 
     89      } 
     90 
    8291      this->isChecked = true; 
    8392   } 
Note: See TracChangeset for help on using the changeset viewer.