Skip to content
Snippets Groups Projects
Commit 41023166 authored by Studer Gabriel's avatar Studer Gabriel
Browse files

set correct MMInteraction Type when generating LJ Pairs

parent c3ad81a7
No related branches found
No related tags found
No related merge requests found
......@@ -657,10 +657,7 @@ MMInteractionPtr Forcefield::GetLJ(const String& type1,
temp1 = this->GetLJ(type1);
temp2 = this->GetLJ(type2);
if(temp1 && temp2){
MMInteraction* interaction_ptr;
if(pair) interaction_ptr = new MMInteraction(LJPair);
else interaction_ptr = new MMInteraction(LJ);
MMInteractionPtr return_ptr(interaction_ptr);
MMInteractionPtr return_ptr(new MMInteraction(LJPair));
std::vector<Real> param1, param2, param;
param1 = temp1->GetParam();
param2 = temp2->GetParam();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment