forked from GOMC-WSU/GOMC
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Started checkpoint test. Will remove all files generated and reuse sy…
…stems for all tests
- Loading branch information
GregorySchwing
committed
Oct 6, 2021
1 parent
9058f67
commit 4367b87
Showing
8 changed files
with
62 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#if GOMC_GTEST | ||
MoleculeLookup & GetMolLookup(){ | ||
return system->molLookup; | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#include <gtest/gtest.h> | ||
#include "PDBSetup.h" | ||
#include "MolSetup.h" | ||
#include "BondAdjacencyList.h" | ||
#include "ConfigSetup.h" | ||
#include "FFSetup.h" //For geometry kinds | ||
#include "FFConst.h" | ||
#include "Reader.h" | ||
#include "InputFileReader.h" | ||
#include "Simulation.h" | ||
#include<unistd.h> | ||
/* There are 4 cases for restarting from checkpoint | ||
1) Base Case: | ||
The first run. | ||
Checkpoint Setup - RestartFromCheckpoint = false | ||
Checkpoint Output - RestartFromCheckpoint = false | ||
2) The first restart from checkpoint | ||
Checkpoint Setup - RestartFromCheckpoint = true | ||
Checkpoint Output - RestartFromCheckpoint = true | ||
3) The Nth restart from checkpoint from a prev checkpoint | ||
Checkpoint Setup - RestartFromCheckpoint = true | ||
Checkpoint Output - RestartFromCheckpoint = true | ||
*/ | ||
TEST(CheckpointTest, CheckAR_KR) { | ||
chdir("./test/input/Checkpoint/AR_KR/Base/"); | ||
Simulation base("in.conf"); | ||
base.RunSimulation(); | ||
chdir("../K_1"); | ||
Simulation K_1("in.conf"); | ||
K_1.RunSimulation(); | ||
chdir("../K_N"); | ||
Simulation K_N("in.conf"); | ||
K_N.RunSimulation(); | ||
chdir("../../../../.."); | ||
} |