From eb2ed98e027e89c791d488dc1258824790e4af39 Mon Sep 17 00:00:00 2001 From: Henry Swantner Date: Tue, 14 May 2019 17:30:10 -0600 Subject: [PATCH] Correct ifdef DEBUG to ifndef NDEBUG --- .../src/Trilinos_Util_ReadHpc2Epetra.cpp | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/packages/triutils/src/Trilinos_Util_ReadHpc2Epetra.cpp b/packages/triutils/src/Trilinos_Util_ReadHpc2Epetra.cpp index d3c71292f5e0..78edeb792179 100644 --- a/packages/triutils/src/Trilinos_Util_ReadHpc2Epetra.cpp +++ b/packages/triutils/src/Trilinos_Util_ReadHpc2Epetra.cpp @@ -80,7 +80,7 @@ void Trilinos_Util_ReadHpc2Epetra_internal( exit(1); } int_type numGlobalEquations, total_nnz; -#ifdef DEBUG +#ifndef NDEBUG int cnt; #endif // mfh 24 Mar 2015: We use temporaries of the type corresponding to @@ -91,12 +91,12 @@ void Trilinos_Util_ReadHpc2Epetra_internal( // the warning is easy to fix. if(sizeof(int) == sizeof(int_type)) { int numGlobalEquations_int, total_nnz_int; -#ifdef DEBUG +#ifndef NDEBUG cnt = #endif fscanf(in_file,"%d",&numGlobalEquations_int); assert(cnt > 0); -#ifdef DEBUG +#ifndef NDEBUG cnt = #endif fscanf(in_file,"%d",&total_nnz_int); @@ -107,12 +107,12 @@ void Trilinos_Util_ReadHpc2Epetra_internal( } else if(sizeof(long long) == sizeof(int_type)) { long long numGlobalEquations_ll, total_nnz_ll; -#ifdef DEBUG +#ifndef NDEBUG cnt = #endif fscanf(in_file,"%lld",&numGlobalEquations_ll); assert(cnt > 0); -#ifdef DEBUG +#ifndef NDEBUG cnt = #endif fscanf(in_file,"%lld",&total_nnz_ll); @@ -148,7 +148,7 @@ void Trilinos_Util_ReadHpc2Epetra_internal( int max_nnz = 0; for (int i=0; i