fix in handling extensions, delete/cleanup rejected extensions
parent
e1376be1e5
commit
a7380816e8
|
@ -307,7 +307,10 @@ void Operator_Cylinder::ApplyMagneticBC(bool* dirs)
|
|||
void Operator_Cylinder::AddExtension(Operator_Extension* op_ext)
|
||||
{
|
||||
if (op_ext->IsCylinderCoordsSave(CC_closedAlpha, CC_R0_included))
|
||||
m_Op_exts.push_back(op_ext);
|
||||
Operator_Multithread::AddExtension(op_ext);
|
||||
else
|
||||
{
|
||||
delete op_ext;
|
||||
cerr << "Operator_Cylinder::AddExtension: Warning: Operator extension \"" << op_ext->GetExtensionName() << "\" is not compatible with cylinder-coords!! skipping...!" << endl;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -498,6 +498,7 @@ void Operator_CylinderMultiGrid::AddExtension(Operator_Extension* op_ext)
|
|||
//check whether extension is save to use in multi-grid
|
||||
if (op_ext->IsCylindricalMultiGridSave(false)==false)
|
||||
{
|
||||
delete op_ext;
|
||||
cerr << "Operator_CylinderMultiGrid::AddExtension: Warning: Operator extension \"" << op_ext->GetExtensionName() << "\" is not compatible with cylindrical multi-grids!! skipping...!" << endl;
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue