Commit 9bdfb8d0 authored by Reza  ANSARI's avatar Reza ANSARI
Browse files

Ajout protection pour eviter plantage (core dump) si fit croos cor pas fait, Olivier+Reza

parent 324ad559
......@@ -154,7 +154,7 @@ int main (int narg, char* arg[])
}
CxBaselineFitter cxbfit(v_acxd, v_trk);
if (do_baselinefit || do_baselinesimplex) { // fit simultane des 6 cross-cor
if (do_baselinefit || do_baselinesimplex) { // fit simultane des 6 cross-cor
int fgfixb=0;
if (fg_fixbaseline) fgfixb=2;
else if (fg_fix_xy) fgfixb=1;
......@@ -201,8 +201,10 @@ int main (int narg, char* arg[])
cout<<"=================================================================================="<<endl;
ofs<<"=================================================================================="<<endl;
}
cout<<" ---------- Summary 6 cross-correlations baseline fitting ---------- " << endl;
cxbfit.PrintFitSummary(ofs);
if (do_baselinefit ) {
cout<<" ---------- Summary 6 cross-correlations baseline fitting ---------- " << endl;
cxbfit.PrintFitSummary(ofs);
}
} // End of try bloc
catch (PThrowable & exc) {
......
......@@ -967,7 +967,10 @@ CxBaselineFitter::CxBaselineFitter(vector<AcxDataSet> & v_data, vector<TrackSet>
bestfitparam = new double[nparam];
err_bestfitparam = new double[nparam];
initFitParams();
if (v_acxd[0].v_phase.size()<1) {
cout << " CxBaselineFitter::CxBaselineFitter(v_data, v_tks) /Warning : .v_phase.size()=0 , CxFit not done, cant call initFitParams()"<<endl;
}
else initFitParams();
}
CxBaselineFitter::~CxBaselineFitter()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment