Skip to content
Snippets Groups Projects
Commit d0e3ce8d authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Fixed bug in the Euler solver

I don't understand how it could work on the small grids...
parent 986aaeab
No related branches found
No related tags found
No related merge requests found
......@@ -193,8 +193,9 @@ void Euler< Problem > :: computeNewTimeLevel( DofVectorPointer& u,
const IndexType sharedMemory = cudaBlockSize.x * sizeof( RealType );
const IndexType gridOffset = gridIdx * threadsPerGrid;
const IndexType currentSize = min( size - gridOffset, threadsPerGrid );
const IndexType currentGridSize = Devices::Cuda::getNumberOfBlocks( currentSize, cudaBlockSize.x );
updateUEuler<<< cudaBlocks, cudaBlockSize, sharedMemory >>>( currentSize,
updateUEuler<<< currentGridSize, cudaBlockSize, sharedMemory >>>( currentSize,
tau,
&_k1[ gridOffset ],
&_u[ gridOffset ],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment