debugged kokkos support to dynamical_matrix command

This commit is contained in:
Sievers
2021-12-13 14:14:14 -08:00
parent 7544f1bcf8
commit a887d880c6
2 changed files with 25 additions and 2 deletions

View File

@ -783,6 +783,19 @@ int Input::execute_command()
// invoke commands added via style_command.h
if (lmp && lmp->suffix_enable && utils::strmatch(command,"^dynamical_matrix")) {
if (utils::strmatch(lmp->suffix, "^kk")) {
std::string cstyle = command + std::string("/") + lmp->suffix;
if (command_map->find(command) != command_map->end()) {
CommandCreator &command_creator = (*command_map)[cstyle];
Command *cmd = command_creator(lmp);
cmd->command(narg, arg);
delete cmd;
return 0;
}
}
}
if (command_map->find(command) != command_map->end()) {
CommandCreator &command_creator = (*command_map)[command];
Command *cmd = command_creator(lmp);