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

Commit

Permalink
Removed gfortran flag that caused a bug in the old version on the clu…
Browse files Browse the repository at this point in the history
…ster. Added a check to an allocate statement to deallocate the array first
  • Loading branch information
daminton committed May 27, 2021
1 parent 7ee863e commit d3fc7b9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile.Defines
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ FORTRAN = ifort
FFLAGS = -init=snan,arrays -traceback -no-wrap-margin -O3 -g -shared-intel -debug inline-debug-info -qopt-report=5 $(SIMDVEC) $(STRICTREAL) $(PAR)


GDEBUG = -ggdb -g3 -Og -fbacktrace -fbounds-check -fcheck=all -ffpe-trap=zero,invalid,overflow,underflow,denormal
GDEBUG = -ggdb -g3 -Og -fbacktrace -fbounds-check
GPRODUCTION = -O3
GPAR = -fopenmp -ftree-parallelize-loops=4
GMEM = -fsanitize=undefined -fsanitize=address -fsanitize=leak
Expand Down

This file was deleted.

1 change: 1 addition & 0 deletions src/rmvs/rmvs_step.f90
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,7 @@ subroutine rmvs_end_planetocentric(pl, cb, tp)
associate(cbenci => pl%planetocentric(i)%cb, &
tpenci => pl%planetocentric(i)%tp, &
plenci => pl%planetocentric(i)%pl)
if (allocated(tpind)) deallocate(tpind)
allocate(tpind(nenc(i)))
! Index array of encountering test particles
if (allocated(encmask)) deallocate(encmask)
Expand Down

0 comments on commit d3fc7b9

Please sign in to comment.