Skip to content
Snippets Groups Projects
Commit c6cbe911 authored by Marco Biasini's avatar Marco Biasini
Browse files

improve calculation of reduced potential on views

parent d484a15a
Branches
Tags
No related merge requests found
......@@ -144,7 +144,7 @@ Real ReducedPotential::GetTotalEnergy(ost::mol::EntityHandle ent, bool norm)
Real ReducedPotential::GetTotalEnergy(ost::mol::EntityView ent, bool norm)
{
ReducedEnergiesCalc calc(opts_, energies_, ent, norm);
ReducedEnergiesCalc calc(opts_, energies_, ent.GetHandle(), norm);
ent.Apply(calc);
return calc.GetEnergy();
}
......
......
......@@ -144,7 +144,7 @@ void ReducedStatistics::Extract(mol::EntityView ent)
<< ent.GetChainCount() << " chains";
throw std::runtime_error(ss.str());
}
ReducedStatExtractor extractor(opts_, histo_, ent);
ReducedStatExtractor extractor(opts_, histo_, ent.GetHandle());
ent.Apply(extractor);
}
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment