Commit a1c70af3 authored by Plaszczynski Stephane's avatar Plaszczynski Stephane
Browse files

fix lensing

parent d46660aa
......@@ -146,10 +146,10 @@ Chi2Factory::gimeChi2(Parser& parser){
//lensing may affect lmax too
#ifdef CLIK
const string mono=Parser::getParFile(parser.params.find<string>("lensing_file",""));
ClikLensingLikelihood* lensing(0);
if (mono.size()!=0){
if (parser.params.param_present("lensing_file")){
//use fiducial or not?
const string mono=Parser::getParFile(parser.params.find<string>("lensing_file",""));
const bool fid=parser.params.find<bool>("lensing_use_fiducialCMB",false);
cout << "Using Lensing " << (fid? "with":"without") << " fiducial CMB values" << endl;
lensing=new ClikLensingLikelihood(const_cast<char *>(mono.c_str()),fid);
......
......@@ -32,7 +32,7 @@ using namespace std;
// Constructors --
//----------------
Chi2Lensing::Chi2Lensing(LensingLikelihood* ll, const Parameters& pars, Engine* klass):Chi2Data(pars,klass),_lmax(ll->lmax())
Chi2Lensing::Chi2Lensing(LensingLikelihood* ll, const Parameters& pars, Engine* klass):Chi2Data(pars,klass),lensing(ll),_lmax(ll->lmax())
{
Chi2Data::_name=basename(const_cast<char*>(ll->name().c_str()));
buildIndex();
......
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