Skip to content

Commit 619bb0c

Browse files
committed
move initialization into loop
1 parent d042e8e commit 619bb0c

2 files changed

Lines changed: 5 additions & 9 deletions

File tree

source/cpp_src/Applications/fourfit4.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,12 @@ int main(int argc, char** argv)
139139

140140
//build the fringe fitter based on the input (only 2 choices currently -- basic and ionospheric)
141141
MHO_FringeFitterFactory ff_factory(&fringeData);
142-
MHO_FringeFitter* ffit = ff_factory.ConstructFringeFitter();
142+
MHO_FringeFitter* ffit = ff_factory.ConstructFringeFitter(); //configuration is done here
143143

144144
//initialize and perform run loop
145-
ffit->Initialize();
146145
while(!ffit->IsFinished())
147146
{
147+
ffit->Initialize();
148148
ffit->PreRun();
149149
ffit->Run();
150150
ffit->PostRun();

source/cpp_src/Fringe/src/MHO_BasicFringeFitter.cc

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -205,13 +205,12 @@ void MHO_BasicFringeFitter::Configure()
205205
fOperatorToolbox.GetNOperatorsInCategory("postfit") << ")" << eom);
206206
fEnableCaching = true;
207207
}
208-
209208
Cache();
210-
211-
212209
}
213-
214210
profiler_stop();
211+
212+
// std::cout<<"PARAMETERS = "<<std::endl;
213+
// fParameterStore->Dump();
215214
}
216215

217216
void MHO_BasicFringeFitter::Cache()
@@ -285,9 +284,6 @@ void MHO_BasicFringeFitter::Initialize()
285284
MHO_BasicFringeDataConfiguration::init_and_exec_operators(fOperatorBuildManager, &fOperatorToolbox, "flagging");
286285
MHO_BasicFringeDataConfiguration::init_and_exec_operators(fOperatorBuildManager, &fOperatorToolbox, "calibration");
287286
}
288-
289-
// std::cout<<"PARAMETERS = "<<std::endl;
290-
// fParameterStore->Dump();
291287
profiler_stop();
292288
}
293289

0 commit comments

Comments
 (0)