From: SONOLET Aymeric Date: Tue, 25 Jun 2024 07:54:34 +0000 (+0200) Subject: fix: windows compilation X-Git-Tag: V9_13_0b1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6436bc4ca5156e1a11fbb7f76716eb72b4efcd27;p=tools%2Fmedcoupling.git fix: windows compilation --- diff --git a/src/MEDLoader/Test/CrackAlgoTest.cxx b/src/MEDLoader/Test/CrackAlgoTest.cxx index 7fdb906d8..91d683963 100644 --- a/src/MEDLoader/Test/CrackAlgoTest.cxx +++ b/src/MEDLoader/Test/CrackAlgoTest.cxx @@ -22,11 +22,12 @@ #include #include +#include +#include #include #include #include -#include #include #include #include @@ -488,7 +489,7 @@ pair CrackAlgoTest::TestCrack( const MCU f2dup = mm_init->getGroup(-1, grp_name); mm_init->write(test_name + "_in.med", 2); - const auto cellOld2NewNode = CrackAlgo::Compute(mm_init, grp_name); + const auto cellOld2NewNode = mm_init->crackAlong(grp_name); mm_init->write(test_name + "_out.med", 2); const MCU f2dup_b = mm_init->getGroup(-1, grp_name); @@ -498,7 +499,7 @@ pair CrackAlgoTest::TestCrack( CheckM1Mesh(f2dup, f2dup_b) }; - CrackAlgo::OpenCrack(mm_init, cellOld2NewNode); + mm_init->openCrack(cellOld2NewNode, 0.9); mm_init->write(test_name + "_cracked.med", 2); return res; @@ -607,7 +608,7 @@ CrackAlgoTest::CheckM0Mesh( DAI desc(DataArrayIdType::New()), descIdx(DataArrayIdType::New()), revDesc(DataArrayIdType::New()), revDescIdx(DataArrayIdType::New()); MCU mf = m0->buildDescendingConnectivity(desc, descIdx, revDesc, revDescIdx); - CrackAlgo::Map2Set c2c; + std::unordered_map> c2c; const mcIdType * descIdx_ptr = descIdx->begin(); const mcIdType * desc_ptr = desc->begin();