From 2ea197dec4bfc6a23ebd747b8a27f3add95fa959 Mon Sep 17 00:00:00 2001
From: Oliver Sander <sander@igpm.rwth-aachen.de>
Date: Mon, 8 Dec 2014 15:21:15 +0000
Subject: [PATCH] Use Entity::subEntities instead of deprecated method
 Entity::count

[[Imported from SVN: r9978]]
---
 dune/gfe/rodlocalstiffness.hh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dune/gfe/rodlocalstiffness.hh b/dune/gfe/rodlocalstiffness.hh
index 44eee71e..3b03fa80 100644
--- a/dune/gfe/rodlocalstiffness.hh
+++ b/dune/gfe/rodlocalstiffness.hh
@@ -124,10 +124,10 @@ protected:
     void getLocalReferenceConfiguration(const Entity& element,
                                         std::vector<RigidBodyMotion<RT,3> >& localReferenceConfiguration) const {
 
-        int numOfBaseFct = element.template count<dim>();
+        unsigned int numOfBaseFct = element.subEntities(dim);
         localReferenceConfiguration.resize(numOfBaseFct);
 
-        for (int i=0; i<numOfBaseFct; i++)
+        for (size_t i=0; i<numOfBaseFct; i++)
             localReferenceConfiguration[i] = referenceConfiguration_[gridView_.indexSet().subIndex(element,i,dim)];
     }
 
-- 
GitLab