Research Article

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

Algorithm 1

// CPU functions
void DoElems ( /*parameters omitted*/ )
{
// omitted  codes that do element calculation;
}
void DoNodes ( /*parameters omitted*/ )
{
// omitted codes that do nodal calculation;
}
void main ( )
{
  // Element and nodal calculation
  DoElems( /*parameters omitted*/ );
  DoNodes( /*parameters omitted*/ );
}