Skip to content

Commit

Permalink
dont use sample in WolfCal
Browse files Browse the repository at this point in the history
  • Loading branch information
GregorySchwing committed Feb 19, 2024
1 parent 126616b commit 52f2811
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
13 changes: 3 additions & 10 deletions src/WolfCalibrationOutput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,8 @@ void WolfCalibrationOutput::WriteGraceParFileWRcut()

void WolfCalibrationOutput::DoOutput(const ulong step) {
//if (((step+1) < stepsTillEquil) || !(enableOut && ((step + 1) % stepsPerOut == 0)))
if (!(enableOut || !((step + 1) % stepsPerOut == 0)))
return;

// return;
CalculateGrid();
for (uint b = 0; b < BOXES_WITH_U_NB; ++b) {
for (uint wolfKind = 0; wolfKind < 1; ++wolfKind){
for (uint coulKind = 0; coulKind < COUL_TOTAL_KINDS; ++coulKind){
Expand Down Expand Up @@ -326,14 +325,8 @@ void WolfCalibrationOutput::DoOutput(const ulong step) {

#include <float.h>

void WolfCalibrationOutput::Sample(const ulong step) {
// Don't sample until equilibrated.
//if (((step+1) < stepsTillEquil) || !(enableOut && ((step + 1) % stepsPerOut == 0)))
if (!(enableOut || !((step + 1) % stepsPerOut == 0)))
return;
void WolfCalibrationOutput::CalculateGrid() {
++numSamples;


SystemPotential ewaldRef;
ewaldRef = calcEn.SystemTotal();
ewaldRef.Total();
Expand Down
4 changes: 3 additions & 1 deletion src/WolfCalibrationOutput.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ class WolfCalibrationOutput : public OutputableBase
virtual void DoOutputRestart(const ulong step) {}
virtual void Init(pdb_setup::Atoms const& atoms,
config_setup::Output const& output);
virtual void Sample(const ulong step);

void CalculateGrid();
virtual void Sample(const ulong step) {}

private:
std::string getFileName(int b, int wolfKind, int coulKind, std::string uniqueName);
Expand Down

0 comments on commit 52f2811

Please sign in to comment.