check and update CSXCAD during setup

Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
pull/14/head
Thorsten Liebig 2015-12-30 14:17:56 +01:00
parent 22093a6347
commit 18e21d5fa0
1 changed files with 13 additions and 1 deletions

View File

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