From 90673c4be98c554545a38559815106fe5452b8e8 Mon Sep 17 00:00:00 2001 From: Thorsten Liebig Date: Sat, 5 Jun 2010 18:00:53 +0200 Subject: [PATCH] CSXCAD API changed Signed-off-by: Thorsten Liebig --- openems.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/openems.cpp b/openems.cpp index e70c5fc..dfb71a4 100644 --- a/openems.cpp +++ b/openems.cpp @@ -301,7 +301,8 @@ int openEMS::SetupFDTD(const char* file) if (prim!=NULL) { bool acc; - double* bnd = prim->GetBoundBox(acc,true); + double bnd[6] = {0,0,0,0,0,0}; + acc = prim->GetBoundBox(bnd,true); start[0]= bnd[0];start[1]=bnd[2];start[2]=bnd[4]; stop[0] = bnd[1];stop[1] =bnd[3];stop[2] =bnd[5]; CSPropProbeBox* pb = Probes.at(i)->ToProbeBox(); @@ -344,7 +345,8 @@ int openEMS::SetupFDTD(const char* file) else { bool acc; - double* bnd = prim->GetBoundBox(acc); + double bnd[6] = {0,0,0,0,0,0}; + acc = prim->GetBoundBox(bnd,true); start[0]= bnd[0];start[1]=bnd[2];start[2]=bnd[4]; stop[0] = bnd[1];stop[1] =bnd[3];stop[2] =bnd[5]; CSPropDumpBox* db = DumpProps.at(i)->ToDumpBox();