Commit ce2c9637 authored by Johan Richard's avatar Johan Richard
Browse files

Check sigma and sigma2 >0

parent 60e0e427
......@@ -294,6 +294,11 @@ void setBayesModel( long int iVal, long int nVal, double **array)
if( sblock[i][ipx] != 0 )
o_set_source( &source[i], ipx, method(nVal, iParam++, array));
if((sblock[i][SA] !=0) & (source[i].E.a<0))
source[i].E.a=-source[i].E.a;
if((sblock[i][SA2] !=0) & (source[i].E2.a<0))
source[i].E2.a=-source[i].E2.a;
if((sblock[i][SEPS] != 0 )|| (sblock[i][SA] !=0))
source[i].E.b = source[i].E.a * (1. - source[i].eps) / (1. + source[i].eps);
if((sblock[i][SEPS2] != 0 )|| (sblock[i][SA2] !=0))
......
Supports Markdown
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