Skip to content

Conversation

vgvassilev
Copy link
Contributor

No description provided.

@vgvassilev vgvassilev force-pushed the master branch 3 times, most recently from b95e694 to f5c9ae6 Compare August 21, 2025 10:51
@vgvassilev vgvassilev force-pushed the ci-salva branch 2 times, most recently from 4e74fdb to 4d1f1c5 Compare August 21, 2025 11:10
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

There were too many comments to post at once. Showing the first 10 out of 707. Check the log or trigger a new build to see more.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

There were too many comments to post at once. Showing the first 10 out of 697. Check the log or trigger a new build to see more.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

There were too many comments to post at once. Showing the first 10 out of 687. Check the log or trigger a new build to see more.

salva24 and others added 4 commits August 22, 2025 09:11
* all work I have done untill the midterm: tumor replicated from the nature paper including forces and diffusion modules

* car-t oxygen consumption

* Update README.md

Co-authored-by: Vassil Vassilev <[email protected]>

* Update src/cart_cell.cc

Co-authored-by: Vassil Vassilev <[email protected]>

* still in progress CAR-T displacement

* cleaned comments to follow Doxygen-style

* changed comments to follow doxygen-style

* Remove draft_code_my_own_analysis/ from tracking and add to .gitignore

* remove draft_code_my_own_analysis

* add to gitignore draft_code_my_own_analysis

* fixing comments

* [ci] Add basic github actions infrastructure

* Update CMakeLists.txt

Co-authored-by: Vassil Vassilev <[email protected]>

* Update README.md

Co-authored-by: Vassil Vassilev <[email protected]>

* Update README.md

Co-authored-by: Vassil Vassilev <[email protected]>

* Update src/cart_cell.cc

use *Simulation::GetActive()->GetResourceManager() just once

Co-authored-by: Vassil Vassilev <[email protected]>

* Update src/cart_cell.cc

Co-authored-by: Vassil Vassilev <[email protected]>

* Update src/forces_tumor_cart.cc

Co-authored-by: Vassil Vassilev <[email protected]>

* changed some things to imporve code quality

* cart_cell comments fixed

* changed all comments to /// in the .h and changed some of them

* changed the project name + new readme part Results

* minor change spelling

* 30-days simulation

---------

Co-authored-by: Vassil Vassilev <[email protected]>
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

There were too many comments to post at once. Showing the first 10 out of 558. Check the log or trigger a new build to see more.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

There were too many comments to post at once. Showing the first 10 out of 456. Check the log or trigger a new build to see more.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

There were too many comments to post at once. Showing the first 10 out of 404. Check the log or trigger a new build to see more.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

There were too many comments to post at once. Showing the first 10 out of 366. Check the log or trigger a new build to see more.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

There were too many comments to post at once. Showing the first 10 out of 342. Check the log or trigger a new build to see more.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

There were too many comments to post at once. Showing the first 10 out of 325. Check the log or trigger a new build to see more.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

There were too many comments to post at once. Showing the first 10 out of 292. Check the log or trigger a new build to see more.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

There were too many comments to post at once. Showing the first 10 out of 293. Check the log or trigger a new build to see more.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

There were too many comments to post at once. Showing the first 10 out of 298. Check the log or trigger a new build to see more.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

There were too many comments to post at once. Showing the first 10 out of 284. Check the log or trigger a new build to see more.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

There were too many comments to post at once. Showing the first 10 out of 257. Check the log or trigger a new build to see more.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

There were too many comments to post at once. Showing the first 10 out of 168. Check the log or trigger a new build to see more.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

There were too many comments to post at once. Showing the first 10 out of 143. Check the log or trigger a new build to see more.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

There were too many comments to post at once. Showing the first 10 out of 98. Check the log or trigger a new build to see more.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

There were too many comments to post at once. Showing the first 10 out of 107. Check the log or trigger a new build to see more.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

There were too many comments to post at once. Showing the first 10 out of 98. Check the log or trigger a new build to see more.

