[aspect-devel] Compile aspect without optimization

Wolfgang Bangerth bangerth at tamu.edu
Sun Jun 25 22:41:38 PDT 2017


On 06/25/2017 10:22 PM, Lev Karatun wrote:
> 
> I'm trying to debug something in NetBeans but for some variables it says 
> "value has been optimized out" even though it's compiled in Debug mode. So I 
> was wondering how I can compile Aspect without optimization? I tried to do 
> "make edit_cache" and set CMAKE_CXX_FLAGS_DEBUG to "-O0" but it didn't do the 
> trick.

ASPECT gets its compile flags from deal.II. You'll have to reinstall deal.II 
first and call deal.II's cmake with
   -DDEAL_II_HAVE_FLAG_Og=false
I have the same problem on my system, and using this flag solved the problem.

Best
  W.


-- 
------------------------------------------------------------------------
Wolfgang Bangerth          email:                 bangerth at colostate.edu
                            www: http://www.math.colostate.edu/~bangerth/



More information about the Aspect-devel mailing list