openEMS: check if an excitation was defined

Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
This commit is contained in:
Thorsten Liebig 2015-12-19 15:03:30 +01:00
parent e4ad3dba0f
commit d439926992

View File

@ -809,6 +809,12 @@ int openEMS::SetupFDTD()
cout << "Enabling constant cell material assumption." << endl;
}
if (m_Exc==NULL)
{
cerr << "openEMS::SetupFDTD: Error, excitation is not defined! Abort!" << endl;
return 3;
}
FDTD_Op->SetExcitationSignal(m_Exc);
FDTD_Op->AddExtension(new Operator_Ext_Excitation(FDTD_Op));
if (!CylinderCoords)