From 55b6cd310387b89a4e2a0baf31885f2934d975b7 Mon Sep 17 00:00:00 2001
From: Oliver Sander <sander@igpm.rwth-aachen.de>
Date: Wed, 19 Jan 2011 18:41:50 +0000
Subject: [PATCH] bugfix: use operator[] instead of find() if you want to force
 creation of a non-existant entry in a std::map

[[Imported from SVN: r6802]]
---
 dune/gfe/coupling/rodcontinuumsteklovpoincarestep.hh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dune/gfe/coupling/rodcontinuumsteklovpoincarestep.hh b/dune/gfe/coupling/rodcontinuumsteklovpoincarestep.hh
index 7eabe6fb..63f7f888 100644
--- a/dune/gfe/coupling/rodcontinuumsteklovpoincarestep.hh
+++ b/dune/gfe/coupling/rodcontinuumsteklovpoincarestep.hh
@@ -422,7 +422,7 @@ continuumDirichletToNeumannMap(const RigidBodyMotion<3>& lambda) const
 {
     std::pair<std::string,std::string> couplingName = std::make_pair("rod", "continuum");
     
-    VectorType& x3d = continuumSubdomainSolutions_.find("continuum")->second;
+    VectorType& x3d = continuumSubdomainSolutions_["continuum"];
     x3d.resize(complex_.continuumGrid("continuum")->size(dim));
     x3d = 0;
 
-- 
GitLab