make communicator protected and use accessor instead. simplify

This commit is contained in:
Axel Kohlmeyer
2023-04-15 21:54:13 -04:00
parent baeed85468
commit 8086228976
5 changed files with 17 additions and 18 deletions

View File

@ -78,7 +78,7 @@ int main(int argc, char **argv)
delete lammps;
} catch (LAMMPSAbortException &ae) {
finalize();
MPI_Abort(ae.universe, 1);
MPI_Abort(ae.get_universe(), 1);
} catch (LAMMPSException &) {
finalize();
MPI_Barrier(lammps_comm);