Research Article

A GPU-Based Parallel Procedure for Nonlinear Analysis of Complex Structures Using a Coupled FEM/DEM Approach

Algorithm 2

// GPU kernels
__global__ void DoKernel
( /*parameters omitted*/ )
{
// omitted codes that do element calculation;
// omitted codes that do nodal calculation;
}
void main ( )
{
  // Element and nodal calculation
  DoKernel <<< nBlocks, nThreads >>>
  ( /*parameters omitted*/ );
}