change in how the flag "CellConstantMaterial" is handled

Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
pull/10/head
Thorsten Liebig 2013-08-23 17:29:10 +02:00
parent 6c248efa3a
commit ad7d3a5ca3
2 changed files with 6 additions and 3 deletions

View File

@ -72,6 +72,7 @@ openEMS::openEMS()
m_DumpStats = false; m_DumpStats = false;
endCrit = 1e-6; endCrit = 1e-6;
m_OverSampling = 4; m_OverSampling = 4;
m_CellConstantMaterial=false;
m_engine = EngineType_Multithreaded; //default engine type m_engine = EngineType_Multithreaded; //default engine type
m_engine_numThreads = 0; m_engine_numThreads = 0;
@ -654,9 +655,10 @@ int openEMS::SetupFDTD(const char* file)
if (SetupOperator(FDTD_Opts)==false) if (SetupOperator(FDTD_Opts)==false)
return 2; return 2;
int cellConstantMaterial=0; if (FDTD_Opts->QueryIntAttribute("CellConstantMaterial",&ihelp)==TIXML_SUCCESS)
FDTD_Opts->QueryIntAttribute("CellConstantMaterial",&cellConstantMaterial); m_CellConstantMaterial=(ihelp==1);
if (cellConstantMaterial==1)
if (m_CellConstantMaterial)
{ {
FDTD_Op->SetCellConstantMaterial(); FDTD_Op->SetCellConstantMaterial();
if (g_settings.GetVerboseLevel()>0) if (g_settings.GetVerboseLevel()>0)

View File

@ -88,6 +88,7 @@ protected:
double endCrit; double endCrit;
int m_OverSampling; int m_OverSampling;
bool m_CellConstantMaterial;
Operator* FDTD_Op; Operator* FDTD_Op;
Engine* FDTD_Eng; Engine* FDTD_Eng;
ProcessingArray* PA; ProcessingArray* PA;