add support for '-in none' for multi-partition runs from the library interface

This commit is contained in:
Axel Kohlmeyer
2020-11-19 18:58:21 -05:00
parent 7450d9547a
commit 371b1a80e3
4 changed files with 27 additions and 17 deletions

View File

@ -156,11 +156,9 @@ TEST(MPI, multi_partition)
lammps_mpi_init();
MPI_Comm_size(MPI_COMM_WORLD, &nprocs);
MPI_Comm_rank(MPI_COMM_WORLD, &me);
fp = fopen("in.mp_dummy", "w");
fclose(fp);
const char *args[] = {"LAMMPS_test", "-log", "none", "-partition", "2x2",
"-echo", "screen", "-nocite", "-in", "in.mp_dummy"};
"-echo", "screen", "-nocite", "-in", "none"};
char **argv = (char **)args;
int argc = sizeof(args) / sizeof(char *);
void *lmp = lammps_open(argc, argv, MPI_COMM_WORLD, nullptr);
@ -184,7 +182,6 @@ TEST(MPI, multi_partition)
}
lammps_close(lmp);
unlink("in.mp_dummy");
};
class MPITest : public ::testing::Test {