diff --git a/src/main_gpumd/add_force.cu b/src/main_gpumd/add_force.cu index 439ba6588..cbf1a01b0 100644 --- a/src/main_gpumd/add_force.cu +++ b/src/main_gpumd/add_force.cu @@ -76,7 +76,7 @@ void Add_Force::parse(const char** param, int num_param, const std::vector& tokens) integrate.parse_move(param, num_param, group); } else if (strcmp(param[0], "electron_stop") == 0) { electron_stop.parse(param, num_param, atom.number_of_atoms, number_of_types); - } else if (strcmp(param[0], "mc") == 0) { + } else if (strcmp(param[0], "add_force") == 0) { + add_force.parse(param, num_param, group); + }else if (strcmp(param[0], "mc") == 0) { mc.parse_mc(param, num_param, group, atom); } else if (strcmp(param[0], "dftd3") == 0) { // nothing here; will be handled elsewhere diff --git a/src/main_gpumd/run.cuh b/src/main_gpumd/run.cuh index c2d319863..4670f04e1 100644 --- a/src/main_gpumd/run.cuh +++ b/src/main_gpumd/run.cuh @@ -19,6 +19,7 @@ class Force; class Integrate; class Measure; +#include "add_force.cuh" #include "electron_stop.cuh" #include "force/force.cuh" #include "integrate/integrate.cuh" @@ -68,4 +69,5 @@ private: MC mc; Measure measure; Electron_Stop electron_stop; + Add_Force add_force; };