15 #ifndef CORE_OPERATION_DIFFUSION_OP_H_
16 #define CORE_OPERATION_DIFFUSION_OP_H_
42 const auto* rm = sim->GetResourceManager();
43 const auto* env = sim->GetEnvironment();
44 const auto* param = sim->GetParam();
47 real_t current_time = sim->GetScheduler()->GetSimulatedTime();
56 rm->ForEachContinuum([
this, &env, ¶m](
Continuum* cm) {
60 if (env->HasGrown() &&
61 param->bound_space == Param::BoundSpaceMode::kOpen) {
66 if (dgrid && param->calculate_gradients) {
67 dgrid->CalculateGradient();
A class that sets up diffusion grids of the substances in this simulation.
real_t last_time_run_
Last time when the operation was executed.
BDM_OP_HEADER(ContinuumOp)
void operator()() override
Continuum class to interface with BioDynaMo for hybrid simulations.
void IntegrateTimeAsynchronously(real_t dt)
static Simulation * GetActive()
This function returns the currently active Simulation simulation.
Interface for implementing an operation that should run on a GPU.