check and update CSXCAD during setup
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>pull/14/head
parent
22093a6347
commit
18e21d5fa0
14
openems.cpp
14
openems.cpp
|
@ -838,10 +838,22 @@ void openEMS::SetCSX(ContinuousStructure* csx)
|
|||
|
||||
int openEMS::SetupFDTD()
|
||||
{
|
||||
|
||||
timeval startTime;
|
||||
gettimeofday(&startTime,NULL);
|
||||
|
||||
if (m_CSX==NULL)
|
||||
{
|
||||
cerr << "openEMS::SetupFDTD: Error: CSXCAD is not set!" << endl;
|
||||
return 3;
|
||||
}
|
||||
if (m_CSX==NULL)
|
||||
{
|
||||
cerr << "openEMS::SetupFDTD: Error: CSXCAD is not set!" << endl;
|
||||
return 3;
|
||||
}
|
||||
std::string ec = m_CSX->Update();
|
||||
if (!ec.empty())
|
||||
cerr << ec << endl;
|
||||
if (g_settings.GetVerboseLevel()>2)
|
||||
m_CSX->ShowPropertyStatus(cerr);
|
||||
|
||||
|
|
Loading…
Reference in New Issue