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: minor fix with


From: Yves Renard
Subject: [Getfem-commits] [getfem-commits] branch master updated: minor fix with a verification on im_data size
Date: Sun, 21 Jun 2020 07:23:54 -0400

This is an automated email from the git hooks/post-receive script.

renard pushed a commit to branch master
in repository getfem.

The following commit(s) were added to refs/heads/master by this push:
     new abd78b0  minor fix with a verification on im_data size
abd78b0 is described below

commit abd78b096280b4d90c0f2ff80db672b43befe3ce
Author: Yves Renard <Yves.Renard@insa-lyon.fr>
AuthorDate: Sun Jun 21 13:23:41 2020 +0200

    minor fix with a verification on im_data size
---
 src/getfem_models.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/getfem_models.cc b/src/getfem_models.cc
index 2306f2a..a33ae53 100644
--- a/src/getfem_models.cc
+++ b/src/getfem_models.cc
@@ -2902,7 +2902,7 @@ namespace getfem {
       return mi;
     } else if (imd) {
       bgeot::multi_index mi = imd->tensor_size();
-      size_type q = n / imd->nb_filtered_index();
+      size_type q = n * imd->nb_filtered_index();
       GMM_ASSERT1(q % imd->nb_tensor_elem() == 0,
                   "Invalid mesh im data vector");
       if (n > 1 || it->second.qdims.size() > 1) {



reply via email to

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