Skip to content

Commit

Permalink
check if value set before averaging
Browse files Browse the repository at this point in the history
  • Loading branch information
Danbr4d committed Dec 12, 2024
1 parent 9c47b21 commit 204fa25
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/modules/epsrManager/process.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ Module::ExecutionResult EPSRManagerModule::process(ModuleContext &moduleContext)
}
// Set restart equal to changes
originalPotentialsObject.first = potentials;
Averaging::average<PotentialSet>(moduleContext.dissolve().processingModuleData(), "PotentialSet", name(),
averagingLength_.value(), averagingScheme_);
if (averagingLength_)
Averaging::average<PotentialSet>(moduleContext.dissolve().processingModuleData(), "PotentialSet", name(),
averagingLength_.value(), averagingScheme_);

// Apply potential scalings
auto scalings = DissolveSys::splitString(potentialScalings_, ",");
Expand Down

0 comments on commit 204fa25

Please sign in to comment.