diff --git a/src/gpu/GridGenerator/grid/GridBuilder/LevelGridBuilder.cpp b/src/gpu/GridGenerator/grid/GridBuilder/LevelGridBuilder.cpp index ec0db541b60c8b278ff3926f8a6fd0cad540b1d3..3733f539e31fb536b4e0006204473cebae422839 100644 --- a/src/gpu/GridGenerator/grid/GridBuilder/LevelGridBuilder.cpp +++ b/src/gpu/GridGenerator/grid/GridBuilder/LevelGridBuilder.cpp @@ -644,8 +644,8 @@ uint LevelGridBuilder::getPrecursorSize(int level) const return size; } -void LevelGridBuilder::getPrecursorValues( uint* neighborNT, uint* neighborNB, uint* neighborST, uint* neighborSB, - real* weightsNT, real* weightsNB, real* weightsST, real* weightsSB, +void LevelGridBuilder::getPrecursorValues( uint* neighbor0PP, uint* neighbor0PM, uint* neighbor0MP, uint* neighbor0MM, + real* weights0PP, real* weights0PM, real* weights0MP, real* weights0MM, int* indices, std::vector<SPtr<TransientBCInputFileReader>>& reader, int& numberOfPrecursorNodes, size_t& numberOfQuantities, uint& timeStepsBetweenReads, real& velocityX, real& velocityY, real& velocityZ, int level) const @@ -676,8 +676,8 @@ void LevelGridBuilder::getPrecursorValues( uint* neighborNT, uint* neighborNB, allIndicesCounter++; } BCreader->fillArrays(y, z); - BCreader->getNeighbors(neighborNT, neighborNB, neighborST, neighborSB); - BCreader->getWeights(weightsNT, weightsNB, weightsST, weightsSB); + BCreader->getNeighbors(neighbor0PP, neighbor0PM, neighbor0MP, neighbor0MM); + BCreader->getWeights(weights0PP, weights0PM, weights0MP, weights0MM); if(tmpNQuantities == 0) tmpNQuantities = BCreader->getNumberOfQuantities(); if(tmpNQuantities != BCreader->getNumberOfQuantities()) diff --git a/src/gpu/GridGenerator/grid/GridBuilder/LevelGridBuilder.h b/src/gpu/GridGenerator/grid/GridBuilder/LevelGridBuilder.h index 5c2115f6fd1c13180f2f74ae7fc4c04b5ce117f7..56ae1e4fce6185591fba97f49ba504ced259aea5 100644 --- a/src/gpu/GridGenerator/grid/GridBuilder/LevelGridBuilder.h +++ b/src/gpu/GridGenerator/grid/GridBuilder/LevelGridBuilder.h @@ -131,8 +131,8 @@ public: GRIDGENERATOR_EXPORT virtual void getPressureQs(real* qs[27], int level) const override; GRIDGENERATOR_EXPORT uint getPrecursorSize(int level) const override; - GRIDGENERATOR_EXPORT void getPrecursorValues( uint* neighborNT, uint* neighborNB, uint* neighborST, uint* neighborSB, - real* weightsNT, real* weightsNB, real* weightsST, real* weightsSB, + GRIDGENERATOR_EXPORT void getPrecursorValues( uint* neighbor0PP, uint* neighbor0PM, uint* neighbor0MP, uint* neighbor0MM, + real* weights0PP, real* weights0PM, real* weights0MP, real* weights0MM, int* indices, std::vector<SPtr<TransientBCInputFileReader>>& reader, int& numberOfPrecursorNodes, size_t& numberOfQuantities, uint& timeStepsBetweenReads, real& velocityX, real& velocityY, real& velocityZ, int level) const override;