From c7b95dbc41a3123b20f9778ff3f1f667c441b497 Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 28 Aug 2012 09:01:35 +0000 Subject: [PATCH] 0021811: EDF BLSURFPLUGIN GHS3DPLUGIN: If dump is not historical, dump of hypothesis is incomplete Fix SIGSEGV on Mandriva2010-32bits + double ValTab[] = {0.0}; - GmfSetLin(idxSol, GmfSolAtVertices, 0.0); + GmfSetLin(idxSol, GmfSolAtVertices, ValTab); --- src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx b/src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx index 43d0a4a..9f2737b 100644 --- a/src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx +++ b/src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx @@ -1823,13 +1823,14 @@ static bool writeGMFFile(const char* theMesh return false; } int TypTab[] = {GmfSca}; + double ValTab[] = {0.0}; GmfSetKwd(idxRequired, GmfVertices, requiredNodes + solSize); GmfSetKwd(idxSol, GmfSolAtVertices, requiredNodes + solSize, 1, TypTab); // int usedEnforcedNodes = 0; // std::string gn = ""; for (ghs3dNodeIt = theRequiredNodes.begin();ghs3dNodeIt != theRequiredNodes.end();++ghs3dNodeIt) { GmfSetLin(idxRequired, GmfVertices, (*ghs3dNodeIt)->X(), (*ghs3dNodeIt)->Y(), (*ghs3dNodeIt)->Z(), dummyint); - GmfSetLin(idxSol, GmfSolAtVertices, 0.0); + GmfSetLin(idxSol, GmfSolAtVertices, ValTab); if (theEnforcedNodes.find((*ghs3dNodeIt)) != theEnforcedNodes.end()) gn = theEnforcedNodes.find((*ghs3dNodeIt))->second; aNodeGroupByGhs3dId[usedEnforcedNodes] = gn; -- 2.39.2