Skip to content

Commit f5afd58

Browse files
authored
Merge pull request #520 from SCOREC/ac/fix-failing-tests
Fix Failing Adapt Tests
2 parents 62b50f2 + 18505f4 commit f5afd58

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

mds/mds.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,11 @@ static mds_id add_ent(struct mds* m, int t, mds_id* from)
579579

580580
static void check_ent(struct mds* m, mds_id e)
581581
{
582-
#ifndef NDEBUG
582+
#ifdef NDEBUG // release build
583+
/* good luck ! */
584+
(void)m;
585+
(void)e;
586+
#else //debug build
583587
int t;
584588
mds_id i;
585589
PCU_ALWAYS_ASSERT(e >= 0);
@@ -588,10 +592,6 @@ static void check_ent(struct mds* m, mds_id e)
588592
i = INDEX(e);
589593
PCU_ALWAYS_ASSERT(i < m->end[t]);
590594
PCU_ALWAYS_ASSERT(m->free[t][i] == MDS_LIVE);
591-
#else
592-
/* good luck ! */
593-
(void)m;
594-
(void)e;
595595
#endif
596596
}
597597

mds/mdsCGNS.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@
4444

4545
namespace
4646
{
47-
#ifndef NDEBUG // debug settings, cmake double negative....
48-
const bool debugOutput = true; // probably will not get away with c++17
49-
//static constexpr bool debugOutput = true; // probably will not get away with c++17
50-
#else // optimised setting
47+
#ifdef NDEBUG // optimised build
5148
const bool debugOutput = false; // probably will not get away with c++17
5249
//static constexpr bool debugOutput = false; // probably will not get away with c++17
50+
#else // debug build
51+
const bool debugOutput = true; // probably will not get away with c++17
52+
//static constexpr bool debugOutput = true; // probably will not get away with c++17
5353
#endif
5454

5555
static std::string SupportedCGNSElementTypeToString(const CGNS_ENUMT(ElementType_t) & elementType)

pumi-meshes

test/aniso_adapt.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ ma::Mesh* coarsenForced(ma::Mesh* m)
9191
double averageBefore = ma::getAverageEdgeLength(m);
9292
int edgesBefore = countEdges(m);
9393

94-
ma::coarsenMultiple(a);
94+
ma::coarsen(a);
9595

9696
measureQuality(m, avgQualAfter, minQualAfter);
9797

@@ -123,7 +123,7 @@ ma::Mesh* coarsenRegular(ma::Mesh* m)
123123
double averageBefore = ma::getAverageEdgeLength(m);
124124
int edgesBefore = countEdges(m);
125125

126-
ma::coarsenMultiple(a);
126+
ma::coarsen(a);
127127

128128
measureQuality(m, avgQualAfter, minQualAfter);
129129

test/cgns.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,10 @@ std::string doit(apf::CGNSBCMap &cgnsBCMap, const std::string &argv1, const std:
192192

193193
//std::cout << "FOUND " << found << " " << path.size() << " " << path << " " << index << std::endl;
194194

195-
#ifndef NDEBUG // debug settings, cmake double negative....
196-
const auto prefix = path.substr(index) + "_debug" + post;
197-
#else // optimised setting
195+
#ifdef NDEBUG //release build
198196
const auto prefix = path.substr(index) + "_release" + post;
197+
#else //debug build
198+
const auto prefix = path.substr(index) + "_debug" + post;
199199
#endif
200200

201201
const auto dim = m->getDimension();

0 commit comments

Comments
 (0)