reordered --no-simulation abort point
parent
3205d31654
commit
da3e55a65c
12
openems.cpp
12
openems.cpp
|
@ -302,10 +302,6 @@ int openEMS::SetupFDTD(const char* file)
|
||||||
else
|
else
|
||||||
NrTS = help;
|
NrTS = help;
|
||||||
|
|
||||||
// if the command line switch --no-simulation is used, fix NrTS
|
|
||||||
if (m_no_simulation)
|
|
||||||
NrTS = 0;
|
|
||||||
|
|
||||||
help = 0;
|
help = 0;
|
||||||
FDTD_Opts->QueryIntAttribute("CylinderCoords",&help);
|
FDTD_Opts->QueryIntAttribute("CylinderCoords",&help);
|
||||||
if (help==1)
|
if (help==1)
|
||||||
|
@ -398,10 +394,9 @@ int openEMS::SetupFDTD(const char* file)
|
||||||
if (!FDTD_Op->SetupExcitation( FDTD_Opts->FirstChildElement("Excitation"), NrTS ))
|
if (!FDTD_Op->SetupExcitation( FDTD_Opts->FirstChildElement("Excitation"), NrTS ))
|
||||||
exit(2);
|
exit(2);
|
||||||
|
|
||||||
|
// create debug output, if requested
|
||||||
if (DebugMat)
|
if (DebugMat)
|
||||||
{
|
|
||||||
FDTD_Op->DumpMaterial2File("material_dump.vtk");
|
FDTD_Op->DumpMaterial2File("material_dump.vtk");
|
||||||
}
|
|
||||||
if (DebugOp)
|
if (DebugOp)
|
||||||
FDTD_Op->DumpOperator2File("operator_dump.vtk");
|
FDTD_Op->DumpOperator2File("operator_dump.vtk");
|
||||||
if (m_debugPEC)
|
if (m_debugPEC)
|
||||||
|
@ -415,6 +410,11 @@ int openEMS::SetupFDTD(const char* file)
|
||||||
|
|
||||||
cout << "Creation time for operator: " << CalcDiffTime(OpDoneTime,startTime) << " s" << endl;
|
cout << "Creation time for operator: " << CalcDiffTime(OpDoneTime,startTime) << " s" << endl;
|
||||||
|
|
||||||
|
if (m_no_simulation) {
|
||||||
|
// simulation was disabled (to generate debug output only)
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
//create FDTD engine
|
//create FDTD engine
|
||||||
FDTD_Eng = FDTD_Op->CreateEngine();
|
FDTD_Eng = FDTD_Op->CreateEngine();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue