Skip to content

Commit

Permalink
Removed obsolete tally components.
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Dec 6, 2016
1 parent 81473d0 commit a709c80
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/main/CTEM.f90
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ program CTEM
! Distribution arrays
real(DP),dimension(:,:),allocatable :: prod,vdist,pdist,crtscl,truedist,obsdist,truelist
real(DP),dimension(:),allocatable :: obslist
real(SP),dimension(:),allocatable :: original_depth,current_depth,p_score,deviation_sigma
real(SP),dimension(:),allocatable :: depthdiam
real(SP),dimension(:,:),allocatable :: oposlist
integer(I8B),dimension(:),allocatable :: production_list
! Miscellaneous variables
Expand Down Expand Up @@ -131,12 +131,10 @@ program CTEM
write(*,*) "Surface-affecting craters generated: ",ntrue
write(*,*) "Visible craters generated: ",vistrue
end if
call crater_tally_observed(user,surf,domain,nkilled,onum,&
obsdist,obslist,oposlist,original_depth,current_depth,deviation_sigma,p_score)
call crater_tally_observed(user,surf,domain,nkilled,onum,obsdist,obslist,oposlist,depthdiam)
ntotkilled = ntotkilled + nkilled
write(*,*) 'Craters killed during tally: ',ntotkilled
call io_write_tally(truedist,truelist(:,1:ntrue),obsdist,obslist,oposlist,&
original_depth,current_depth,deviation_sigma,p_score)
call io_write_tally(truedist,truelist(:,1:ntrue),obsdist,obslist,oposlist,depthdiam)
if (.not.user%tallyonly) then
write(*,*) "Writing surface files"
call io_write_surf(user,surf)
Expand All @@ -160,7 +158,7 @@ program CTEM
! Deallocate all the allocatables
deallocate(seedarr)
deallocate(surf,prod,vdist,pdist,crtscl,truedist,truelist,obsdist,obslist,nflux,production_list)
deallocate(oposlist,current_depth,original_depth,p_score,deviation_sigma)
deallocate(oposlist,depthdiam)

!$ t2 = omp_get_wtime()
!$ write(*,*) 'Timing information'
Expand Down

0 comments on commit a709c80

Please sign in to comment.