Skip to content
Snippets Groups Projects
Commit edaec77b authored by Henrik Asmuth's avatar Henrik Asmuth
Browse files

Change to pass by const ref addFluidNodeIndices functions

parent 0a389fc0
No related branches found
No related tags found
1 merge request!170Kernel templetization and efficiency improvements
......@@ -147,9 +147,9 @@ public:
virtual void findFluidNodes(bool splitDomain) = 0;
virtual void addFluidNodeIndicesMacroVars(std::vector<uint> fluidNodeIndicesMacroVars, uint level) = 0;
virtual void addFluidNodeIndicesApplyBodyForce(std::vector<uint> fluidNodeIndicesApplyBodyForce, uint level) = 0;
virtual void addFluidNodeIndicesAllFeatures(std::vector<uint> fluidNodeIndicesAllFeatures, uint level) = 0;
virtual void addFluidNodeIndicesMacroVars(const std::vector<uint>& fluidNodeIndicesMacroVars, uint level) = 0;
virtual void addFluidNodeIndicesApplyBodyForce(const std::vector<uint>& fluidNodeIndicesApplyBodyForce, uint level) = 0;
virtual void addFluidNodeIndicesAllFeatures(const std::vector<uint>& fluidNodeIndicesAllFeatures, uint level) = 0;
virtual void sortFluidNodeIndicesMacroVars(uint level) = 0;
virtual void sortFluidNodeIndicesApplyBodyForce(uint level) = 0;
virtual void sortFluidNodeIndicesAllFeatures(uint level) = 0;
......
......@@ -798,17 +798,17 @@ void LevelGridBuilder::findFluidNodes(bool splitDomain)
}
void LevelGridBuilder::addFluidNodeIndicesMacroVars(std::vector<uint> fluidNodeIndicesMacroVars, uint level)
void LevelGridBuilder::addFluidNodeIndicesMacroVars(const std::vector<uint>& fluidNodeIndicesMacroVars, uint level)
{
grids[level]->addFluidNodeIndicesMacroVars(fluidNodeIndicesMacroVars);
}
void LevelGridBuilder::addFluidNodeIndicesApplyBodyForce(std::vector<uint> fluidNodeIndicesApplyBodyForce, uint level)
void LevelGridBuilder::addFluidNodeIndicesApplyBodyForce(const std::vector<uint>& fluidNodeIndicesApplyBodyForce, uint level)
{
grids[level]->addFluidNodeIndicesApplyBodyForce(fluidNodeIndicesApplyBodyForce);
}
void LevelGridBuilder::addFluidNodeIndicesAllFeatures(std::vector<uint> fluidNodeIndicesAllFeatures, uint level)
void LevelGridBuilder::addFluidNodeIndicesAllFeatures(const std::vector<uint>& fluidNodeIndicesAllFeatures, uint level)
{
grids[level]->addFluidNodeIndicesAllFeatures(fluidNodeIndicesAllFeatures);
}
......
......@@ -211,9 +211,9 @@ public:
// needed for CUDA Streams MultiGPU (Communication Hiding)
void findFluidNodes(bool splitDomain) override;
void addFluidNodeIndicesMacroVars(std::vector<uint> fluidNodeIndicesMacroVars, uint level) override;
void addFluidNodeIndicesApplyBodyForce(std::vector<uint> fluidNodeIndicesApplyBodyForce, uint level) override;
void addFluidNodeIndicesAllFeatures(std::vector<uint> fluidNodeIndicesAllFeatures, uint level) override;
void addFluidNodeIndicesMacroVars(const std::vector<uint>& fluidNodeIndicesMacroVars, uint level) override;
void addFluidNodeIndicesApplyBodyForce(const std::vector<uint>& fluidNodeIndicesApplyBodyForce, uint level) override;
void addFluidNodeIndicesAllFeatures(const std::vector<uint>& fluidNodeIndicesAllFeatures, uint level) override;
void sortFluidNodeIndicesMacroVars(uint level) override;
void sortFluidNodeIndicesApplyBodyForce(uint level) override;
......
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