field-processings: fixed initializing disabled processes

pull/1/head
Thorsten Liebig 2011-02-09 12:28:28 +01:00
parent 5b2e9b1ac9
commit 0bdd05fb3a
2 changed files with 4 additions and 0 deletions

View File

@ -75,6 +75,8 @@ string ProcessFields::GetFieldNameByType(DumpType type)
void ProcessFields::InitProcess() void ProcessFields::InitProcess()
{ {
if (Enabled==false) return;
CalcMeshPos(); CalcMeshPos();
} }

View File

@ -33,6 +33,8 @@ ProcessFieldsTD::~ProcessFieldsTD()
void ProcessFieldsTD::InitProcess() void ProcessFieldsTD::InitProcess()
{ {
if (Enabled==false) return;
ProcessFields::InitProcess(); ProcessFields::InitProcess();
if (m_fileType==HDF5_FILETYPE) if (m_fileType==HDF5_FILETYPE)