Skip to content
Snippets Groups Projects
Commit 493d69a6 authored by Kutscher's avatar Kutscher
Browse files

fixe conflicts after merge of branch 'LIGGGHTS_coupling' into develop

parent a4625747
No related branches found
No related tags found
2 merge requests!171Newest Update,!83Fix MPICommunicator
...@@ -13,7 +13,7 @@ using namespace std; ...@@ -13,7 +13,7 @@ using namespace std;
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
SPtr<Communicator> comm = MPICommunicator::getInstance(); std::shared_ptr<vf::mpi::Communicator> comm = vf::mpi::MPICommunicator::getInstance();
int myid = comm->getProcessID(); int myid = comm->getProcessID();
......
...@@ -19,7 +19,7 @@ using namespace std; ...@@ -19,7 +19,7 @@ using namespace std;
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
SPtr<Communicator> comm = MPICommunicator::getInstance(); std::shared_ptr<vf::mpi::Communicator> comm = vf::mpi::MPICommunicator::getInstance();
int myid = comm->getProcessID(); int myid = comm->getProcessID();
......
...@@ -13,7 +13,7 @@ using namespace std; ...@@ -13,7 +13,7 @@ using namespace std;
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
SPtr<Communicator> comm = MPICommunicator::getInstance(); std::shared_ptr<vf::mpi::Communicator> comm = vf::mpi::MPICommunicator::getInstance();
int myid = comm->getProcessID(); int myid = comm->getProcessID();
......
#include "LiggghtsCouplingCoProcessor.h" #include "LiggghtsCouplingCoProcessor.h"
#include "GbSphere3D.h" #include "GbSphere3D.h"
#include "MPICommunicator.h" #include "mpi/MPICommunicator.h"
#include "CoProcessor.h" #include "CoProcessor.h"
#include "LiggghtsCouplingWrapper.h" #include "LiggghtsCouplingWrapper.h"
#include "Grid3D.h" #include "Grid3D.h"
...@@ -13,7 +13,9 @@ ...@@ -13,7 +13,9 @@
#include "fix_lb_coupling_onetoone.h" #include "fix_lb_coupling_onetoone.h"
LiggghtsCouplingCoProcessor::LiggghtsCouplingCoProcessor(SPtr<Grid3D> grid, SPtr<UbScheduler> s, LiggghtsCouplingCoProcessor::LiggghtsCouplingCoProcessor(SPtr<Grid3D> grid, SPtr<UbScheduler> s,
SPtr<Communicator> comm, LiggghtsCouplingWrapper &wrapper, int demSteps, SPtr<LBMUnitConverter> units) SPtr<vf::mpi::Communicator> comm,
LiggghtsCouplingWrapper &wrapper, int demSteps,
SPtr<LBMUnitConverter> units)
: CoProcessor(grid, s), comm(comm), wrapper(wrapper), demSteps(demSteps), units(units) : CoProcessor(grid, s), comm(comm), wrapper(wrapper), demSteps(demSteps), units(units)
{ {
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
class CoProcessor; class CoProcessor;
class Communicator; namespace vf::mpi {class Communicator;}
class LiggghtsCouplingWrapper; class LiggghtsCouplingWrapper;
class Grid3D; class Grid3D;
class Block3D; class Block3D;
...@@ -61,7 +61,7 @@ struct ParticleData { ...@@ -61,7 +61,7 @@ struct ParticleData {
class LiggghtsCouplingCoProcessor : public CoProcessor class LiggghtsCouplingCoProcessor : public CoProcessor
{ {
public: public:
LiggghtsCouplingCoProcessor(SPtr<Grid3D> grid, SPtr<UbScheduler> s, SPtr<Communicator> comm, LiggghtsCouplingCoProcessor(SPtr<Grid3D> grid, SPtr<UbScheduler> s, SPtr<vf::mpi::Communicator> comm,
LiggghtsCouplingWrapper &wrapper, int demSteps, SPtr<LBMUnitConverter> units); LiggghtsCouplingWrapper &wrapper, int demSteps, SPtr<LBMUnitConverter> units);
virtual ~LiggghtsCouplingCoProcessor(); virtual ~LiggghtsCouplingCoProcessor();
...@@ -88,7 +88,7 @@ protected: ...@@ -88,7 +88,7 @@ protected:
void addTorque(int const partId, int const coord, double const value, double *torque); void addTorque(int const partId, int const coord, double const value, double *torque);
private: private:
SPtr<Communicator> comm; SPtr<vf::mpi::Communicator> comm;
LiggghtsCouplingWrapper &wrapper; LiggghtsCouplingWrapper &wrapper;
SPtr<LBMUnitConverter> units; SPtr<LBMUnitConverter> units;
int demSteps; int demSteps;
......
...@@ -24,13 +24,11 @@ if(BUILD_USE_OPENMP) ...@@ -24,13 +24,11 @@ if(BUILD_USE_OPENMP)
list(APPEND VF_LIBRARIES OpenMP::OpenMP_CXX) list(APPEND VF_LIBRARIES OpenMP::OpenMP_CXX)
endif() endif()
vf_add_library(BUILDTYPE static PUBLIC_LINK basics muparser ${VF_LIBRARIES} PRIVATE_LINK lbm mpi logger)
IF(${USE_LIGGGHTS}) IF(${USE_LIGGGHTS})
list(APPEND VF_LIBRARIES optimized ${LIGGGHTS_RELEASE_LIBRARY} debug ${LIGGGHTS_DEBUG_LIBRARY}) list(APPEND VF_LIBRARIES optimized ${LIGGGHTS_RELEASE_LIBRARY} debug ${LIGGGHTS_DEBUG_LIBRARY})
ENDIF() ENDIF()
vf_add_library(BUILDTYPE static PUBLIC_LINK basics muparser MPI::MPI_CXX ${VF_LIBRARIES}) vf_add_library(BUILDTYPE static PUBLIC_LINK basics muparser ${VF_LIBRARIES} PRIVATE_LINK lbm mpi logger)
vf_get_library_name(library_name) vf_get_library_name(library_name)
......
...@@ -66,7 +66,6 @@ ...@@ -66,7 +66,6 @@
#include <string> #include <string>
#include <vector> #include <vector>
#include "Grid3D.h" #include "Grid3D.h"
#include "Communicator.h"
////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////
// MemoryUtil // MemoryUtil
......
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