23
23
#include < string>
24
24
#include < utility>
25
25
#include < vector>
26
-
27
26
#include " cart_cell.h"
28
- #include " diffusion_thomas_algorithm.h"
29
- #include " hyperparams.h"
30
- #include " tumor_cell.h"
31
27
#include " core/agent/agent.h"
32
28
#include " core/diffusion/diffusion_grid.h"
33
29
#include " core/real_t.h"
34
30
#include " core/resource_manager.h"
31
+ #include " diffusion_thomas_algorithm.h"
32
+ #include " hyperparams.h"
33
+ #include " tumor_cell.h"
35
34
36
35
namespace bdm {
37
36
@@ -42,7 +41,7 @@ DiffusionThomasAlgorithm::DiffusionThomasAlgorithm(int substance_id,
42
41
bool dirichlet_border)
43
42
: DiffusionGrid(substance_id, std::move(substance_name), dc, mu,
44
43
resolution),
45
- resolution_ (GetResolution()),
44
+ resolution_ (static_cast < int >( GetResolution() )),
46
45
d_space_(static_cast <real_t >(kBoundedSpaceLength ) /
47
46
static_cast<real_t>(resolution_)),
48
47
dirichlet_border_(dirichlet_border),
@@ -290,7 +289,7 @@ void DiffusionThomasAlgorithm::BackSubstitution(
290
289
// Back substitution loop
291
290
for (int inner = resolution_ - 2 ; inner >= 0 ; inner--) {
292
291
const size_t ind =
293
- GetLoopIndex (direction, outer, middle, static_cast < int >( inner) );
292
+ GetLoopIndex (direction, outer, middle, inner);
294
293
const real_t current_concentration = all_concentrations[ind];
295
294
const real_t next_concentration = all_concentrations[ind + jump];
296
295
SetConcentration (
0 commit comments