VM2D  1.12
Vortex methods for 2D flows simulation
BHcu::CudaCalcGab Struct Reference

Public Member Functions

 CudaCalcGab ()
 
float calc (int npoints, const realVortex *pointsl)
 
 ~CudaCalcGab ()
 

Public Attributes

realPoint * maxpt
 
realPoint * minpt
 
int blocks
 

Detailed Description

Definition at line 100 of file wrapper.cpp.

Constructor & Destructor Documentation

BHcu::CudaCalcGab::CudaCalcGab ( )
inline

Definition at line 106 of file wrapper.cpp.

108  {
109  CudaSelect(0);
110  setBlocks(blocks);
111 
112  maxpt = (realPoint*)cudaNew(blocks * FACTOR1, sizeof(realPoint));
113  minpt = (realPoint*)cudaNew(blocks * FACTOR1, sizeof(realPoint));
114  };
realPoint * maxpt
Definition: wrapper.cpp:102
realPoint * minpt
Definition: wrapper.cpp:103
BHcu::CudaCalcGab::~CudaCalcGab ( )
inline

Definition at line 123 of file wrapper.cpp.

124  {
125  cudaDelete(maxpt);
126  cudaDelete(maxpt);
127  }
realPoint * maxpt
Definition: wrapper.cpp:102

Member Function Documentation

float BHcu::CudaCalcGab::calc ( int  npoints,
const realVortex *  pointsl 
)
inline

Definition at line 116 of file wrapper.cpp.

117  {
118  float time;
119  time = McuBoundingBoxKernelFree(nullptr, maxpt, minpt, npoints, pointsl);
120  return time;
121  }
realPoint * maxpt
Definition: wrapper.cpp:102
realPoint * minpt
Definition: wrapper.cpp:103

Here is the caller graph for this function:

Member Data Documentation

int BHcu::CudaCalcGab::blocks

Definition at line 104 of file wrapper.cpp.

realPoint* BHcu::CudaCalcGab::maxpt

Definition at line 102 of file wrapper.cpp.

realPoint* BHcu::CudaCalcGab::minpt

Definition at line 103 of file wrapper.cpp.


The documentation for this struct was generated from the following file: