Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added sorting of real crater list
  • Loading branch information
Austin Blevins committed Apr 5, 2021
1 parent 354734b commit 8db3811
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions examples/global-lunar-bombardment/craterlist.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# imp vel ang xoff yoff t_Ga
90856.5 15.0e3 90.0 -5.17529e5 1.037286e6 0.4
18095.0 15.0e3 90.0 -9.38629e5 1.3466084e6 0.2
90856.5 15.0e3 90.0 -5.17529e5 1.037286e6 0.02
18095.0 15.0e3 90.0 -9.38629e5 1.3466084e6 0.03
32432.1 15.0e3 90.0 -2.19298e5 1.24e6 0.025
1 change: 1 addition & 0 deletions examples/global-lunar-bombardment/ctem_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
craterlistfile = parameters['workingdir'] + parameters['realcraterlist']
rclist = ctem_io_readers.read_formatted_ascii(craterlistfile, skip_lines = 0)
rclist[:,5] = (parameters['interval'] * parameters['numintervals']) - craterproduction.Tscale(rclist[:,5], 'NPF_Moon')
rclist = rclist[rclist[:,5].argsort()]
ctem_io_writers.write_realcraters(parameters, rclist)

#Create impactor production population
Expand Down
2 changes: 1 addition & 1 deletion src/crater/crater_populate.f90
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ subroutine crater_populate(user,surf,crater,domain,prod,production_list,vdist,nt
!if in quasiMC mode: check to see if it's time for a real crater
if (user%doquasimc) then
if (crater%timestamp > user%rctime) then
write(*,*) "Real crater at time ", rclist(6, rccount)
write(*,*) "Real crater at time ", crater%timestamp
user%testflag = .true.
user%testimp = rclist(1, rccount)
user%testvel = rclist(2, rccount)
Expand Down

0 comments on commit 8db3811

Please sign in to comment.