From bb3e73f6bf23eba9f7427e2f6526b2c11d1018e3 Mon Sep 17 00:00:00 2001 From: Thorsten Liebig Date: Sat, 30 Jul 2016 22:04:15 +0200 Subject: [PATCH] fix default over sampling Signed-off-by: Thorsten Liebig --- openems.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/openems.cpp b/openems.cpp index 72476d3..5c5dc28 100644 --- a/openems.cpp +++ b/openems.cpp @@ -715,9 +715,7 @@ bool openEMS::Parse_XML_FDTDSetup(TiXmlElement* FDTD_Opts) ihelp = 0; FDTD_Opts->QueryIntAttribute("OverSampling",&ihelp); - if (ihelp<2) - this->SetOverSampling(2); - else + if (ihelp>1) this->SetOverSampling(ihelp); // check for cell constant material averaging