From c785e5c197c545ab854bb0c30a3a927e43d251fc Mon Sep 17 00:00:00 2001 From: Valentin Seitz Date: Thu, 6 Mar 2025 15:26:30 +0100 Subject: [PATCH] Refactor the usage of undefined function --- dccrg.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dccrg.hpp b/dccrg.hpp index 7ec835d..9516731 100644 --- a/dccrg.hpp +++ b/dccrg.hpp @@ -11344,8 +11344,8 @@ template < abort(); } - const uint64_t index1 = this->get_x_index(cell1); - const uint64_t index2 = this->get_x_index(cell2); + const uint64_t index1 = this->mapping.get_indices(cell1)[0]; + const uint64_t index2 = this->mapping.get_indices(cell2)[0]; const uint64_t size1 = this->mapping.get_cell_length_in_indices(cell1); const uint64_t size2 = this->mapping.get_cell_length_in_indices(cell2); @@ -11374,8 +11374,8 @@ template < abort(); } - const uint64_t index1 = this->get_y_index(cell1); - const uint64_t index2 = this->get_y_index(cell2); + const uint64_t index1 = this->mapping.get_indices(cell1)[1]; + const uint64_t index2 = this->mapping.get_indices(cell2)[1]; const uint64_t size1 = this->mapping.get_cell_length_in_indices(cell1); const uint64_t size2 = this->mapping.get_cell_length_in_indices(cell2); @@ -11404,8 +11404,8 @@ template < abort(); } - const uint64_t index1 = this->get_z_index(cell1); - const uint64_t index2 = this->get_z_index(cell2); + const uint64_t index1 = this->mapping.get_indices(cell1)[2]; + const uint64_t index2 = this->mapping.get_indices(cell2)[2]; const uint64_t size1 = this->mapping.get_cell_length_in_indices(cell1); const uint64_t size2 = this->mapping.get_cell_length_in_indices(cell2);