From aab744fefadce99eb05410faccf0bd2c3f028027 Mon Sep 17 00:00:00 2001 From: Thorsten Liebig Date: Mon, 1 Nov 2010 14:58:27 +0100 Subject: [PATCH] adept to CSXCAD changes & set coord input type early to prevent double update --- openems.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/openems.cpp b/openems.cpp index d946cd1..0e87553 100644 --- a/openems.cpp +++ b/openems.cpp @@ -330,6 +330,8 @@ int openEMS::SetupFDTD(const char* file) cout << "Read Geometry..." << endl; ContinuousStructure CSX; + if (CylinderCoords) + CSX.SetCoordInputType(CYLINDRICAL); //tell CSX to use cylinder-coords string EC(CSX.ReadFromXML(openEMSxml)); if (EC.empty()==false) { @@ -337,9 +339,6 @@ int openEMS::SetupFDTD(const char* file) // return(-2); } - if (CylinderCoords) - CSX.SetCoordInputType(1); //tell CSX to use cylinder-coords - if (m_debugCSX) CSX.Write2XML("debugCSX.xml"); @@ -354,7 +353,6 @@ int openEMS::SetupFDTD(const char* file) } else FDTD_Op = Operator_Cylinder::New(m_engine_numThreads); - CSX.SetCoordInputType(1); //tell CSX to use cylinder-coords } else if (m_engine == EngineType_SSE) {