openEMS: check if an excitation was defined
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
This commit is contained in:
parent
e4ad3dba0f
commit
d439926992
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user