Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added perlin noise subroutine and cleaned up crater_form_interior
  • Loading branch information
daminton committed Oct 2, 2019
1 parent 0c1528d commit b76e372
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ util/util_push.f90\
util/util_traverse_pop.f90\
util/util_destroy_list.f90\
util/util_init_list.f90\
util/util_perlin_noise.f90\
io/io_read_const.f90\
io/io_get_token.f90\
io/io_input.f90\
Expand Down
2 changes: 1 addition & 1 deletion src/crater/crater_form_interior.f90
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ subroutine crater_form_interior(user,surfi,crater,x_relative, y_relative ,newele
real(DP),intent(out) :: deltaMi

! Internal variables
real(DP) :: cform,newdem,elchange,pikeD,r,h,circrad,polymodel,f,HH
real(DP) :: cform,newdem,elchange,pikeD,r
integer(I4B) :: layer

! A list for poped data
Expand Down
10 changes: 10 additions & 0 deletions src/util/module_util.f90
Original file line number Diff line number Diff line change
Expand Up @@ -225,5 +225,15 @@ function util_poisson(mu,poisson_first) result(ival)
end function util_poisson
end interface

interface
function util_perlin_noise(x,y,z) result (noise)
use module_globals
implicit none
real(DP),intent(in) :: x,y
real(DP),intent(in),optional :: z
real(DP) :: noise
end function util_perlin_noise
end interface

end module

0 comments on commit b76e372

Please sign in to comment.