Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
real craters are still emplaced for low maxcrat values
  • Loading branch information
Austin Blevins committed Apr 26, 2021
1 parent 71bce11 commit d61509f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion examples/global-lunar-bombardment/ctem.in
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ doseismic F ! Perform seismic shaking calcul

! Optional inputF These have internally set default values that work reasonable well. Comment them out with
deplimit 9e99 ! Depth limit for craters (m) - Default is to ignore.
maxcrat 1.00e0 ! Fraction of gridsize that maximum crater can be - Default 1.0
maxcrat 0.10e0 ! Fraction of gridsize that maximum crater can be - Default 1.0
killatmaxcrater F ! Stop the run if a crater larger than the maximum is produced - Default F
basinimp 35.0e3 ! Size of impactor to switch to lunar basin scaling law - Default is to ignore
docollapse T ! Do slope collapse - Default T
Expand Down
22 changes: 12 additions & 10 deletions src/crater/crater_populate.f90
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,18 @@ subroutine crater_populate(user,surf,crater,domain,prod,production_list,vdist,nt
call crater_generate(user,crater,domain,prod,production_list,vdist,surf)
if (user%testflag) write(*,*) 'Dcrat = ',crater%fcrat
if (user%testflag) write(*,*) 'Dtrans = ',crater%rad*2
if (crater%fcrat > domain%biggest_crater) then ! End the run if the crater is too big
if ( user%testflag .eqv. .false. ) then
if (user%killatmaxcrater) then
fracdone = real(icrater,kind=DP) / real(ntotcrat,kind=DP)
write(*,*)
write(*,'("Ended run at ",F7.2,"% due to crater of size: ",ES13.4)') fracdone * 100,crater%fcrat
exit
else
makecrater = .false. ! Ignore this big crater
end if
end if
end if
if (user%doquasimc) then
if (crater%timestamp > user%rctime) then
user%testflag = .false.
Expand All @@ -169,16 +181,6 @@ subroutine crater_populate(user,surf,crater,domain,prod,production_list,vdist,nt
end if
end if
end if
if (crater%fcrat > domain%biggest_crater) then ! End the run if the crater is too big
if (user%killatmaxcrater) then
fracdone = real(icrater,kind=DP) / real(ntotcrat,kind=DP)
write(*,*)
write(*,'("Ended run at ",F7.2,"% due to crater of size: ",ES13.4)') fracdone * 100,crater%fcrat
exit
else
makecrater = .false. ! Ignore this big crater
end if
end if
if (crater%fcrat > 0.8_DP * domain%side) then
surf%ejcov = 0.0_DP
surf%dem = 0.0_DP
Expand Down

0 comments on commit d61509f

Please sign in to comment.