Skip to content

Commit

Permalink
Add velocity threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
CyprienBosserelle committed Jul 11, 2023
1 parent be157ff commit 3beb37b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Flow_kernel.cu
Original file line number Diff line number Diff line change
Expand Up @@ -1538,7 +1538,7 @@ __global__ void eulerustep(int nx, int ny, DECNUM dx, DECNUM dt, DECNUM g, DECNU
}
if (ix > 0)
{
uu[i] = uui[tx][ty];
uu[i] = min(uui[tx][ty],16.0f);

}
}
Expand Down Expand Up @@ -1594,7 +1594,7 @@ __global__ void eulervstep(int nx, int ny, DECNUM dx, DECNUM dt, DECNUM g, DECNU
}
if (ix > 0)// && iy>0 && iy<ny)
{
vv[i] = vvi[tx][ty];
vv[i] = min(vvi[tx][ty],16.0f);
}//vdvdy[i]=tauby;

}
Expand Down

0 comments on commit 3beb37b

Please sign in to comment.