Use platform::path_join in unittest tree and remove redundant code

This commit is contained in:
Richard Berger
2021-11-22 15:34:23 -05:00
parent 3d650a6bf7
commit 62b236a7cd
10 changed files with 22 additions and 30 deletions

View File

@ -99,7 +99,7 @@ LAMMPS *init_lammps(int argc, char **argv, const TestConfig &cfg, const bool use
for (auto &pre_command : cfg.pre_commands)
command(pre_command);
std::string input_file = INPUT_FOLDER + PATH_SEP + cfg.input_file;
std::string input_file = platform::path_join(INPUT_FOLDER, cfg.input_file);
lmp->input->file(input_file.c_str());
if (use_respa) command("run_style respa 2 1 bond 1 pair 2");