getfem-commits
[Top][All Lists]
Advanced

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

[Getfem-commits] (no subject)


From: Markus Bürg
Subject: [Getfem-commits] (no subject)
Date: Tue, 17 Oct 2017 08:03:19 -0400 (EDT)

branch: mb-ga_interpolate_filter
commit c0d0c6268eb4ad7286f2c28d0ab5a8a1a624342d
Author: mb <address@hidden>
Date:   Tue Oct 17 14:03:11 2017 +0200

    Set number of DoFs correctly.
---
 src/getfem_generic_assembly.cc | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/src/getfem_generic_assembly.cc b/src/getfem_generic_assembly.cc
index 7ed1767..ba23cc9 100644
--- a/src/getfem_generic_assembly.cc
+++ b/src/getfem_generic_assembly.cc
@@ -11485,8 +11485,19 @@ namespace getfem {
 
     case GA_NODE_PREDEF_FUNC: case GA_NODE_OPERATOR: case GA_NODE_SPEC_FUNC:
     case GA_NODE_CONSTANT: case GA_NODE_ALLINDICES: case GA_NODE_ZERO:
-    case GA_NODE_RESHAPE: case GA_NODE_INTERPOLATE_FILTER:
+    case GA_NODE_RESHAPE:
+      break;
+
+    case GA_NODE_INTERPOLATE_FILTER:
+    {
+      if (pnode->name_test1 != "")
+        gis.max_dof = std::max(gis.max_dof,
+                               
workspace.interval_of_variable(pnode->name_test1).last());
+      if (pnode->name_test2 != "")
+        gis.max_dof = std::max(gis.max_dof,
+                               
workspace.interval_of_variable(pnode->name_test2).last());
       break;
+    }
 
     case GA_NODE_X:
       GMM_ASSERT1(!function_case,



reply via email to

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