Skip to content

Commit 30d3675

Browse files
committed
[Ordering] Remove deprecated 'ordering' datafield
1 parent 328a525 commit 30d3675

File tree

1 file changed

+0
-37
lines changed

1 file changed

+0
-37
lines changed

Sofa/Component/LinearSolver/Ordering/src/sofa/component/linearsolver/ordering/OrderingMethodAccessor.h

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -87,43 +87,6 @@ class OrderingMethodAccessor : public TBase
8787
}
8888
}
8989

90-
void parse(sofa::core::objectmodel::BaseObjectDescription* arg) override
91-
{
92-
Inherit1::parse(arg);
93-
94-
//To remove for v24.12:
95-
if (arg->getAttribute("ordering"))
96-
{
97-
//map storing the correspondence between the ordering method name
98-
//as a Data, and its associated component
99-
static const std::map<std::string, std::string> orderingMethodComponentsMap
100-
{
101-
{"Natural", "NaturalOrderingMethod"},
102-
{"AMD", "AMDOrderingMethod"},
103-
{"COLAMD", "COLAMDOrderingMethod"},
104-
{"Metis", "MetisOrderingMethod"}
105-
};
106-
107-
std::stringstream message;
108-
message << "The Data 'ordering' is deprecated. Instead use a "
109-
"component of type OrderingMethod. The list of available methods are: "
110-
<< core::ObjectFactory::getInstance()->listClassesDerivedFrom<sofa::core::behavior::BaseOrderingMethod>();
111-
112-
const std::string methodName = arg->getAttribute("ordering");
113-
const auto it = orderingMethodComponentsMap.find(methodName);
114-
if (it != orderingMethodComponentsMap.end())
115-
{
116-
desiredMethod = it->second;
117-
118-
message << ". According to the value of the Data 'ordering', the "
119-
"object factory will try to instantiate the component '"
120-
<< desiredMethod << "'.";
121-
}
122-
123-
msg_warning() << message.str();
124-
}
125-
}
126-
12790
private:
12891

12992
void setupCreatedOrderingMethod(core::behavior::BaseOrderingMethod* createdOrderingMethod)

0 commit comments

Comments
 (0)