[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Getfem-commits] [getfem-commits] branch master updated: Fix compilation
From: |
Konstantinos Poulios |
Subject: |
[Getfem-commits] [getfem-commits] branch master updated: Fix compilation warnings |
Date: |
Mon, 16 Oct 2023 07:31:08 -0400 |
This is an automated email from the git hooks/post-receive script.
logari81 pushed a commit to branch master
in repository getfem.
The following commit(s) were added to refs/heads/master by this push:
new d174e60a Fix compilation warnings
d174e60a is described below
commit d174e60ae00fc250435e16948ff07eada1d32591
Author: Konstantinos Poulios <logari81@gmail.com>
AuthorDate: Mon Oct 16 13:29:42 2023 +0200
Fix compilation warnings
---
src/getfem_mesh.cc | 4 ++--
src/gmm/gmm_feedback_management.h | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/getfem_mesh.cc b/src/getfem_mesh.cc
index d6e25378..ecaba792 100644
--- a/src/getfem_mesh.cc
+++ b/src/getfem_mesh.cc
@@ -324,9 +324,9 @@ namespace getfem {
GMM_ASSERT1(rg == size_type(-1) || msource.region(rg).is_only_convexes(),
"The provided mesh region should only contain convexes");
+ const mesh_region &mr = msource.region(rg);
const dal::bit_vector &convexes = (rg == size_type(-1))
- ? msource.convex_index()
- : msource.region(rg).index();
+ ? msource.convex_index() : mr.index();
std::vector<size_type> old2new(msource.points_index().last()+1,
size_type(-1));
for (dal::bv_visitor cv(convexes); !cv.finished(); ++cv) {
diff --git a/src/gmm/gmm_feedback_management.h
b/src/gmm/gmm_feedback_management.h
index f445b16d..84ef3222 100644
--- a/src/gmm/gmm_feedback_management.h
+++ b/src/gmm/gmm_feedback_management.h
@@ -135,8 +135,8 @@ public:
// Depending on action either gets, sets or replaces feedback handler. Setting
handler to null resets
// it to gmm::default_feedback_handler.
inline base_feedback_handler* feedback_manager::manage(enum Action action,
base_feedback_handler *pHandler) {
- static std::unique_ptr<base_feedback_handler> pHandler_ =
- std::move(std::unique_ptr<base_feedback_handler>(new
default_feedback_handler));
+ static std::unique_ptr<base_feedback_handler>
+ pHandler_ = std::make_unique<default_feedback_handler>();
base_feedback_handler *rethandler = nullptr;
switch(action) {
case SET:
- [Getfem-commits] [getfem-commits] branch master updated: Fix compilation warnings,
Konstantinos Poulios <=