added BoundaryConditions for CUDA