Skip to content

[Ramses] draft new setup routine for grid solver - #1922

Draft
tdavidcl wants to merge 20 commits into
Shamrock-code:mainfrom
tdavidcl:better_ramses_init
Draft

tdavidcl wants to merge 20 commits into
Shamrock-code:mainfrom
tdavidcl:better_ramses_init

Conversation

@tdavidcl

Copy link
Copy Markdown
Member

No description provided.

@tdavidcl tdavidcl added the draft label Jul 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks @tdavidcl for opening this PR!

You can do multiple things directly here:
1 - Comment pre-commit.ci run to run pre-commit checks.
2 - Comment pre-commit.ci autofix to apply fixes.
3 - Add label autofix.ci to fix authorship & pre-commit for every commit made.
4 - Add label light-ci to only trigger a reduced & faster version of the CI (need the full one before merge).
5 - Add label trigger-ci to create an empty commit to trigger the CI.

Once the workflow completes a message will appear displaying informations related to the run.

Also the PR gets automatically reviewed by gemini, you can:
1 - Comment /gemini review to trigger a review
2 - Comment /gemini summary for a summary
3 - Tag it using @gemini-code-assist either in the PR or in review comments on files

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a new update_fields API allowing Python callbacks to get and set patch fields via a PatchDataSetup proxy class, replacing the previous lambda-based field setters. Feedback suggests vectorizing the loop in the Python example using NumPy operations to improve performance, and refactoring duplicated registration logic for f64 and f64_3 fields in PatchDataToPy.hpp into a single template helper function.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread examples/ramses/run_advect.py
Comment on lines +294 to +338
inline void register_field_io_f64(PatchDataSetup &setup, PatchDataField<f64> &field) {
std::string name = field.get_name();
setup.register_getter(name, [&field]() -> py::array_t<f64> {
return VecToNumpy<f64>::convert(field.get_buf().copy_to_stdvec());
});
setup.register_setter(name, [&field](py::array_t<f64> arr) {
auto vec = NumpyToVec<f64>::convert(arr);
if (vec.size() != field.get_val_cnt()) {
throw shambase::make_except_with_loc<std::invalid_argument>(shambase::format(
"field \"{}\": array size {} does not match field val_cnt {}",
field.get_name(),
vec.size(),
field.get_val_cnt()));
}
field.get_buf().copy_from_stdvec(vec);
});
}

inline void register_field_io_f64_3(PatchDataSetup &setup, PatchDataField<f64_3> &field) {
std::string name = field.get_name();
setup.register_getter(name, [&field]() -> py::array_t<f64> {
return VecToNumpy<f64_3>::convert(field.get_buf().copy_to_stdvec());
});
setup.register_setter(name, [&field](py::array_t<f64> arr) {
auto vec = NumpyToVec<f64_3>::convert(arr);
if (vec.size() != field.get_val_cnt()) {
throw shambase::make_except_with_loc<std::invalid_argument>(shambase::format(
"field \"{}\": array size {} does not match field val_cnt {}",
field.get_name(),
vec.size(),
field.get_val_cnt()));
}
field.get_buf().copy_from_stdvec(vec);
});
}

