Re: [Libmesh-users] NDEBUG flag missing in optimized LibMesh headers

2016-03-10 Thread Kirk, Benjamin (JSC-EG311)
On Mar 10, 2016, at 10:11 AM, Harshad Sahasrabudhe mailto:[email protected]>> wrote: My question is: should I provide -DNDEBUG flag while compiling my code? https://libmesh.github.io/installation.html Check the bottom - beyond even NDEBUG, we recommend asking libMesh for its compiler flag

[Libmesh-users] NDEBUG flag missing in optimized LibMesh headers

2016-03-10 Thread Harshad Sahasrabudhe
Hi, The NDEBUG define is not present in the libMesh headers even when I compile libMesh 0.9.5 in optimized mode. My question is: should I provide -DNDEBUG flag while compiling my code? I can reproduce the error as follows: *Compiling petsc_vector_test.cpp with NDEBUG flag gives me expected behavi