Skip to content
Snippets Groups Projects
Commit 5dc8ef1a authored by Tim Behrens's avatar Tim Behrens
Browse files

*** empty log message ***

parent fb9eaa08
No related branches found
No related tags found
No related merge requests found
...@@ -307,10 +307,10 @@ void Diff_pvmModel::initialise(const ColumnVector& S){ ...@@ -307,10 +307,10 @@ void Diff_pvmModel::initialise(const ColumnVector& S){
else fsquared=0; else fsquared=0;
if(fsquared>0){f=sqrt(fsquared);} if(fsquared>0){f=sqrt(fsquared);}
else{f=0;} else{f=0;}
if(f>=0.95) f=0.95; if(f>=0.95) f=0.95;
if(f<=0.001) f=0.001; if(f<=0.001) f=0.001;
cout<<"S0 "<<S0<<endl; //cout<<"S0 "<<S0<<endl;
cout<<"S1 "<<S(1)<<endl; //cout<<"S1 "<<S(1)<<endl;
getparam(0).setinitvalue(th); getparam(0).setinitvalue(th);
getparam(1).setinitvalue(ph); getparam(1).setinitvalue(ph);
getparam(2).setinitvalue(f); getparam(2).setinitvalue(f);
...@@ -339,8 +339,12 @@ int main(int argc, char *argv[]) ...@@ -339,8 +339,12 @@ int main(int argc, char *argv[])
Tracer_Plus::settimingon(); Tracer_Plus::settimingon();
// read data // read data
VolumeSeries data; VolumeSeries data;
data.read(opts.datafile.value()); data.read(opts.datafile.value());
data.writeAsFloat(LogSingleton::getInstance().appendDir("data"));
cout<<"done"<<endl;
return 0;
int ntpts = data.tsize(); int ntpts = data.tsize();
Matrix bvecs = read_ascii_matrix(opts.bvecsfile.value()); Matrix bvecs = read_ascii_matrix(opts.bvecsfile.value());
Matrix bvals = read_ascii_matrix(opts.bvalsfile.value()); Matrix bvals = read_ascii_matrix(opts.bvalsfile.value());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment