Ignore:
Timestamp:
10/01/15 09:43:07 (9 years ago)
Author:
rlacroix
Message:

Fix axis bounds: the dimensions were reversed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/node/axis.cpp

    r679 r713  
    224224    if (!bounds.isEmpty()) 
    225225    { 
    226       if (bounds.extent(0) != n || bounds.extent(1) != 2) 
    227           ERROR("CAxis::checkAttributes(void)", 
    228                 << "The bounds array of the axis [ id = '" << getId() << "' , context = '" << CObjectFactory::GetCurrentContextId() << "' ] must be of dimension axis size x 2." << std::endl 
    229                 << "Axis size is " << n.getValue() << "." << std::endl 
    230                 << "Bounds size is "<< bounds.extent(0) << " x " << bounds.extent(1) << "."); 
     226      if (bounds.extent(0) != 2 || bounds.extent(1) != n) 
     227        ERROR("CAxis::checkAttributes(void)", 
     228              << "The bounds array of the axis [ id = '" << getId() << "' , context = '" << CObjectFactory::GetCurrentContextId() << "' ] must be of dimension 2 x axis size." << std::endl 
     229              << "Axis size is " << n.getValue() << "." << std::endl 
     230              << "Bounds size is "<< bounds.extent(0) << " x " << bounds.extent(1) << "."); 
    231231      hasBounds_ = true; 
    232232    } 
Note: See TracChangeset for help on using the changeset viewer.