Skip to content
Snippets Groups Projects
Commit 88d6aaf4 authored by Tomas Sobotik's avatar Tomas Sobotik
Browse files

fast-sweeping-map solver added, narrow band in progress.

parent 8458e9cf
No related branches found
No related tags found
No related merge requests found
......@@ -158,12 +158,15 @@ bool tnlFastSweepingMap< tnlGrid< 2,MeshReal, Device, MeshIndex >, Real, Index >
int run = 1;
int zero = 0;
int cntr = 0;
while(run != 0)
{
cudaMemcpy(this->changed, &zero, sizeof(int), cudaMemcpyHostToDevice);
runCUDA<<<numBlocks,threadsPerBlock>>>(this->cudaSolver,0,0, this->changed);
cudaMemcpy(&run, this->changed,sizeof(int), cudaMemcpyDeviceToHost);
cntr++;
cout << "Finished set of sweeps #" << cntr <<endl;
}
cudaDeviceSynchronize();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment