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 105e1626 Fix compilation warning
105e1626 is described below

commit 105e1626c8f03ad49eb3fcec53012c278f48294f
Author: Konstantinos Poulios <logar...@gmail.com>
AuthorDate: Mon Mar 11 09:03:09 2024 +0100

    Fix compilation warning
---
 contrib/crack_plate/crack_bilaplacian_problem.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/crack_plate/crack_bilaplacian_problem.cc 
b/contrib/crack_plate/crack_bilaplacian_problem.cc
index 13ad0a13..ff114914 100644
--- a/contrib/crack_plate/crack_bilaplacian_problem.cc
+++ b/contrib/crack_plate/crack_bilaplacian_problem.cc
@@ -1081,10 +1081,10 @@ bool bilaplacian_crack_problem::solve(plain_vector &U) {
     plain_vector b = model.real_rhs();
     gmm::scale(b, -1.);
     plain_vector X(b);
-    scalar_type condest;
 #if defined(GMM_USES_MUMPS)
     gmm::MUMPS_solve(A, X, gmm::scaled(b, scalar_type(-1)));
 #else
+    scalar_type condest;
     gmm::SuperLU_solve(A, X, gmm::scaled(b, scalar_type(-1)), condest, 1);
     cout << "cond super LU = " << 1./condest << "\n";
 #endif

Reply via email to