Source
//# CubeMajorCycleAlgorithm.cc: implementation of class to grid and degrid (and write model vis when necessary) in parallel/serial
//# Copyright (C) 2019
//# Associated Universities, Inc. Washington DC, USA.
//#
//# This library is free software; you can redistribute it and/or modify it
//# under the terms of the GNU General Public License as published by
//# the Free Software Foundation; either version 3 of the License, or (at your
//# option) any later version.
//#
//# This library is distributed in the hope that it will be useful, but WITHOUT
//# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
//# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
//# License for more details.
//#
//# https://www.gnu.org/licenses/
//#
//# Queries concerning CASA should be submitted at
//# https://help.nrao.edu
//#
//# Postal address: CASA Project Manager
//# National Radio Astronomy Observatory
//# 520 Edgemont Road
//# Charlottesville, VA 22903-2475 USA
//#
//#
//# $Id$
using namespace casacore;
namespace casa { //# NAMESPACE CASA - BEGIN
extern Applicator applicator;
CubeMajorCycleAlgorithm::CubeMajorCycleAlgorithm() : myName_p("CubeMajorCycleAlgorithm"), ftmRec_p(0), iftmRec_p(0), polRep_p(0),startmodel_p(0), residualNames_p(0), psfNames_p(0), sumwtNames_p(0), weightNames_p(0), pbNames_p(0), movingSource_p(""),status_p(False), retuning_p(True), doPB_p(False), nterms_p(0){
}
CubeMajorCycleAlgorithm::~CubeMajorCycleAlgorithm() {
}
void CubeMajorCycleAlgorithm::get() {
reset();
//cerr << "in get for child process " << applicator.isWorker() << endl;
Record vecImParsRec;
Record vecSelParsRec;
Record vecGridParsRec;
// get data sel params #1
applicator.get(vecSelParsRec);
// get image sel params #2
applicator.get(vecImParsRec);
// get gridders params #3
applicator.get(vecGridParsRec);
// get which channel to process #4
applicator.get(chanRange_p);
//cerr <<"GET chanRange " << chanRange_p << endl;
// psf or residual CubeMajorCycleAlgorithm #5
applicator.get(dopsf_p);