BioDynaMo  v1.05.120-25dc9790
load_balancing_op.h
Go to the documentation of this file.
1 // -----------------------------------------------------------------------------
2 //
3 // Copyright (C) 2021 CERN & University of Surrey for the benefit of the
4 // BioDynaMo collaboration. All Rights Reserved.
5 //
6 // Licensed under the Apache License, Version 2.0 (the "License");
7 // you may not use this file except in compliance with the License.
8 //
9 // See the LICENSE file distributed with this work for details.
10 // See the NOTICE file distributed with this work for additional information
11 // regarding copyright ownership.
12 //
13 // -----------------------------------------------------------------------------
14 
15 #ifndef CORE_OPERATION_LOAD_BALANCING_OP_H_
16 #define CORE_OPERATION_LOAD_BALANCING_OP_H_
17 
19 #include "core/resource_manager.h"
20 #include "core/simulation.h"
21 
22 namespace bdm {
23 
29 
30  void operator()() override {
32  rm->LoadBalance();
33  }
34 };
35 
36 } // namespace bdm
37 
38 #endif // CORE_OPERATION_LOAD_BALANCING_OP_H_
bdm::LoadBalancingOp::operator()
void operator()() override
Definition: load_balancing_op.h:30
bdm::ResourceManager::LoadBalance
virtual void LoadBalance()
Definition: resource_manager.cc:239
bdm
Definition: agent.cc:39
operation.h
bdm::LoadBalancingOp
Definition: load_balancing_op.h:27
bdm::Simulation::GetResourceManager
ResourceManager * GetResourceManager()
Returns the ResourceManager instance.
Definition: simulation.cc:244
bdm::LoadBalancingOp::BDM_OP_HEADER
BDM_OP_HEADER(LoadBalancingOp)
simulation.h
resource_manager.h
bdm::Simulation::GetActive
static Simulation * GetActive()
This function returns the currently active Simulation simulation.
Definition: simulation.cc:68
bdm::StandaloneOperationImpl
Interface for implementing an operation that should run on a GPU.
Definition: operation.h:86