Ignore:
Timestamp:
09/01/15 17:15:42 (9 years ago)
Author:
rlacroix
Message:

Rephrase some error messages so that they are clearer.

File:
1 edited

Legend:

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

    r631 r680  
    3535           this->zoom_ibegin.isEmpty() || this->zoom_jbegin.isEmpty()) 
    3636       { 
    37           ERROR("CZoomDomain::checkValid(void)", 
    38                 <<"if one of zoom attributes is defined then all zoom attributes must be defined") ; 
     37         ERROR("CZoomDomain::checkValid(CDomain* domainSrc)", 
     38               << "If one of zoom attributes is defined then all zoom attributes must be defined.") ; 
    3939       } 
    4040       else 
     
    4343          int zoom_jend = zoom_jbegin + zoom_nj - 1; 
    4444 
    45           if (zoom_ibegin < 0  || zoom_jbegin < 0 || zoom_iend > (ni_glo-1) || zoom_jend > (nj_glo-1)) 
    46              ERROR("CZoomDomain::checkValid(void)", 
    47                    << "Zoom is wrongly defined," 
    48                    << " Check the values : zoom_ni, zoom_nj, zoom_ibegin, zoom_jbegin") ; 
     45          if (zoom_ibegin < 0  || zoom_jbegin < 0 || zoom_iend > ni_glo - 1 || zoom_jend > nj_glo - 1) 
     46            ERROR("CZoomDomain::checkValid(CDomain* domainSrc)", 
     47                  << "Zoom is wrongly defined, " 
     48                  << "please check the values : 'zoom_ni' (" << zoom_ni.getValue() << "), 'zoom_nj' (" << zoom_nj.getValue() << "), " 
     49                  << "'zoom_ibegin' (" << zoom_ibegin.getValue() << "), 'zoom_jbegin' (" << zoom_jbegin.getValue() << ")"); 
    4950       } 
    5051    } 
Note: See TracChangeset for help on using the changeset viewer.