Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Merge branch 'debug'
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Nov 29, 2023
2 parents 728ee14 + ec090f4 commit e4cfdf8
Show file tree
Hide file tree
Showing 6 changed files with 156 additions and 89 deletions.
18 changes: 8 additions & 10 deletions cmake/Modules/SetSwiftestFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -412,21 +412,19 @@ IF (CMAKE_BUILD_TYPE STREQUAL "DEBUG" OR CMAKE_BUILD_TYPE STREQUAL "TESTING" )
SET_COMPILE_FLAG(CMAKE_Fortran_FLAGS_DEBUG "${CMAKE_Fortran_FLAGS_DEBUG}"
Fortran "-Wno-unused-dummy-argument" # GNU
)
# Tells the compiler to issue compile-time messages for nonstandard language elements (Fortran 2018).
SET_COMPILE_FLAG(CMAKE_Fortran_FLAGS_DEBUG "${CMAKE_Fortran_FLAGS_DEBUG}"
Fortran "-fstd=f2018" # GNU
)
# Traceback
SET_COMPILE_FLAG(CMAKE_Fortran_FLAGS_DEBUG "${CMAKE_Fortran_FLAGS_DEBUG}"
Fortran "-fbacktrace" # GNU (gfortran)
)
# Sanitize
SET_COMPILE_FLAG(CMAKE_Fortran_FLAGS_DEBUG "${CMAKE_Fortran_FLAGS_DEBUG}"
Fortran "-fsanitize=address, undefined" # Gnu
)
SET_COMPILE_FLAG(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG}"
C "-fsanitize=address, undefined" # Gnu
)
IF (NOT APPLE)
SET_COMPILE_FLAG(CMAKE_Fortran_FLAGS_DEBUG "${CMAKE_Fortran_FLAGS_DEBUG}"
Fortran "-fsanitize=address, undefined" # Gnu
)
SET_COMPILE_FLAG(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG}"
C "-fsanitize=address, undefined" # Gnu
)
ENDIF()
# Check everything
SET_COMPILE_FLAG(CMAKE_Fortran_FLAGS_DEBUG "${CMAKE_Fortran_FLAGS_DEBUG}"
Fortran "-fcheck=all" # GNU
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "swiftest"
version = "2023.10.3"
version = "2023.11.0"
authors=[
{name = 'David A. Minton', email='daminton@purdue.edu'},
{name = 'Carlisle Wishard'},
Expand Down Expand Up @@ -48,6 +48,7 @@ Repository = 'https://github.itap.purdue.edu/MintonGroup/swiftest'
requires = [
"scikit-build-core",
"cython>=3.0.0",
"pyproject_metadata",
"pytest",
]
build-backend = "scikit_build_core.build"
Expand Down
2 changes: 1 addition & 1 deletion src/globals/globals_module.f90
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ module globals
integer(I4B), parameter :: UPPERCASE_OFFSET = iachar('A') - iachar('a') !! ASCII character set parameter for lower to upper
!! conversion - offset between upper and lower

character(*), parameter :: VERSION = "2023.10.3" !! Swiftest version
character(*), parameter :: VERSION = "2023.11.0" !! Swiftest version

!> Symbolic name for integrator types
character(*), parameter :: UNKNOWN_INTEGRATOR = "UKNOWN INTEGRATOR"
Expand Down
2 changes: 1 addition & 1 deletion src/rmvs/rmvs_step.f90
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module subroutine rmvs_step_system(self, param, t, dt)
logical :: lencounter, lfirstpl
real(DP), dimension(:,:), allocatable :: rbeg, rend, vbeg

if (self%tp%nbody == 0) then
if ((self%tp%nbody == 0) .or. (self%pl%nbody == 0)) then
call whm_step_system(self, param, t, dt)
else
select type(cb => self%cb)
Expand Down
Loading

0 comments on commit e4cfdf8

Please sign in to comment.