Skip to content
Snippets Groups Projects
Commit 4916fdd2 authored by Hkorb's avatar Hkorb
Browse files

add check for mismatch of precursor file

parent 11bcd33c
No related branches found
No related tags found
1 merge request!170Kernel templetization and efficiency improvements
...@@ -273,6 +273,11 @@ void GridGenerator::allocArrays_BoundaryValues() ...@@ -273,6 +273,11 @@ void GridGenerator::allocArrays_BoundaryValues()
para->getParD(level)->precursorBC.velocityY = para->getParH(level)->precursorBC.velocityY; para->getParD(level)->precursorBC.velocityY = para->getParH(level)->precursorBC.velocityY;
para->getParD(level)->precursorBC.velocityZ = para->getParH(level)->precursorBC.velocityZ; para->getParD(level)->precursorBC.velocityZ = para->getParH(level)->precursorBC.velocityZ;
for(auto reader : para->getParH(level)->velocityReader)
{
if(reader->getNumberOfQuantities() != para->getParD(level)->precursorBC.numberOfQuantities) throw std::exception("Number of quantities in reader and number of quantities needed for precursor don't match!");
}
cudaMemoryManager->cudaCopyPrecursorBC(level); cudaMemoryManager->cudaCopyPrecursorBC(level);
cudaMemoryManager->cudaAllocPrecursorData(level); cudaMemoryManager->cudaAllocPrecursorData(level);
......
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