Skip to content
Snippets Groups Projects
Commit 4291d958 authored by Konstantin Kutscher's avatar Konstantin Kutscher
Browse files

add correct initialization for LiggghtsCouplingWrapper

parent 2a214b73
No related branches found
No related tags found
2 merge requests!171Newest Update,!83Fix MPICommunicator
......@@ -21,7 +21,9 @@ using namespace std;
int main(int argc, char *argv[])
{
SPtr<Communicator> comm = MPICommunicator::getInstance();
LiggghtsCouplingWrapper wrapper(argv, (MPI_Comm)comm->getNativeCommunicator());
//MPI_Init(&argc, &argv);
MPI_Comm mpi_comm = *(MPI_Comm*)(comm->getNativeCommunicator());
LiggghtsCouplingWrapper wrapper(argv, mpi_comm);
//LAMMPS_NS::LAMMPS *lmp;
// // custom argument vector for LAMMPS library
......@@ -94,6 +96,6 @@ int main(int argc, char *argv[])
// delete lmp;
// // stop MPI environment
// MPI_Finalize();
//MPI_Finalize();
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment