From 1467b4f344e7a29b3227b0419eb2cb357579eeaf Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Mon, 24 Jun 2013 15:00:44 +0000 Subject: [PATCH] allow "Loop integer" option --- Common/GmshMessage.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Common/GmshMessage.cpp b/Common/GmshMessage.cpp index 055a87cc73..ea648eba9c 100644 --- a/Common/GmshMessage.cpp +++ b/Common/GmshMessage.cpp @@ -943,7 +943,12 @@ void Msg::ExchangeOnelabParameter(const std::string &key, ps[0].setChoices(fopt["Choices"]); if(copt.count("Choices")) ps[0].setChoiceLabels(copt["Choices"]); } - if(noLoop && copt.count("Loop")) ps[0].setAttribute("Loop", copt["Loop"][0]); + if(noLoop && copt.count("Loop")) // for backward compatibity + ps[0].setAttribute("Loop", copt["Loop"][0]); + if(noLoop && fopt.count("Loop")) + ps[0].setAttribute("Loop", (fopt["Loop"][0] == 3.) ? "3" : + (fopt["Loop"][0] == 2.) ? "2" : + (fopt["Loop"][0] == 1.) ? "1" : ""); if(noGraph && copt.count("Graph")) ps[0].setAttribute("Graph", copt["Graph"][0]); if(noClosed && copt.count("Closed")) // for backward compatibility ps[0].setAttribute("Closed", copt["Closed"][0]); -- GitLab