check and update CSXCAD during setup
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
This commit is contained in:
parent
22093a6347
commit
18e21d5fa0
14
openems.cpp
14
openems.cpp
@ -838,10 +838,22 @@ void openEMS::SetCSX(ContinuousStructure* csx)
|
|||||||
|
|
||||||
int openEMS::SetupFDTD()
|
int openEMS::SetupFDTD()
|
||||||
{
|
{
|
||||||
|
|
||||||
timeval startTime;
|
timeval startTime;
|
||||||
gettimeofday(&startTime,NULL);
|
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)
|
if (g_settings.GetVerboseLevel()>2)
|
||||||
m_CSX->ShowPropertyStatus(cerr);
|
m_CSX->ShowPropertyStatus(cerr);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user