Commit 658f8096 authored by David Rohr's avatar David Rohr
Browse files

change error message

parent bbfbdcce
......@@ -227,22 +227,20 @@ int bioem_param::readParameters()
// Envelope should not have a standard deviation greater than Npix/2
if(sqrt(1./( (myfloat_t) numberGridPointsDisplaceCenter * gridEnvelop + startGridEnvelop))> float(param_device.NumberPixels)/2.0) {
cout << "MAX Standar deviation of envelope is larger than Allowed KERNEL Length " ;
cout << "MAX Standar deviation of envelope is larger than Allowed KERNEL Length";
exit(1);
}
// Envelop param should be positive
if( startGridCTF_amp < 0 || startGridCTF_amp > 1){
cout << "PSF Amplitud should be between 0 and 1 \n" ;
cout << "PSF Amplitud should be between 0 and 1\n";
exit(1);
}
if( (myfloat_t) numberGridPointsCTF_amp * gridCTF_amp + startGridCTF_amp < 0 || (myfloat_t) numberGridPointsCTF_amp * gridCTF_amp + startGridCTF_amp > 1){
cout << "PSF Amplitud should be between 0 and 1 \n" ;
cout << "Value should be between 0 and 1\n" ;
exit(1);
}
cout << " +++++++++++++++++++++++++++++++++++++++++ \n";
cout << "Preparing FFTs\n";
......
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