From f3e526e54d3db528f01b5a9498f45c9898153b88 Mon Sep 17 00:00:00 2001
From: Rafael Ravedutti <rafaelravedutti@gmail.com>
Date: Sun, 10 Mar 2024 19:04:33 +0100
Subject: [PATCH] Small fixes

Signed-off-by: Rafael Ravedutti <rafaelravedutti@gmail.com>
---
 runtime/domain/block_forest.cpp       | 2 +-
 runtime/domain/regular_6d_stencil.cpp | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/runtime/domain/block_forest.cpp b/runtime/domain/block_forest.cpp
index 7f0bb76..92555fa 100644
--- a/runtime/domain/block_forest.cpp
+++ b/runtime/domain/block_forest.cpp
@@ -252,7 +252,7 @@ void BlockForest::initialize(int *argc, char ***argv) {
 }
 
 void BlockForest::initializeWorkloadBalancer() {
-    const std::string algorithm = "morton";
+    std::string algorithm = "morton";
     real_t baseWeight = 1.0;
     real_t metisipc2redist = 1.0;
     size_t regridMin = 10;
diff --git a/runtime/domain/regular_6d_stencil.cpp b/runtime/domain/regular_6d_stencil.cpp
index e02f0a3..aa27679 100644
--- a/runtime/domain/regular_6d_stencil.cpp
+++ b/runtime/domain/regular_6d_stencil.cpp
@@ -101,19 +101,19 @@ int Regular6DStencil::isWithinSubdomain(real_t x, real_t y, real_t z) {
 
 void Regular6DStencil::copyRuntimeArray(const std::string& name, void *dest, const int size) {
     for(int d = 0; d < ndims; d++) {
-        if(name.compare('neighbor_ranks')) {
+        if(name.compare("neighbor_ranks")) {
             int *neighbor_ranks = static_cast<int *>(dest);
             neighbor_ranks[d * 2 + 0] = prev[d];
             neighbor_ranks[d * 2 + 1] = next[d];
         }
 
-        if(name.compare('pbc')) {
+        if(name.compare("pbc")) {
             int *pbc = static_cast<int *>(dest);
             pbc[d * 2 + 0] = pbc_prev[d];
             pbc[d * 2 + 1] = pbc_next[d];
         }
 
-        if(name.compare('subdom')) {
+        if(name.compare("subdom")) {
             real_t *subdom = static_cast<real_t *>(dest);
             subdom[d * 2 + 0] = subdom_min[d];
             subdom[d * 2 + 1] = subdom_max[d];
-- 
GitLab