getfem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Getfem-commits] [getfem-commits] branch master updated: Fix failing tes


From: Konstantinos Poulios
Subject: [Getfem-commits] [getfem-commits] branch master updated: Fix failing tests due to superlu on some systems
Date: Mon, 16 Oct 2023 02:49:42 -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 a46b1e84 Fix failing tests due to superlu on some systems
a46b1e84 is described below

commit a46b1e847fe64fa344a962f9b0a3dba593ee5f45
Author: Konstantinos Poulios <logari81@gmail.com>
AuthorDate: Mon Oct 16 08:49:28 2023 +0200

    Fix failing tests due to superlu on some systems
---
 contrib/level_set_contact/test_contact.cpp | 5 ++++-
 tests/plasticity.cc                        | 4 ++++
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/contrib/level_set_contact/test_contact.cpp 
b/contrib/level_set_contact/test_contact.cpp
index 977c25d2..e3906dcf 100644
--- a/contrib/level_set_contact/test_contact.cpp
+++ b/contrib/level_set_contact/test_contact.cpp
@@ -165,8 +165,11 @@ int main(int argc, char *argv[])
 
         //actual step solving
         level_set_contact::solve_with_contact(standard_solve, model,
+#ifdef GMM_USES_MUMPS
+            iter_newton, iter_contact, "mumps", line_search);
+#else
             iter_newton, iter_contact, "superlu", line_search);
-
+#endif
         GMM_ASSERT1(iter_contact.converged(), "ERROR: contact algorithm did 
not converge");
         std::cout << "update" << std::endl;
 
diff --git a/tests/plasticity.cc b/tests/plasticity.cc
index b32233d6..78f54d8c 100644
--- a/tests/plasticity.cc
+++ b/tests/plasticity.cc
@@ -332,7 +332,11 @@ bool elastoplasticity_problem::solve(plain_vector &U) {
     // getfem::simplest_newton_line_search ls;
     gmm::iteration iter(residual, 2, 40000);
     getfem::standard_solve(model, iter,
+#ifdef GMM_USES_MUMPS
+                          getfem::rselect_linear_solver(model, "mumps"), ls);
+#else
                           getfem::rselect_linear_solver(model, "superlu"), ls);
+#endif
  
     getfem::small_strain_elastoplasticity_next_iter
       (model, mim, "Prandtl Reuss", getfem::DISPLACEMENT_ONLY,



reply via email to

[Prev in Thread] Current Thread [Next in Thread]