Skip to content
Snippets Groups Projects
Commit 7226c704 authored by Martin Schönherr's avatar Martin Schönherr :speech_balloon:
Browse files

Merge branch 'open_source' into 'open_source'

Open source

See merge request irmb/VirtualFluids_dev!101
parents e0bb2523 3b21b811
No related branches found
No related tags found
1 merge request!101Open source
......@@ -308,7 +308,9 @@ gcov_gcc_9:
- coverage/
reports:
cobertura: coverage/coverage.xml
coverage_report:
coverage_format: cobertura
path: coverage/coverage.xml
cache:
key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
......
......@@ -868,6 +868,7 @@ void GridImp::findSparseIndices(SPtr<Grid> finerGrid)
if (fineGrid) {
fineGrid->updateSparseIndices();
this->findForGridInterfaceNewIndices(fineGrid);
}
const uint newGridSize = this->getSparseSize();
......@@ -875,6 +876,16 @@ void GridImp::findSparseIndices(SPtr<Grid> finerGrid)
<< ", delete nodes:" << this->getSize() - newGridSize << "\n";
}
void GridImp::findForGridInterfaceNewIndices(SPtr<GridImp> fineGrid)
{
#pragma omp parallel for
for (int index = 0; index < (int)this->getNumberOfNodesCF(); index++)
this->gridInterface->findForGridInterfaceSparseIndexCF(this, fineGrid.get(), index);
#pragma omp parallel for
for (int index = 0; index < (int)this->getNumberOfNodesFC(); index++)
this->gridInterface->findForGridInterfaceSparseIndexFC(this, fineGrid.get(), index);
}
void GridImp::updateSparseIndices()
{
......
......@@ -28,7 +28,7 @@
//
//! \file GridImp.h
//! \ingroup grid
//! \author Soeren Peters, Stephan Lenz, Martin Schnherr
//! \author Soeren Peters, Stephan Lenz, Martin Schoenherr
//=======================================================================================
#ifndef GRID_IMP_H
#define GRID_IMP_H
......@@ -53,19 +53,19 @@ class BoundingBox;
class TriangularMeshDiscretizationStrategy;
#ifdef __GNUC__
#ifndef __clang__
#pragma push
#pragma diag_suppress = 3156
#endif
#ifndef __clang__
#pragma push
#pragma diag_suppress = 3156
#endif
#endif
// GCC: warning #3156-D: extern declaration of the entity DIRECTIONS is treated as a static definition
extern int DIRECTIONS[DIR_END_MAX][DIMENSION];
#ifdef __GNUC__
#ifndef __clang__
#pragma pop
#endif
#ifndef __clang__
#pragma pop
#endif
#endif
class GRIDGENERATOR_EXPORT GridImp : public enableSharedFromThis<GridImp>, public Grid
......@@ -266,6 +266,7 @@ public:
public:
virtual void findSparseIndices(SPtr<Grid> fineGrid) override;
void findForGridInterfaceNewIndices(SPtr<GridImp> fineGrid);
void updateSparseIndices();
void setNeighborIndices(uint index);
real getFirstFluidNode(real coords[3], int direction, real startCoord) const 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