Author: renard
Date: Tue Oct 11 10:41:50 2016
New Revision: 5401

URL: http://svn.gna.org/viewcvs/getfem?rev=5401&view=rev
Log:
minor fix

Modified:
    trunk/getfem/src/getfem_generic_assembly.cc

Modified: trunk/getfem/src/getfem_generic_assembly.cc
URL: 
http://svn.gna.org/viewcvs/getfem/trunk/getfem/src/getfem_generic_assembly.cc?rev=5401&r1=5400&r2=5401&view=diff
==============================================================================
--- trunk/getfem/src/getfem_generic_assembly.cc (original)
+++ trunk/getfem/src/getfem_generic_assembly.cc Tue Oct 11 10:41:50 2016
@@ -7412,7 +7412,8 @@
         break;
 
       case GA_SYM: case GA_SKEW:
-        if (dim0 != 2 || size0.back() != size0[size0.size()-2])
+        if (child0->tensor_proper_size() != 1 &&
+           (dim0 != 2 || size0.back() != size0[size0.size()-2]))
           ga_throw_error(expr, pnode->pos, "Sym and Skew operators are for "
                          "square matrices only.");
         mi = size0;


_______________________________________________
Getfem-commits mailing list
Getfem-commits@gna.org
https://mail.gna.org/listinfo/getfem-commits

Reply via email to