Skip to content

Commit

Permalink
Removed test code that causes CTEM to stop during an otherwise normal…
Browse files Browse the repository at this point in the history
… run
  • Loading branch information
Austin Michael Blevins committed Nov 21, 2022
1 parent 19e4cf2 commit 546615a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ OPTREPORT = -qopt-report=5
IPRODUCTION = -g -traceback -no-wrap-margin -assume byterecl -O3 -qopt-prefetch=0 -sox $(PAR) $(SIMDVEC) $(HEAPARR)
#IDEBUG = -O0 -g -traceback -debug all -nogen-interfaces -assume byterecl -m64 -heap-arrays -FR -no-pie -no-ftz -fpe-all=0 -mp1 -fp-model strict -fpe0 -align all -pad -ip -prec-div -prec-sqrt -assume protect-parens -CB -no-wrap-margin -init=snan,arrays
IDEBUG = -O0 -g -traceback -debug all -nogen-interfaces -assume byterecl -m64 -heap-arrays -FR -no-pie -no-ftz -fpe-all=0 -mp1 -fp-model strict -fpe0 -align all -pad -ip -prec-sqrt -assume protect-parens -CB -no-wrap-margin -init=snan,arrays
AM_FCFLAGS = $(IDEBUG)
AM_FCFLAGS = $(IPRODUCTION)
#ifort debug flags

#gfortran optimized flags
Expand Down
2 changes: 1 addition & 1 deletion src/ejecta/ejecta_ray_func.f90
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function ejecta_ray_func(theta,thetar,r,n,w) result(ans)
c = w / r
b = thetar
dtheta = min(2*pi - abs(theta - b),abs(theta - b))
a = sqrt(2 * pi) / (n * c * erf(pi / (2 *sqrt(2._DP) * c)))
a = sqrt(2 * pi) / (n * c * erf(pi / (2 *sqrt(2._DP) * c))) !this is the intensity function
ans = a * exp(-dtheta**2 / (2 * c**2))

!return
Expand Down
8 changes: 4 additions & 4 deletions src/regolith/regolith_streamtube.f90
Original file line number Diff line number Diff line change
Expand Up @@ -240,10 +240,10 @@ subroutine regolith_streamtube(user,surf,crater,domain,ejb,ejtble,xp,yp,xpi,ypi,
tots = 0.0_DP
depthb = crater%imp / 2.0_DP

if (eradc<=user%testimp) then
write(*,*) lrad/crater%frad, user%testimp, crater%frad, rm, deltar, eradc, eradi, erado, ebh, newlayer%meltfrac
stop
end if
! if (eradc<=user%testimp) then
! write(*,*) lrad/crater%frad, user%testimp, crater%frad, rm, deltar, eradc, eradi, erado, ebh, newlayer%meltfrac
! stop
! end if

call regolith_shock_damage_zone(crater,rm,eradi,depthb,xsfints)

Expand Down

0 comments on commit 546615a

Please sign in to comment.