Skip to content

Commit 8dbb749

Browse files
committed
add PUMI_ prefix to DEBUG_FPP macro
- ma/maSnapper.cc: Angel added DEBUG_FPP in 62b50f2. Change it to PUMI_DEBUG_FPP. - CMakeLists.txt: replace PUMI_ENABLE_FPP with PUMI_DEBUG_FPP since DO_FPP no longer exists. Signed-off-by: Aiden Woodruff <woodra@rpi.edu>
1 parent dc51fd5 commit 8dbb749

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

CMakeLists.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,13 @@ if(PUMI_ENABLE_CAPSTONE)
125125
endif()
126126

127127
option(
128-
PUMI_ENABLE_FPP
129-
"Build with snapping to first problem plane"
130-
${ENABLE_FPP} # Inherit default value
128+
PUMI_DEBUG_FPP
129+
"Build with debugging for snapping to first problem plane"
130+
${DEBUG_FPP} # Inherit default value
131131
)
132-
message(STATUS "PUMI_ENABLE_FPP: ${PUMI_ENABLE_FPP}")
133-
if(PUMI_ENABLE_FPP)
134-
add_definitions(-DPUMI_DO_FPP)
132+
message(STATUS "PUMI_DEBUG_FPP: ${PUMI_DEBUG_FPP}")
133+
if(PUMI_DEBUG_FPP)
134+
add_definitions(-DPUMI_DEBUG_FPP)
135135
endif()
136136

137137
macro(scorec_export_library target)

ma/maSnapper.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ bool Snapper::requestLocality(apf::CavityOp* o)
7070

7171
//Write snapping data to files for debugging purposes
7272
//In order to view relevant information it is neccessary to hide entities with relevent flag in vtk viewer
73-
#if defined(DEBUG_FPP)
73+
#if defined(PUMI_DEBUG_FPP)
7474
static void flagAndPrint(Adapt* a, Entity* ent, int dim, const char* name)
7575
{
7676
setFlag(a, ent, CHECKED);
@@ -80,7 +80,7 @@ static void flagAndPrint(Adapt* a, Entity* ent, int dim, const char* name)
8080
#endif
8181

8282
//Write snapping data to files for debugging purposes
83-
#if defined(DEBUG_FPP)
83+
#if defined(PUMI_DEBUG_FPP)
8484
static void printFPP(Adapt* a, FirstProblemPlane* FPP)
8585
{
8686
ma_dbg::addTargetLocation(a, "snap_target");
@@ -598,7 +598,7 @@ bool Snapper::trySimpleSnap()
598598
apf::Up invalid;
599599
return tryReposition(adapt, vert, snapTag, invalid);
600600
}
601-
#if defined(DEBUG_FPP)
601+
#if defined(PUMI_DEBUG_FPP)
602602
static int DEBUGFAILED=0;
603603
#endif
604604

0 commit comments

Comments
 (0)