Int refantNdx=refant()+1, ByPass=0,stat,nant,mode=2;
#include <synthesis/MeasurementComponents/LJJones.h>
#include <msvis/MSVis/VisBuffer.h>
#include <msvis/MSVis/VisBuffAccumulator.h>
#include <ms/MeasurementSets/MSColumns.h>
#include <synthesis/MeasurementEquations/VisEquation.h>
#include <synthesis/TransformMachines/Utils.h>
#include <synthesis/MeasurementComponents/SteepestDescentSolver.h>
#include <casa/Quanta/Quantum.h>
#include <casa/Quanta/QuantumHolder.h>
#include <tables/TaQL/ExprNode.h>
#include <casa/Arrays/ArrayMath.h>
#include <casa/BasicSL/String.h>
#include <casa/Utilities/Assert.h>
#include <casa/Exceptions/Error.h>
#include <casa/OS/Memory.h>
#include <casa/System/Aipsrc.h>
#include <casa/sstream.h>
#include <casa/Logging/LogMessage.h>
#include <casa/Logging/LogSink.h>
using namespace casacore;
#if defined(NEED_UNDERSCORES)
#define leakyantso leakyantso_
void leakyantso(Complex *corgain,
Complex *antgain, Complex *leakage,
Int *mode, Float *oresid, Float *nresid,
Float *scanwt, Int* refant, Int* stat, Int *ByPass);
LJJones::LJJones(VisSet& vs):
maxTimePerSolution(0), minTimePerSolution(10000000), avgTimePerSolution(0),
timer(), polMap_p(), tolerance_p(1e-12), gain_p(0.1), niter_p(500), modelImageName_p("")
if (prtlev()>2) cout << "LJJ::LJJ(vs)" << endl;
setParType(VisCalEnum::REAL);
LJJones::LJJones(VisSet& vs, MeasurementSet& ) :