inline void register_f64_layout_fields(
PatchDataSetup &setup, shamrock::patch::PatchDataLayer &pdat) {
pdat.for_each_field<f64>([&](auto &field) {
register_field_io_f64(setup, field);
});
pdat.for_each_field<f64_3>([&](auto &field) {
register_field_io_f64_3(setup, field);
});
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

The logic for registering f64 and f64_3 fields is identical except for the template type. Refactoring this into a single template helper function reduces code duplication and improves maintainability.

    template<typename T>
    inline void register_field_io(PatchDataSetup &setup, PatchDataField<T> &field) {
        std::string name = field.get_name();
        setup.register_getter(name, [&field]() -> py::array_t<f64> {
            return VecToNumpy<T>::convert(field.get_buf().copy_to_stdvec());
        });
        setup.register_setter(name, [&field](py::array_t<f64> arr) {
            auto vec = NumpyToVec<T>::convert(arr);
            if (vec.size() != field.get_val_cnt()) {
                throw shambase::make_except_with_loc<std::invalid_argument>(shambase::format(
                    "field \"{}\": array size {} does not match field val_cnt {}",
                    field.get_name(),
                    vec.size(),
                    field.get_val_cnt()));
            }
            field.get_buf().copy_from_stdvec(vec);
        });
    }

    inline void register_f64_layout_fields(
        PatchDataSetup &setup, shamrock::patch::PatchDataLayer &pdat) {
        pdat.for_each_field<f64>([&](auto &field) {
            register_field_io<f64>(setup, field);
        });
        pdat.for_each_field<f64_3>([&](auto &field) {
            register_field_io<f64_3>(setup, field);
        });
    }
References
  1. Refactor duplicated logic into a helper function or lambda to improve readability and maintainability.

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@codecov

codecov Bot commented Aug 19, 2026

Copy link
Copy Markdown

@coderabbitai

coderabbitai Bot commented Aug 20, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

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.

@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Workflow report

workflow report corresponding to commit 51d90f7
Commiter email is 37929162+mergify[bot]@users.noreply.github.com
You are using github private e-mail. This prevent proper tracing of who contributed what, please disable it (see Keep my email addresses private).

Light CI is enabled (the default for pull requests). This will only run the basic tests and not the full tests.
Full CI runs if the full-ci label is set, or automatically on Mergify merge-queue branches (mergify/merge-queue/*).
The merge gate job "on PR / all" is skipped in this case. Queue entry uses "on PR / all_light"; full CI runs in the merge queue.

Pre-commit check report

Pre-commit check: ✅

trim trailing whitespace.................................................Passed
fix end of files.........................................................Passed
check for merge conflicts................................................Passed
check that executables have shebangs.....................................Passed
check that scripts with shebangs are executable..........................Passed
check for added large files..............................................Passed
check for case conflicts.................................................Passed
check for broken symlinks................................................Passed
check yaml...............................................................Passed
detect private key.......................................................Passed
No-tabs checker..........................................................Passed
Tabs remover.............................................................Passed
cmake-format.............................................................Passed
Validate GitHub Workflows................................................Passed
clang-format.............................................................Passed
ruff check...............................................................Passed
ruff format..............................................................Passed
Check doxygen headers....................................................Passed
Check license headers....................................................Passed
Check #pragma once.......................................................Passed
Check SYCL #include......................................................Passed
No ssh in git submodules remote..........................................Passed
No UTF-8 in files (except for authors)...................................Passed

Test pipeline can run.

Clang-tidy diff report


58846 warnings generated.
Suppressed 58847 warnings (58844 in non-user code, 2 due to line filter, 1 NOLINT).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.

/__w/Shamrock/Shamrock/src/shampylib/include/shampylib/PatchDataToPy.hpp:261:58: warning: the parameter 'arr' is copied for each invocation but only used as a const reference; consider making it a const reference [performance-unnecessary-value-param]
  261 |         static std::vector<f64> convert(py::array_t<f64> arr) {
      |                                                          ^
      |                                         const           &
/__w/Shamrock/Shamrock/src/shampylib/include/shampylib/PatchDataToPy.hpp:261:41: note: FIX-IT applied suggested code changes
  261 |         static std::vector<f64> convert(py::array_t<f64> arr) {
      |                                         ^
/__w/Shamrock/Shamrock/src/shampylib/include/shampylib/PatchDataToPy.hpp:261:57: note: FIX-IT applied suggested code changes
  261 |         static std::vector<f64> convert(py::array_t<f64> arr) {
      |                                                         ^
/__w/Shamrock/Shamrock/src/shampylib/include/shampylib/PatchDataToPy.hpp:279:60: warning: the parameter 'arr' is copied for each invocation but only used as a const reference; consider making it a const reference [performance-unnecessary-value-param]
  279 |         static std::vector<f64_3> convert(py::array_t<f64> arr) {
      |                                                            ^
      |                                           const           &
/__w/Shamrock/Shamrock/src/shampylib/include/shampylib/PatchDataToPy.hpp:279:43: note: FIX-IT applied suggested code changes
  279 |         static std::vector<f64_3> convert(py::array_t<f64> arr) {
      |                                           ^
/__w/Shamrock/Shamrock/src/shampylib/include/shampylib/PatchDataToPy.hpp:279:59: note: FIX-IT applied suggested code changes
  279 |         static std::vector<f64_3> convert(py::array_t<f64> arr) {
      |                                                           ^
/__w/Shamrock/Shamrock/src/shampylib/include/shampylib/PatchDataToPy.hpp:300:49: warning: parameter 'arr' is passed by value and only copied once; consider moving it to avoid unnecessary copies [performance-unnecessary-value-param]
   26 |             auto vec = NumpyToVec<f64>::convert(arr);
      |                                                 ^  
      |                                                 std::move( )
/__w/Shamrock/Shamrock/src/shampylib/include/shampylib/PatchDataToPy.hpp:26:1: note: FIX-IT applied suggested code changes
   26 | 
      | ^
/__w/Shamrock/Shamrock/src/shampylib/include/shampylib/PatchDataToPy.hpp:300:49: note: FIX-IT applied suggested code changes
  300 |             auto vec = NumpyToVec<f64>::convert(arr);
      |                                                 ^
/__w/Shamrock/Shamrock/src/shampylib/include/shampylib/PatchDataToPy.hpp:300:52: note: FIX-IT applied suggested code changes
  300 |             auto vec = NumpyToVec<f64>::convert(arr);
      |                                                    ^
/__w/Shamrock/Shamrock/src/shampylib/include/shampylib/PatchDataToPy.hpp:318:51: warning: parameter 'arr' is passed by value and only copied once; consider moving it to avoid unnecessary copies [performance-unnecessary-value-param]
  318 |             auto vec = NumpyToVec<f64_3>::convert(arr);
      |                                                   ^  
      |                                                   std::move( )
/__w/Shamrock/Shamrock/src/shampylib/include/shampylib/PatchDataToPy.hpp:318:51: note: FIX-IT applied suggested code changes
/__w/Shamrock/Shamrock/src/shampylib/include/shampylib/PatchDataToPy.hpp:318:54: note: FIX-IT applied suggested code changes
  318 |             auto vec = NumpyToVec<f64_3>::convert(arr);
      |                                                      ^

56261 warnings generated.
clang-tidy applied 9 of 9 suggested fixes.
Suppressed 56257 warnings (56238 in non-user code, 19 due to line filter).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.

58902 warnings generated.
Suppressed 58903 warnings (58886 in non-user code, 16 due to line filter, 1 NOLINT).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.

Suggested changes

Detailed changes :
diff --git a/src/shampylib/include/shampylib/PatchDataToPy.hpp b/src/shampylib/include/shampylib/PatchDataToPy.hpp
index 08e4cac9..f8b2c85c 100644
--- a/src/shampylib/include/shampylib/PatchDataToPy.hpp
+++ b/src/shampylib/include/shampylib/PatchDataToPy.hpp
@@ -24,6 +24,8 @@
 #include <pybind11/numpy.h>
 #include <pybind11/pybind11.h>
 
+#include <utility>
+
 namespace shamrock {
     template<class T>
     class VecToNumpy;
@@ -258,7 +260,7 @@ namespace shamrock {
     template<>
     class NumpyToVec<f64> {
         public:
-        static std::vector<f64> convert(py::array_t<f64> arr) {
+        static std::vector<f64> convert(const py::array_t<f64>& arr) {
             if (arr.ndim() != 1) {
                 throw shambase::make_except_with_loc<std::invalid_argument>(
                     shambase::format("expected 1D array for f64 field, got ndim={}", arr.ndim()));
@@ -276,7 +278,7 @@ namespace shamrock {
     template<>
     class NumpyToVec<f64_3> {
         public:
-        static std::vector<f64_3> convert(py::array_t<f64> arr) {
+        static std::vector<f64_3> convert(const py::array_t<f64>& arr) {
             if (arr.ndim() != 2 || arr.shape(1) != 3) {
                 throw shambase::make_except_with_loc<std::invalid_argument>(
                     "expected (N, 3) array for f64_3 field");
@@ -297,7 +299,7 @@ namespace shamrock {
             return VecToNumpy<f64>::convert(field.get_buf().copy_to_stdvec());
         });
         setup.register_setter(name, [&field](py::array_t<f64> arr) {
-            auto vec = NumpyToVec<f64>::convert(arr);
+            auto vec = NumpyToVec<f64>::convert(std::move(arr));
             if (vec.size() != field.get_val_cnt()) {
                 throw shambase::make_except_with_loc<std::invalid_argument>(shambase::format(
                     "field \"{}\": array size {} does not match field val_cnt {}",
@@ -315,7 +317,7 @@ namespace shamrock {
             return VecToNumpy<f64_3>::convert(field.get_buf().copy_to_stdvec());
         });
         setup.register_setter(name, [&field](py::array_t<f64> arr) {
-            auto vec = NumpyToVec<f64_3>::convert(arr);
+            auto vec = NumpyToVec<f64_3>::convert(std::move(arr));
             if (vec.size() != field.get_val_cnt()) {
                 throw shambase::make_except_with_loc<std::invalid_argument>(shambase::format(
                     "field \"{}\": array size {} does not match field val_cnt {}",
# Doxygen diff with `main` Removed warnings : 42 New warnings : 58 Warnings count : 8377 → 8393 (0.2%)
Detailed changes :
- src/shammodels/ramses/include/shammodels/ramses/Model.hpp:107: warning: Member get_cell_coords(std::pair< TgridVec, TgridVec > block_coords, u32 lid) (function) of class shammodels::basegodunov::Model is not documented.
- src/shammodels/ramses/include/shammodels/ramses/Model.hpp:116: warning: Member evolve_once_time_expl(f64 t_curr, f64 dt_input) (function) of class shammodels::basegodunov::Model is not documented.
- src/shammodels/ramses/include/shammodels/ramses/Model.hpp:120: warning: Member timestep() (function) of class shammodels::basegodunov::Model is not documented.
- src/shammodels/ramses/include/shammodels/ramses/Model.hpp:122: warning: Member evolve_once() (function) of class shammodels::basegodunov::Model is not documented.
- src/shammodels/ramses/include/shammodels/ramses/Model.hpp:127: warning: Member evolve_until(Tscal target_time, i32 niter_max) (function) of class shammodels::basegodunov::Model is not documented.
- src/shammodels/ramses/include/shammodels/ramses/Model.hpp:135: warning: Member dump(std::string fname) (function) of class shammodels::basegodunov::Model is not documented.
+ src/shammodels/ramses/include/shammodels/ramses/Model.hpp:158: warning: Member get_cell_coords(std::pair< TgridVec, TgridVec > block_coords, u32 lid) (function) of class shammodels::basegodunov::Model is not documented.
+ src/shammodels/ramses/include/shammodels/ramses/Model.hpp:167: warning: Member evolve_once_time_expl(f64 t_curr, f64 dt_input) (function) of class shammodels::basegodunov::Model is not documented.
+ src/shammodels/ramses/include/shammodels/ramses/Model.hpp:171: warning: Member timestep() (function) of class shammodels::basegodunov::Model is not documented.
+ src/shammodels/ramses/include/shammodels/ramses/Model.hpp:173: warning: Member evolve_once() (function) of class shammodels::basegodunov::Model is not documented.
+ src/shammodels/ramses/include/shammodels/ramses/Model.hpp:178: warning: Member evolve_until(Tscal target_time, i32 niter_max) (function) of class shammodels::basegodunov::Model is not documented.
+ src/shammodels/ramses/include/shammodels/ramses/Model.hpp:186: warning: Member dump(std::string fname) (function) of class shammodels::basegodunov::Model is not documented.
- src/shammodels/ramses/include/shammodels/ramses/Model.hpp:34: warning: Compound shammodels::basegodunov::Model is not documented.
- src/shammodels/ramses/include/shammodels/ramses/Model.hpp:36: warning: Member Tscal (typedef) of class shammodels::basegodunov::Model is not documented.
- src/shammodels/ramses/include/shammodels/ramses/Model.hpp:37: warning: Member dim (variable) of class shammodels::basegodunov::Model is not documented.
+ src/shammodels/ramses/include/shammodels/ramses/Model.hpp:38: warning: Compound shammodels::basegodunov::Model is not documented.
- src/shammodels/ramses/include/shammodels/ramses/Model.hpp:38: warning: Member ctx (variable) of class shammodels::basegodunov::Model is not documented.
- src/shammodels/ramses/include/shammodels/ramses/Model.hpp:40: warning: Member Solver (typedef) of class shammodels::basegodunov::Model is not documented.
+ src/shammodels/ramses/include/shammodels/ramses/Model.hpp:40: warning: Member Tscal (typedef) of class shammodels::basegodunov::Model is not documented.
+ src/shammodels/ramses/include/shammodels/ramses/Model.hpp:41: warning: Member dim (variable) of class shammodels::basegodunov::Model is not documented.
- src/shammodels/ramses/include/shammodels/ramses/Model.hpp:41: warning: Member solver (variable) of class shammodels::basegodunov::Model is not documented.
+ src/shammodels/ramses/include/shammodels/ramses/Model.hpp:42: warning: Member ctx (variable) of class shammodels::basegodunov::Model is not documented.
- src/shammodels/ramses/include/shammodels/ramses/Model.hpp:43: warning: Member Model(ShamrockCtx &ctx) (function) of class shammodels::basegodunov::Model is not documented.
+ src/shammodels/ramses/include/shammodels/ramses/Model.hpp:44: warning: Member Solver (typedef) of class shammodels::basegodunov::Model is not documented.
+ src/shammodels/ramses/include/shammodels/ramses/Model.hpp:45: warning: Member solver (variable) of class shammodels::basegodunov::Model is not documented.
+ src/shammodels/ramses/include/shammodels/ramses/Model.hpp:47: warning: Member Model(ShamrockCtx &ctx) (function) of class shammodels::basegodunov::Model is not documented.
- src/shammodels/ramses/include/shammodels/ramses/Model.hpp:60: warning: Member make_base_grid(TgridVec bmin, TgridVec cell_size, u32_3 cell_count) (function) of class shammodels::basegodunov::Model is not documented.
- src/shammodels/ramses/include/shammodels/ramses/Model.hpp:62: warning: Member dump_vtk(std::string filename) (function) of class shammodels::basegodunov::Model is not documented.
+ src/shammodels/ramses/include/shammodels/ramses/Model.hpp:64: warning: Member make_base_grid(TgridVec bmin, TgridVec cell_size, u32_3 cell_count) (function) of class shammodels::basegodunov::Model is not documented.
- src/shammodels/ramses/include/shammodels/ramses/Model.hpp:65: warning: Member set_field_value_lambda(std::string field_name, const std::function< T(Tvec, Tvec)> pos_to_val, const i32 offset) (function) of class shammodels::basegodunov::Model is not documented.
+ src/shammodels/ramses/include/shammodels/ramses/Model.hpp:66: warning: Member dump_vtk(std::string filename) (function) of class shammodels::basegodunov::Model is not documented.
+ src/shammodels/ramses/include/shammodels/ramses/Model.hpp:69: warning: Member set_field_value_lambda(std::string field_name, const std::function< T(Tvec, Tvec)> pos_to_val, const i32 offset) (function) of class shammodels::basegodunov::Model is not documented.
- src/shammodels/ramses/src/pyRamsesModel.cpp:33: warning: Member add_instance(py::module &m, std::string name_config, std::string name_model) (function) of namespace shammodels::basegodunov is not documented.
+ src/shammodels/ramses/src/pyRamsesModel.cpp:34: warning: Member add_instance(py::module &m, std::string name_config, std::string name_model) (function) of namespace shammodels::basegodunov is not documented.
- src/shammodels/ramses/src/pyRamsesModel.cpp:403: warning: Member ON_PYTHON_INIT (variable) of file pyRamsesModel.cpp is not documented.
- src/shammodels/ramses/src/pyRamsesModel.cpp:406: warning: Member mramses (variable) of file pyRamsesModel.cpp is not documented.
- src/shammodels/ramses/src/pyRamsesModel.cpp:408: warning: Member add_instance< f64_3, i64_3 >(mramses, base_name+"_f64_3_i64_3_SolverConfig", base_name+"_f64_3_i64_3_Model") (function) of file pyRamsesModel.cpp is not documented.
- src/shammodels/ramses/src/pyRamsesModel.cpp:408: warning: Member base_name (variable) of file pyRamsesModel.cpp is not documented.
+ src/shammodels/ramses/src/pyRamsesModel.cpp:409: warning: Member ON_PYTHON_INIT (variable) of file pyRamsesModel.cpp is not documented.
+ src/shammodels/ramses/src/pyRamsesModel.cpp:412: warning: Member mramses (variable) of file pyRamsesModel.cpp is not documented.
- src/shammodels/ramses/src/pyRamsesModel.cpp:414: warning: Member VariantAMRGodunovBind (typedef) of file pyRamsesModel.cpp is not documented.
+ src/shammodels/ramses/src/pyRamsesModel.cpp:414: warning: Member add_instance< f64_3, i64_3 >(mramses, base_name+"_f64_3_i64_3_SolverConfig", base_name+"_f64_3_i64_3_Model") (function) of file pyRamsesModel.cpp is not documented.
+ src/shammodels/ramses/src/pyRamsesModel.cpp:414: warning: Member base_name (variable) of file pyRamsesModel.cpp is not documented.
- src/shammodels/ramses/src/pyRamsesModel.cpp:416: warning: Member def("get_Model_Ramses", [](ShamrockCtx &ctx, std::string vector_type, std::string grid_repr) -> VariantAMRGodunovBind { VariantAMRGodunovBind ret;if(vector_type=="f64_3" &&grid_repr=="i64_3") { ret=std::make_unique< Model< f64_3, i64_3 > >(ctx);} else { throw shambase::make_except_with_loc< std::invalid_argument >("unknown combination of representation and grid_repr");} return ret;}, py::kw_only(), py::arg("context"), py::arg("vector_type"), py::arg("grid_repr")) (function) of file pyRamsesModel.cpp is not documented.
+ src/shammodels/ramses/src/pyRamsesModel.cpp:420: warning: Member VariantAMRGodunovBind (typedef) of file pyRamsesModel.cpp is not documented.
+ src/shammodels/ramses/src/pyRamsesModel.cpp:422: warning: Member def("get_Model_Ramses", [](ShamrockCtx &ctx, std::string vector_type, std::string grid_repr) -> VariantAMRGodunovBind { VariantAMRGodunovBind ret;if(vector_type=="f64_3" &&grid_repr=="i64_3") { ret=std::make_unique< Model< f64_3, i64_3 > >(ctx);} else { throw shambase::make_except_with_loc< std::invalid_argument >("unknown combination of representation and grid_repr");} return ret;}, py::kw_only(), py::arg("context"), py::arg("vector_type"), py::arg("grid_repr")) (function) of file pyRamsesModel.cpp is not documented.
+ src/shampylib/include/shampylib/PatchDataSetup.hpp:42: warning: Member register_getter(std::string name, std::function< py::array_t< f64 >()> fn) (function) of class shamrock::PatchDataSetup is not documented.
+ src/shampylib/include/shampylib/PatchDataSetup.hpp:46: warning: Member register_setter(std::string name, std::function< void(py::array_t< f64 >)> fn) (function) of class shamrock::PatchDataSetup is not documented.
+ src/shampylib/include/shampylib/PatchDataSetup.hpp:50: warning: Member get(const std::string &name) const (function) of class shamrock::PatchDataSetup is not documented.
+ src/shampylib/include/shampylib/PatchDataSetup.hpp:59: warning: Member set(const std::string &name, py::array_t< f64 > value) const (function) of class shamrock::PatchDataSetup is not documented.
- src/shampylib/include/shampylib/PatchDataToPy.hpp:104: warning: Compound shamrock::VecToNumpy< sycl::vec< T, 8 > > is not documented.
- src/shampylib/include/shampylib/PatchDataToPy.hpp:106: warning: Member convert(std::vector< sycl::vec< T, 8 > > vec) (function) of class shamrock::VecToNumpy< sycl::vec< T, 8 > > is not documented.
+ src/shampylib/include/shampylib/PatchDataToPy.hpp:107: warning: Compound shamrock::VecToNumpy< sycl::vec< T, 8 > > is not documented.
+ src/shampylib/include/shampylib/PatchDataToPy.hpp:109: warning: Member convert(std::vector< sycl::vec< T, 8 > > vec) (function) of class shamrock::VecToNumpy< sycl::vec< T, 8 > > is not documented.
- src/shampylib/include/shampylib/PatchDataToPy.hpp:128: warning: Compound shamrock::VecToNumpy< sycl::vec< T, 16 > > is not documented.
- src/shampylib/include/shampylib/PatchDataToPy.hpp:130: warning: Member convert(std::vector< sycl::vec< T, 16 > > vec) (function) of class shamrock::VecToNumpy< sycl::vec< T, 16 > > is not documented.
+ src/shampylib/include/shampylib/PatchDataToPy.hpp:131: warning: Compound shamrock::VecToNumpy< sycl::vec< T, 16 > > is not documented.
+ src/shampylib/include/shampylib/PatchDataToPy.hpp:133: warning: Member convert(std::vector< sycl::vec< T, 16 > > vec) (function) of class shamrock::VecToNumpy< sycl::vec< T, 16 > > is not documented.
- src/shampylib/include/shampylib/PatchDataToPy.hpp:161: warning: Member append_to_map(std::string key, std::vector< std::reference_wrapper< shamrock::patch::PatchDataLayer > > ref_lst, py::dict &dic_out) (function) of namespace shamrock is not documented.
+ src/shampylib/include/shampylib/PatchDataToPy.hpp:164: warning: Member append_to_map(std::string key, std::vector< std::reference_wrapper< shamrock::patch::PatchDataLayer > > ref_lst, py::dict &dic_out) (function) of namespace shamrock is not documented.
- src/shampylib/include/shampylib/PatchDataToPy.hpp:207: warning: Member append_to_map(std::string key, std::vector< std::unique_ptr< shamrock::patch::PatchDataLayer > > &lst, py::dict &dic_out) (function) of namespace shamrock is not documented.
+ src/shampylib/include/shampylib/PatchDataToPy.hpp:210: warning: Member append_to_map(std::string key, std::vector< std::unique_ptr< shamrock::patch::PatchDataLayer > > &lst, py::dict &dic_out) (function) of namespace shamrock is not documented.
- src/shampylib/include/shampylib/PatchDataToPy.hpp:222: warning: Member pdat_to_dic(shamrock::patch::PatchDataLayer &pdat) (function) of namespace shamrock is not documented.
+ src/shampylib/include/shampylib/PatchDataToPy.hpp:225: warning: Member pdat_to_dic(shamrock::patch::PatchDataLayer &pdat) (function) of namespace shamrock is not documented.
+ src/shampylib/include/shampylib/PatchDataToPy.hpp:259: warning: Compound shamrock::NumpyToVec< f64 > is not documented.
+ src/shampylib/include/shampylib/PatchDataToPy.hpp:261: warning: Member convert(py::array_t< f64 > arr) (function) of class shamrock::NumpyToVec< f64 > is not documented.
- src/shampylib/include/shampylib/PatchDataToPy.hpp:26: warning: Compound shamrock::VecToNumpy is not documented.
+ src/shampylib/include/shampylib/PatchDataToPy.hpp:277: warning: Compound shamrock::NumpyToVec< f64_3 > is not documented.
+ src/shampylib/include/shampylib/PatchDataToPy.hpp:279: warning: Member convert(py::array_t< f64 > arr) (function) of class shamrock::NumpyToVec< f64_3 > is not documented.
+ src/shampylib/include/shampylib/PatchDataToPy.hpp:294: warning: Member register_field_io_f64(PatchDataSetup &setup, PatchDataField< f64 > &field) (function) of namespace shamrock is not documented.
+ src/shampylib/include/shampylib/PatchDataToPy.hpp:312: warning: Member register_field_io_f64_3(PatchDataSetup &setup, PatchDataField< f64_3 > &field) (function) of namespace shamrock is not documented.
- src/shampylib/include/shampylib/PatchDataToPy.hpp:31: warning: Member convert(std::vector< T > vec) (function) of class shamrock::VecToNumpy is not documented.
+ src/shampylib/include/shampylib/PatchDataToPy.hpp:32: warning: Compound shamrock::VecToNumpy is not documented.
+ src/shampylib/include/shampylib/PatchDataToPy.hpp:330: warning: Member register_f64_layout_fields(PatchDataSetup &setup, shamrock::patch::PatchDataLayer &pdat) (function) of namespace shamrock is not documented.
+ src/shampylib/include/shampylib/PatchDataToPy.hpp:34: warning: Member convert(std::vector< T > vec) (function) of class shamrock::VecToNumpy is not documented.
- src/shampylib/include/shampylib/PatchDataToPy.hpp:47: warning: Compound shamrock::VecToNumpy< sycl::vec< T, 2 > > is not documented.
- src/shampylib/include/shampylib/PatchDataToPy.hpp:49: warning: Member convert(std::vector< sycl::vec< T, 2 > > vec) (function) of class shamrock::VecToNumpy< sycl::vec< T, 2 > > is not documented.
+ src/shampylib/include/shampylib/PatchDataToPy.hpp:50: warning: Compound shamrock::VecToNumpy< sycl::vec< T, 2 > > is not documented.
+ src/shampylib/include/shampylib/PatchDataToPy.hpp:52: warning: Member convert(std::vector< sycl::vec< T, 2 > > vec) (function) of class shamrock::VecToNumpy< sycl::vec< T, 2 > > is not documented.
- src/shampylib/include/shampylib/PatchDataToPy.hpp:65: warning: Compound shamrock::VecToNumpy< sycl::vec< T, 3 > > is not documented.
- src/shampylib/include/shampylib/PatchDataToPy.hpp:67: warning: Member convert(std::vector< sycl::vec< T, 3 > > vec) (function) of class shamrock::VecToNumpy< sycl::vec< T, 3 > > is not documented.
+ src/shampylib/include/shampylib/PatchDataToPy.hpp:68: warning: Compound shamrock::VecToNumpy< sycl::vec< T, 3 > > is not documented.
+ src/shampylib/include/shampylib/PatchDataToPy.hpp:70: warning: Member convert(std::vector< sycl::vec< T, 3 > > vec) (function) of class shamrock::VecToNumpy< sycl::vec< T, 3 > > is not documented.
- src/shampylib/include/shampylib/PatchDataToPy.hpp:84: warning: Compound shamrock::VecToNumpy< sycl::vec< T, 4 > > is not documented.
- src/shampylib/include/shampylib/PatchDataToPy.hpp:86: warning: Member convert(std::vector< sycl::vec< T, 4 > > vec) (function) of class shamrock::VecToNumpy< sycl::vec< T, 4 > > is not documented.
+ src/shampylib/include/shampylib/PatchDataToPy.hpp:87: warning: Compound shamrock::VecToNumpy< sycl::vec< T, 4 > > is not documented.
+ src/shampylib/include/shampylib/PatchDataToPy.hpp:89: warning: Member convert(std::vector< sycl::vec< T, 4 > > vec) (function) of class shamrock::VecToNumpy< sycl::vec< T, 4 > > is not documented.
+ src/shampylib/src/pyPatchDataSetup.cpp:20: warning: Member ON_PYTHON_INIT (variable) of file pyPatchDataSetup.cpp is not documented.
+ src/shampylib/src/pyPatchDataSetup.cpp:23: warning: Member py::class_< shamrock::PatchDataSetup >(m, "PatchDataSetup") .def("get" (function) of file pyPatchDataSetup.cpp is not documented.
+ src/shampylib/src/pyPatchDataSetup.cpp:23: warning: Member shamlog_debug_ln("[Py]", "registering shamrock.PatchDataSetup") (function) of file pyPatchDataSetup.cpp is not documented.
+ src/shampylib/src/pyPatchDataSetup.cpp:26: warning: documented symbol 'py::arg' was not declared or defined.
+ src/shampylib/src/pyPatchDataSetup.cpp:27: warning: documented symbol 'py::arg' was not declared or defined.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant