polishing

thread sanitizer throws warnings, probably because off 'terminallyIll'
This commit is contained in:
Martin Diehl 2021-03-27 18:00:13 +01:00
parent ee3d3b75c7
commit 20c9549198
2 changed files with 5 additions and 3 deletions

View File

@ -131,8 +131,10 @@ set (DEBUG_FLAGS "${DEBUG_FLAGS} -fcheck=all")
set (DEBUG_FLAGS "${DEBUG_FLAGS} -fstack-protector-all") set (DEBUG_FLAGS "${DEBUG_FLAGS} -fstack-protector-all")
# Inserts a guard variable onto the stack frame for all functions # Inserts a guard variable onto the stack frame for all functions
# Detect memory leaks set (DEBUG_FLAGS "${DEBUG_FLAGS} -fsanitize=undefined")
# -fsanitize=address # detect undefined behavior
# Additional options
# -fsanitize=address,leak,thread
#------------------------------------------------------------------------------------------------ #------------------------------------------------------------------------------------------------
# precision settings # precision settings

View File

@ -1819,7 +1819,7 @@ subroutine storeGeometry(ph)
integer, intent(in) :: ph integer, intent(in) :: ph
integer :: ip, el, ce, co integer :: ce, co
real(pReal), dimension(:), allocatable :: V real(pReal), dimension(:), allocatable :: V