mirror of
https://github.com/ParticulateFlow/CFDEMcoupling-PFM.git
synced 2025-12-08 06:37:44 +00:00
improve constness.
This commit is contained in:
@ -142,7 +142,7 @@ twoWayOne2One::twoWayOne2One
|
||||
}
|
||||
}
|
||||
|
||||
void twoWayOne2One::createProcMap() const
|
||||
void twoWayOne2One::createProcMap()
|
||||
{
|
||||
List<treeBoundBox> foamBoxes(Pstream::nProcs());
|
||||
foamBoxes[Pstream::myProcNo()] = thisFoamBox_;
|
||||
@ -671,7 +671,7 @@ bool twoWayOne2One::couple(int i)
|
||||
return coupleNow;
|
||||
}
|
||||
|
||||
void twoWayOne2One::setupLig2FoamCommunication() const
|
||||
void twoWayOne2One::setupLig2FoamCommunication()
|
||||
{
|
||||
int* src_procs = new int[thisLigPartner_.size()];
|
||||
for (int proci = 0; proci < thisLigPartner_.size(); proci++)
|
||||
@ -709,7 +709,7 @@ void twoWayOne2One::setupLig2FoamCommunication() const
|
||||
}
|
||||
|
||||
|
||||
void twoWayOne2One::locateParticles() const
|
||||
void twoWayOne2One::locateParticles()
|
||||
{
|
||||
// get positions for locate
|
||||
double** my_positions = static_cast<double**>(lmp->atom->x);
|
||||
@ -823,7 +823,7 @@ void twoWayOne2One::locateParticles() const
|
||||
setCellIDs(cellIds);
|
||||
}
|
||||
|
||||
void twoWayOne2One::setupFoam2LigCommunication() const
|
||||
void twoWayOne2One::setupFoam2LigCommunication()
|
||||
{
|
||||
int* src_procs = new int[thisFoamPartner_.size()];
|
||||
for (int proci = 0; proci < thisFoamPartner_.size(); proci++)
|
||||
|
||||
@ -125,16 +125,16 @@ private:
|
||||
// private member functions
|
||||
|
||||
//- creates a geometric mapping between FOAM and LIG domains
|
||||
void createProcMap() const;
|
||||
void createProcMap();
|
||||
|
||||
//- create a One2One communicator which transfers from LIG to FOAM
|
||||
void setupLig2FoamCommunication() const;
|
||||
void setupLig2FoamCommunication();
|
||||
|
||||
//- locates particles received from Lig
|
||||
void locateParticles() const;
|
||||
void locateParticles();
|
||||
|
||||
//- create a One2One communicator which transfers from FOAM to LIG
|
||||
void setupFoam2LigCommunication() const;
|
||||
void setupFoam2LigCommunication();
|
||||
|
||||
protected:
|
||||
LAMMPS_NS::LAMMPS *lmp;
|
||||
|
||||
Reference in New Issue
Block a user