Changeset 18129


Ignore:
Timestamp:
02/17/15 14:39:22 (10 years ago)
Author:
dneise
Message:
back-factored for loop from C++11-style to old-style
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/msimcamera/MSimCamera.cc

    r18038 r18129  
    155155    }
    156156    // Check all entries for inf and nan. Those are not accepted here.
    157     for( std::vector< double > row : fFixTimeOffsetsBetweenPixelsInNs->fM ){
    158         for( double number : row){
    159 
    160             if( std::isnan(number) || std::isinf(number) ){
    161 
     157    for( int row_index=0; row_index<fFixTimeOffsetsBetweenPixelsInNs->fM.size(); row_index++){
     158        std::vector<double> row = fFixTimeOffsetsBetweenPixelsInNs->fM.at(row_index);
     159        for( int col_index=0; col_index<row.size(); col_index++){
     160            double specific_delay = row.at(col_index);
     161            if( std::isnan(specific_delay) || std::isinf(specific_delay) ){
    162162                *fLog << err << "In Source: "<< __FILE__ <<" in line: ";
    163163                *fLog << __LINE__;
    164164                *fLog << " in function: "<< __func__ <<"\n";
    165                 *fLog << "There is a non normal number in the fix temporal ";
    166                 *fLog << "pixel offsets. This is at least one number is ";
    167                 *fLog << "NaN or Inf. This here is >"<< number;
     165                *fLog << "There is a non normal specific_delay in the fix temporal ";
     166                *fLog << "pixel offsets. This is that at least one specific_delay is ";
     167                *fLog << "NaN or Inf. This here is >"<< specific_delay;
    168168                *fLog << "<... aborting." << endl;               
    169169                return kFALSE;
    170170            }
    171171        }
     172
    172173    }
    173174    // -------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.