Source
405
405
os << "Completed " << itsIterDone << " iterations." << LogIO::POST;
406
406
//with peak residual "<< itsPeakResidual << LogIO::POST;
407
407
}
408
408
409
409
void SIIterBot_state::mergeMinorCycleSummary( const Array<Double>& summary ){
410
410
std::lock_guard<std::recursive_mutex> guard(recordMutex);
411
411
412
412
IPosition cShp = itsSummaryMinor.shape();
413
413
IPosition nShp = summary.shape();
414
414
415
-
cout << "Summary shape : " << summary.shape() << endl;
416
-
cout << "ItsSummaryMinor shape : " << itsSummaryMinor.shape() << endl;
417
-
418
415
if( cShp.nelements() != 2 || cShp[0] != SIMinorCycleController::nSummaryFields ||
419
416
nShp.nelements() != 2 || nShp[0] != SIMinorCycleController::nSummaryFields )
420
417
throw(AipsError("Internal error in shape of global minor-cycle summary record"));
421
418
422
419
itsSummaryMinor.resize( IPosition( 2, SIMinorCycleController::nSummaryFields, cShp[1]+nShp[1] ) ,true );
423
420
424
421
for (unsigned int row = 0; row < nShp[1]; row++) {
425
422
// iterations done
426
423
itsSummaryMinor( IPosition(2,0,cShp[1]+row) ) = itsIterDone + summary(IPosition(2,0,row));
427
424
// peak residual