From: eap Date: Wed, 6 Mar 2013 08:32:30 +0000 (+0000) Subject: 0021859: SMESH : Add conversion from QUAD8 to QUAD9 and from HEXA20 to HEXA27 X-Git-Tag: pluginMGCleaner~72 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=db7638e9f90bf381fa26b3f65d3058c155ffc924;p=modules%2Fsmesh.git 0021859: SMESH : Add conversion from QUAD8 to QUAD9 and from HEXA20 to HEXA27 - map< double, int >::reverse_iterator maxLen_i = len2edgeMap.rbegin(); + multimap< double, int >::reverse_iterator maxLen_i = len2edgeMap.rbegin(); --- diff --git a/src/StdMeshers/StdMeshers_Prism_3D.cxx b/src/StdMeshers/StdMeshers_Prism_3D.cxx index 0b9605e59..8b72f7b9b 100644 --- a/src/StdMeshers/StdMeshers_Prism_3D.cxx +++ b/src/StdMeshers/StdMeshers_Prism_3D.cxx @@ -2195,8 +2195,10 @@ bool StdMeshers_PrismAsBlock::Init(SMESH_MesherHelper* helper, { if ( len2edgeMap.size() != nbEdges ) RETURN_BAD_RESULT("Uniqueness of edge lengths not assured"); - map< double, int >::reverse_iterator maxLen_i = len2edgeMap.rbegin(); - map< double, int >::reverse_iterator midLen_i = ++len2edgeMap.rbegin(); + + multimap< double, int >::reverse_iterator maxLen_i = len2edgeMap.rbegin(); + multimap< double, int >::reverse_iterator midLen_i = ++len2edgeMap.rbegin(); + double maxLen = maxLen_i->first; double midLen = ( len2edgeMap.size() == 1 ) ? 0 : midLen_i->first; switch ( nbEdges ) {