From 241ec2bb40a3a76b443e8c9c45ab3f27e2b70bf2 Mon Sep 17 00:00:00 2001 From: Thorsten Liebig Date: Mon, 21 Mar 2011 15:10:09 +0100 Subject: [PATCH] check if operator setup was successful --- openems.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openems.cpp b/openems.cpp index 67f9bcd..d1517f3 100644 --- a/openems.cpp +++ b/openems.cpp @@ -572,7 +572,8 @@ int openEMS::SetupFDTD(const char* file) m_CSX->Write2XML("debugm_CSX->xml"); //*************** setup operator ************// - SetupOperator(FDTD_Opts); + if (SetupOperator(FDTD_Opts)==false) + return 2; if (FDTD_Op->SetGeometryCSX(m_CSX)==false) return(2);