diff +scheme/Elastic2dVariable.m @ 734:eebe24a636c7 feature/poroelastic

Make Elastic2dVariable.size account for components.
author Martin Almquist <malmquist@stanford.edu>
date Wed, 25 Apr 2018 14:46:24 -0700
parents 9f28cf266f86
children aa4ef495f1fd
line wrap: on
line diff
--- a/+scheme/Elastic2dVariable.m	Wed Apr 25 14:44:49 2018 -0700
+++ b/+scheme/Elastic2dVariable.m	Wed Apr 25 14:46:24 2018 -0700
@@ -509,7 +509,7 @@
         end
 
         function N = size(obj)
-            N = prod(obj.m);
+            N = obj.dim*prod(obj.m);
         end
     end
 end