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();
82 #endif // CORE_OPERATION_DIFFUSION_OP_H_