Skip to content

Commit

Permalink
changes to files since the SVN-GitHub switchover
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed May 10, 2017
1 parent b8c4e80 commit 9a0fdaf
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
bin_PROGRAMS = CTEM
#ifort optimized flags
#AM_FCFLAGS = -O3 -openmp -parallel -xHost -ipo -assume byterecl -m64 -heap-arrays -FR
AM_FCFLAGS = -O3 -openmp -parallel -xHost -ipo -assume byterecl -m64 -heap-arrays -FR
#AM_FCFLAGS = -O3 -openmp -parallel -assume byterecl -m64 -heap-arrays -FR
#ifort debug flags
#AM_FCFLAGS = -O3 -p -g -openmp -debug all -traceback -CB -assume byterecl -m64 -heap-arrays -FR

#gfortran optimized flags
AM_FCFLAGS = -O3 -fopenmp -ffree-form -g -fbounds-check -fbacktrace
#AM_FCFLAGS = -O3 -fopenmp -ffree-form -g -fbounds-check -fbacktrace
#gfortran debug flags
#AM_FCFLAGS = -O0 -g -fopenmp -fbounds-check -Wall -Warray-bounds -Warray-temporaries -Wimplicit-interface -ffree-form

Expand Down Expand Up @@ -55,6 +55,7 @@ io/io_updatePbar.f90\
io/io_resetPbar.f90\
io/io_splash.f90\
ejecta/ejecta_emplace.f90\
ejecta/ejecta_ray_pattern.f90\
ejecta/ejecta_blanket.f90\
ejecta/ejecta_blanket_func.f90\
ejecta/ejecta_thickness.f90\
Expand Down
12 changes: 12 additions & 0 deletions src/ejecta/module_ejecta.f90
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,18 @@ subroutine ejecta_emplace(user,surf,crater,domain,ejb,ejtble,deltaMtot)
end subroutine ejecta_emplace
end interface

interface
subroutine ejecta_ray_pattern(user,surf,crater,inc,xi,xf,yi,yf,ejdistribution)
use module_globals
implicit none
type(usertype),intent(in) :: user
type(surftype),dimension(:,:),intent(in) :: surf
type(cratertype),intent(in) :: crater
integer(I4B),intent(in) :: inc,xi,xf,yi,yf
real(DP),dimension(xi:xf,yi:yf),intent(out) :: ejdistribution
end subroutine ejecta_ray_pattern
end interface

interface
subroutine ejecta_rootfind(user,crater,domain,erad,lrad,vejsq,ejang,firstrun)
use module_globals
Expand Down
3 changes: 2 additions & 1 deletion src/globals/module_globals.f90
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ module module_globals
real(DP) :: ejrim ! ejecta height at crater rim
real(DP) :: cxexp,cxtran ! simple to complex scaling parameters
real(DP) :: kdiffterm, saccelterm ! seismic diffusion and accelleration terms
real(DP) :: continuous ! Size of the continuous ejecta blanket
! Pixel domain properties
integer(I4B) :: xlpx,ylpx ! Crater center in pixels
integer(I4B) :: fcratpx,fradpx,rimdispx,ejdispx
Expand Down Expand Up @@ -264,7 +265,7 @@ module module_globals
character(*),parameter :: MASSFILE = 'impactmass.dat'

! Global variables
integer(I4B),parameter :: PBCLIM = 3 ! periodic boundary condition limit
integer(I4B),parameter :: PBCLIM = 1 ! periodic boundary condition limit
integer(I4B),parameter :: SMALLESTCOUNTABLE = 5 ! Minimum pixel diameter for a crater to be considered countable
real(DP),parameter :: SMALLESTEJECTA = 1.5 ! Minimum number of pixels from center of crater for an ejecta to have any surface effects
integer(I4B),parameter :: TRUECOLS = 6 ! Number of columns in the true crater count array
Expand Down

0 comments on commit 9a0fdaf

Please sign in to comment.