adept to CSXCAD changes & set coord input type early to prevent double update

pull/1/head
Thorsten Liebig 2010-11-01 14:58:27 +01:00
parent 6728cee054
commit aab744fefa
1 changed files with 2 additions and 4 deletions

View File

@ -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)
{