1#include "../include/simulation_time.cuh"
2#include "../include/cuda_utils/cuda_launcher.cuh"
9 startTime(startTime), endTime(endTime), dt(dt) {
31 simulationTime->
set(dt, startTime, subEndTime, endTime, currentTime, dt_max);
39 subEndTime, endTime, currentTime, dt_max);
Execution policy/instruction for CUDA kernel execution.
CUDA_CALLABLE_MEMBER void set(real *dt, real *startTime, real *subEndTime, real *endTime, real *currentTime, real *dt_max)
CUDA_CALLABLE_MEMBER ~SimulationTime()
CUDA_CALLABLE_MEMBER SimulationTime()
#define CUDA_CALLABLE_MEMBER
void set(SimulationTime *simulationTime, real *dt, real *startTime, real *subEndTime, real *endTime, real *currentTime, real *dt_max)
__global__ void set(SimulationTime *simulationTime, real *dt, real *startTime, real *subEndTime, real *endTime, real *currentTime, real *dt_max)
void set(T *d_var, T val, std::size_t count=1)
Set device memory to a specific value.
real launch(bool timeKernel, const ExecutionPolicy &policy, void(*f)(Arguments...), Arguments... args)
CUDA execution wrapper function.