PeriDyno 1.0.0
Loading...
Searching...
No Matches
SemiAnalyticalSharedFunc.cu
Go to the documentation of this file.
1#include "SemiAnalyticalSharedFunc.h"
2
3namespace dyno
4{
5 __global__ void K_SetupAttributesForSFI(
6 DArray<Attribute> att)
7 {
8 int tId = threadIdx.x + (blockIdx.x * blockDim.x);
9 if (tId >= att.size()) return;
10
11 att[tId].setFluid();
12 att[tId].setDynamic();
13 }
14
15 void SetupAttributesForSFI(DArray<Attribute>& att)
16 {
17 cuExecute(att.size(),
18 K_SetupAttributesForSFI,
19 att);
20 }
21}