mirror of
https://asciireactor.com/otho/psdlag-agn.git
synced 2024-11-21 20:45:07 +00:00
making some changes to troubleshoot segfault
This commit is contained in:
parent
49309209f6
commit
bc48cf7b84
@ -7,4 +7,4 @@
|
||||
0:1 1
|
||||
0
|
||||
0
|
||||
100 50 50 mcmc.dat
|
||||
100 50 50 mcmc.dat
|
||||
|
@ -35,6 +35,7 @@ int main( int argc , char* argv[] ){
|
||||
void do_work( char* fname ){
|
||||
|
||||
/************ Reading the input file ***********/
|
||||
|
||||
ifstream fp(fname);
|
||||
string line,mcmcfile; stringstream ss;
|
||||
int i,nfiles,nfq,mode,npar,bin1,bin2,fit_type,nrun,nburn,nwk; bool strict;
|
||||
@ -59,6 +60,7 @@ void do_work( char* fname ){
|
||||
for(i=0;i<nfiles;i++) readLC( LC , files[i] , secL[i] , bin1 , bin2 , strict );
|
||||
/******** END Read the light curves ************/
|
||||
|
||||
|
||||
if( mode > 0 or mode==-1 ){
|
||||
vec errs; errs.setlength(nfq);
|
||||
vector<lcurve> lc1; for( i=0 ; i<int(LC.size()) ; i++ ){ lc1.push_back( LC[i][0]); }
|
||||
@ -159,7 +161,6 @@ void readLC( vector<vector<lcurve> >&LC , string fname , int secL , int b1 , int
|
||||
/* Initialize file stream, define some variables */
|
||||
ifstream fp(fname.c_str()); string line,sdum; stringstream ss;
|
||||
int i,j,nlc,n,nsec,ns,sl; double dt;
|
||||
|
||||
/* read dt from the description line */
|
||||
getline(fp,line); ss.str(line); ss >> sdum >> dt >> nlc; ss.clear();
|
||||
|
||||
@ -193,6 +194,7 @@ void readLC( vector<vector<lcurve> >&LC , string fname , int secL , int b1 , int
|
||||
}else {
|
||||
Lc.push_back(lcurve(t,lc[b1],lce[b1],dt));
|
||||
}
|
||||
cerr << "Yo6!";
|
||||
// Do we need a second light curve?
|
||||
if(b2!=-1){Lc.push_back(lcurve(t,lc[b2],lce[b2],dt));}
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
|
||||
|
||||
incdir='/home/caes/science/psdlag-agn/src/'
|
||||
#incdir='/home/caes/science/psdlag-agn/src/'
|
||||
incdir='/Users/othoulrich/science/psdlag-agn/src'
|
||||
|
||||
|
||||
psdlag:
|
||||
|
Loading…
Reference in New Issue
Block a user