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