Skip to content

Commit 11b3353

Browse files
committed
fix : update unittests of md
1 parent 0ee57e3 commit 11b3353

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

source/module_md/test/MD_func_test.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ class MD_func_test : public testing::Test
2020
void SetUp()
2121
{
2222
Setcell::setupcell(ucell);
23+
Setcell::parameters();
2324
natom = ucell.nat;
2425
allmass = new double [natom];
2526
pos = new ModuleBase::Vector3<double> [natom];

source/module_md/test/setcell.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ class Setcell
106106
static void parameters()
107107
{
108108
GlobalV::SEARCH_RADIUS = 8.5 * ModuleBase::ANGSTROM_AU;
109+
GlobalV::CAL_STRESS = 1;
109110
//ModuleBase::Global_File::open_log(GlobalV::ofs_running, "run.log");
110111

111112
INPUT.mdp.md_restart = 0;

0 commit comments

Comments
 (0)