fix line integral calc

Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
This commit is contained in:
Thorsten Liebig 2021-09-07 16:56:08 +02:00
parent 0e54fbf7ac
commit 46f4084555

View File

@ -199,7 +199,7 @@ double* Engine_Interface_FDTD::GetRawInterpolatedDualField(const unsigned int* p
double Engine_Interface_FDTD::CalcVoltageIntegral(const unsigned int* start, const unsigned int* stop) const
{
if ((start[0]!=stop[0] + start[1]!=stop[1] + start[2]!=stop[2])!=1)
if (((start[0]!=stop[0]) + (start[1]!=stop[1]) + (start[2]!=stop[2]))!=1)
{
cerr << "Engine_Interface_FDTD::CalcVoltageIntegral: Error, only a 1D/line integration is allowed" << endl;
return 0;