Commit 098f3fd4 by Maarten L. Hekkelman

FIx compound factory stacking

parent 5476eef0
...@@ -677,13 +677,13 @@ compound_factory::compound_factory() ...@@ -677,13 +677,13 @@ compound_factory::compound_factory()
{ {
auto ccd = cif::load_resource("components.cif"); auto ccd = cif::load_resource("components.cif");
if (ccd) if (ccd)
m_impl.reset(new CCD_compound_factory_impl(m_impl)); m_impl = std::make_shared<CCD_compound_factory_impl>(m_impl);
else if (cif::VERBOSE > 0) else if (cif::VERBOSE > 0)
std::cerr << "CCD components.cif file was not found" << std::endl; std::cerr << "CCD components.cif file was not found" << std::endl;
const char *clibd_mon = getenv("CLIBD_MON"); const char *clibd_mon = getenv("CLIBD_MON");
if (clibd_mon != nullptr and fs::is_directory(clibd_mon)) if (clibd_mon != nullptr and fs::is_directory(clibd_mon))
m_impl.reset(new CCP4_compound_factory_impl(clibd_mon)); m_impl = std::make_shared<CCP4_compound_factory_impl>(clibd_mon, m_impl);
else if (cif::VERBOSE > 0) else if (cif::VERBOSE > 0)
std::cerr << "CCP4 monomers library not found, CLIBD_MON is not defined" << std::endl; std::cerr << "CCP4 monomers library not found, CLIBD_MON is not defined" << std::endl;
} }
......
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