const std::vector<Real3> positions =
CreateSphereOfTumorCells(kInitialRadiusTumor);
for (const auto& pos : positions) {
auto* tumor_cell = new TumorCell(pos);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: initializing non-owner 'TumorCell *' with a newly created 'gsl::owner<>' [cppcoreguidelines-owning-memory]

    auto* tumor_cell = new TumorCell(pos);
    ^

#include "core/diffusion/diffusion_grid.h"
#include "core/real_t.h"
#include "core/util/root.h"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: included header root.h is not used directly [misc-include-cleaner]

Suggested change

DiffusionThomasAlgorithm::DiffusionThomasAlgorithm(int substance_id,
std::string substance_name,
real_t dc, real_t mu,
int resolution, real_t dt,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: 2 adjacent parameters of 'DiffusionThomasAlgorithm' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]

                                                   int resolution, real_t dt,
                                                   ^
Additional context

src/diffusion_thomas_algorithm.cc:42: the first parameter in the range is 'resolution'

                                                   int resolution, real_t dt,
                                                       ^

src/diffusion_thomas_algorithm.cc:42: the last parameter in the range is 'dt'

                                                   int resolution, real_t dt,
                                                                          ^

src/diffusion_thomas_algorithm.cc:42:

                                                   int resolution, real_t dt,
                                                   ^

src/diffusion_thomas_algorithm.cc:42: 'int' and 'real_t' may be implicitly converted: 'int' -> 'real_t' (as 'double'), 'real_t' (as 'double') -> 'int'

                                                   int resolution, real_t dt,
                                                                   ^


// Apply Dirichlet boundary conditions to the grid
void DiffusionThomasAlgorithm::ApplyDirichletBoundaryConditions() {
const real_t origin = GetDimensionsPtr()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic]

  const real_t origin = GetDimensionsPtr()
                        ^

ChangeConcentrationBy(
idx,
amount -
all_concentrations

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic]

          all_concentrations
          ^


void DiffusionThomasAlgorithm::SolveDirectionThomas(unsigned int direction) {
const auto& thomas_denom = (direction == 0) ? thomas_denom_x_
: (direction == 1) ? thomas_denom_y_

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: conditional operator is used as sub-expression of parent conditional operator, refrain from using nested conditional operators [readability-avoid-nested-conditional-operator]

                             : (direction == 1) ? thomas_denom_y_
                               ^
Additional context

src/diffusion_thomas_algorithm.cc:225: parent conditional operator here

  const auto& thomas_denom = (direction == 0)   ? thomas_denom_x_
                             ^

: (direction == 1) ? thomas_denom_y_
: thomas_denom_z_;
const auto& thomas_c = (direction == 0) ? thomas_c_x_
: (direction == 1) ? thomas_c_y_

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: conditional operator is used as sub-expression of parent conditional operator, refrain from using nested conditional operators [readability-avoid-nested-conditional-operator]

                         : (direction == 1) ? thomas_c_y_
                           ^
Additional context

src/diffusion_thomas_algorithm.cc:228: parent conditional operator here

  const auto& thomas_c = (direction == 0)   ? thomas_c_x_
                         ^

: thomas_c_z_;
const unsigned int jump =
(direction == 0) ? static_cast<unsigned int>(jump_i_)
: (direction == 1) ? static_cast<unsigned int>(jump_j_)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: conditional operator is used as sub-expression of parent conditional operator, refrain from using nested conditional operators [readability-avoid-nested-conditional-operator]

      : (direction == 1) ? static_cast<unsigned int>(jump_j_)
        ^
Additional context

src/diffusion_thomas_algorithm.cc:232: parent conditional operator here

      (direction == 0)   ? static_cast<unsigned int>(jump_i_)
      ^

GetAllConcentrations(); // NOLINT(cppcoreguidelines-pro-bounds-pointer-arithmetic)
SetConcentration(
ind,
all_concentrations[ind] /

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic]

      all_concentrations[ind] /
      ^

ind = GetLoopIndex(direction, outer, middle, inner);
SetConcentration(
ind,
(all_concentrations

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic]

        (all_concentrations
         ^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants