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: More informativ


From: Konstantinos Poulios
Subject: [Getfem-commits] [getfem-commits] branch master updated: More informative error messages
Date: Tue, 05 Apr 2022 15:36:36 -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 0e4a5740 More informative error messages
0e4a5740 is described below

commit 0e4a5740dff2994cb28899508cb0481b6e611a68
Author: Konstantinos Poulios <logari81@gmail.com>
AuthorDate: Tue Apr 5 21:36:25 2022 +0200

    More informative error messages
---
 src/getfem/getfem_generic_assembly.h     | 6 +++---
 src/getfem_generic_assembly_workspace.cc | 6 ++++--
 2 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/src/getfem/getfem_generic_assembly.h 
b/src/getfem/getfem_generic_assembly.h
index f9d3951c..43d269de 100644
--- a/src/getfem/getfem_generic_assembly.h
+++ b/src/getfem/getfem_generic_assembly.h
@@ -591,9 +591,9 @@ namespace getfem {
     enum class inherit { NONE, ENABLED, ALL };
 
     explicit ga_workspace(const getfem::model &md_,
-                 const inherit var_inherit=inherit::ENABLED);
-    explicit ga_workspace(const ga_workspace &gaw,// compulsory 2nd arg to 
avoid
-                 const inherit var_inherit); // conflict with copy constructor
+                          const inherit var_inherit=inherit::ENABLED);
+    explicit ga_workspace(const ga_workspace &gaw,    // compulsory 2nd arg to 
avoid
+                          const inherit var_inherit); // conflict with copy 
constructor
     ga_workspace();
     ~ga_workspace();
 
diff --git a/src/getfem_generic_assembly_workspace.cc 
b/src/getfem_generic_assembly_workspace.cc
index 38f36efc..f9c8d233 100644
--- a/src/getfem_generic_assembly_workspace.cc
+++ b/src/getfem_generic_assembly_workspace.cc
@@ -837,7 +837,8 @@ namespace getfem {
 
     if (order == 1 || (order == 2 && condensation)) {
       if (order == 2 && condensation) {
-        GMM_ASSERT1(V->size() == nb_tot_dof, "Wrong size");
+        GMM_ASSERT1(V->size() == nb_tot_dof,
+                    "Wrong size of assembled vector in workspace");
         gmm::resize(cached_V, nb_tot_dof);
         gmm::copy(*V, cached_V); // current residual is used in condensation
         gmm::fill(*V, scalar_type(0));
@@ -845,7 +846,8 @@ namespace getfem {
         gmm::clear(*V);
         gmm::resize(*V, nb_tot_dof);
       } else
-        GMM_ASSERT1(V->size() == nb_tot_dof, "Wrong size");
+        GMM_ASSERT1(V->size() == nb_tot_dof,
+                    "Wrong size of assembled vector in workspace");
       gmm::clear(unreduced_V);
       gmm::resize(unreduced_V, nb_tmp_dof);
     }



reply via email to

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