From 6436bc4ca5156e1a11fbb7f76716eb72b4efcd27 Mon Sep 17 00:00:00 2001 From: SONOLET Aymeric Date: Tue, 25 Jun 2024 09:54:34 +0200 Subject: [PATCH] fix: windows compilation --- src/MEDLoader/Test/CrackAlgoTest.cxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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(); -- 2.39.2