Skip to content

Conversation

@PhilipDeegan
Copy link
Member

@PhilipDeegan PhilipDeegan commented Oct 2, 2025

Some investigation on possible Refiner/RefinerPool removal/refactor

End goal really is to remove all the virtual functions like "fillMagneticGhosts" and just deal with right quantites and transaction type (refinement/ghost copy/etc) at the call site.

@PhilipDeegan PhilipDeegan marked this pull request as draft October 2, 2025 11:12
@PHAREHUB PHAREHUB deleted a comment from coderabbitai bot Oct 2, 2025
@coderabbitai
Copy link

coderabbitai bot commented Oct 10, 2025

Important

Review skipped

Ignore keyword(s) in the title.

⛔ Ignored keywords (1)
  • WIP

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

#include "amr/resources_manager/amr_utils.hpp"
#include "core/data/grid/gridlayout_utils.hpp"
#include "core/data/ions/ions.hpp"
// #include "core/data/ions/ions.hpp"

Check notice

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.
#include "amr/messengers/messenger.hpp"
#include "amr/resources_manager/amr_utils.hpp"
#include "amr/messengers/hybrid_messenger.hpp"
// #include "amr/physical_models/hybrid_model.hpp"

Check notice

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.

#include "messenger_info.hpp"
//#include "core/data/grid/gridlayout.hpp"
// #include "core/data/grid/gridlayout.hpp"

Check notice

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.
template<auto rtype>
auto& register_resource(auto& rm, auto& dst, auto& src, auto& scratch, auto&&... args)
{
auto&& [idDst, idSrc, idScrtch] = rm->getIDsList(dst, src, scratch);

Check notice

Code scanning / CodeQL

Unused local variable Note

Variable (unnamed local variable) is not used.
void scheduler(amr::RefinerScheduler& schedulr) { scheduler_ = &schedulr; }

template<auto rtype>
void fill(std::string const& dst, auto& level, double time, auto&&... args)

Check notice

Code scanning / CodeQL

Unused static variable Note

Static variable args is never read.
void scheduler(amr::RefinerScheduler& schedulr) { scheduler_ = &schedulr; }

template<auto rtype>
void fill(std::string const& dst, auto& level, double time, auto&&... args)

Check notice

Code scanning / CodeQL

Unused local variable Note

Variable args is not used.
Comment on lines +62 to +65
// void fillPopMomTensor(auto& lvl, auto const time, auto const popidx)
// {
// using value_type = TensorFieldT::value_type;
// auto constexpr N = core::detail::tensor_field_dim_from_rank<2>();

Check notice

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.
Comment on lines +67 to +68
// auto& rm = *model_.resourcesManager;
// auto& ions = model_.state.ions;

Check notice

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.
// ions[popidx].momentumTensor()[c].size() * sizeof(value_type));

MTAlgos[popidx].getOrCreateSchedule(hierarchy_, lvl.getLevelNumber()).fillData(time);
// MTAlgos[popidx].getOrCreateSchedule(hierarchy_, lvl.getLevelNumber()).fillData(time);

Check notice

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.
Momentum TensorField fill borders during diags
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.

1 participant