Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/danieljprice/phantom
Browse files Browse the repository at this point in the history
  • Loading branch information
danieljprice committed Aug 5, 2020
2 parents e079ac0 + 02cdfc7 commit 69b31ba
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/main/utils_cpuinfo.f90
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ subroutine get_cpuinfo(ncpu,ncpureal,cpuspeed,cpumodel,cachesize,ierr)
!
ierr = 0
ncpu = 0
ncpureal = 0
cpuspeed = 0.
cpumodel = ''
cachesize = ''
inquire(file='/proc/cpuinfo',exist=iexist)
if (iexist) then
open(unit=iunit,file='/proc/cpuinfo',status='old',iostat=ierr)
Expand Down
7 changes: 6 additions & 1 deletion src/tests/test_link.F90
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,15 @@ subroutine test_link(ntests,npass)
integer :: nfailed(8)
logical :: iactivei,iactivej,activecell
real, allocatable :: xyzcache(:,:)
integer :: listneigh(maxneigh)
integer, allocatable :: listneigh(:)
character(len=1), dimension(3), parameter :: xlabel = (/'x','y','z'/)

if (id==master) write(*,"(a,/)") '--> TESTING LINKLIST / NEIGHBOUR FINDING'
!
!--allocate memory for neighbour list
!
allocate(listneigh(maxneigh))
!
!--set up a random particle distribution
!
npart = 0
Expand Down Expand Up @@ -436,6 +440,7 @@ subroutine test_link(ntests,npass)
enddo

if (allocated(xyzcache)) deallocate(xyzcache)
deallocate(listneigh)

if (id==master) write(*,"(/,a,/)") '<-- LINKLIST TEST COMPLETE'

Expand Down

0 comments on commit 69b31ba

Please sign in to comment.