Skip to content

Commit 4af9f96

Browse files
committed
tidy and format
1 parent 126bdec commit 4af9f96

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/cart_tumor.cc

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,12 @@ int Simulate(int argc, const char** argv) {
4848
param->random_seed = kSeed; // Set a fixed random seed for reproducibility
4949
param->bound_space = Param::BoundSpaceMode::kTorus; // Periodic boundary
5050
param->min_bound =
51-
-kBoundedSpaceLength / 2.0; // Fixed: explicit floating point division
51+
-kBoundedSpaceLength /
52+
2.0; // NOLINT(cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers)
5253
param->max_bound =
53-
kBoundedSpaceLength / 2.0; // Fixed: explicit floating point division -
54-
// Cube of 1000x1000x1000 centered at origin
54+
kBoundedSpaceLength /
55+
2.0; // NOLINT(cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers)
56+
// Cube of 1000x1000x1000 centered at origin
5557
param->simulation_time_step = kDt;
5658
};
5759

@@ -119,11 +121,10 @@ int Simulate(int argc, const char** argv) {
119121

120122
// One spherical tumor of radius kInitialRadiusTumor in the center of the
121123
// simulation space
122-
const std::vector<Real3> positions = // Fixed: added const
123-
CreateSphereOfTumorCells(kInitialRadiusTumor); // positions of the cells
124+
const std::vector<Real3> positions =
125+
CreateSphereOfTumorCells(kInitialRadiusTumor);
124126
for (const auto& pos : positions) {
125-
auto* tumor_cell = new TumorCell(
126-
pos); // Fixed: use auto and gsl::owner handled by framework
127+
auto* tumor_cell = new TumorCell(pos);
127128
tumor_cell->AddBehavior(new StateControlGrowProliferate());
128129
ctxt->AddAgent(tumor_cell);
129130
}

0 commit comments

Comments
 (0)