Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
forced mix layers volume consistency
  • Loading branch information
Austin Blevins committed Mar 1, 2023
1 parent feea6e6 commit 776f477
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/regolith/regolith_mix.f90
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ subroutine regolith_mix(user,surfi,mixing_depth,domain)
newlayer%ejmf = newlayer%ejmf / newlayer%thickness
newlayer%meltvolume = newlayer%meltvolume / newlayer%thickness
newlayer%totvolume = newlayer%totvolume / newlayer%thickness

!test forcing melt fraction to equal melt volume / total volume
newlayer%totvolume = newlayer%thickness * user%pix * user%pix
newlayer%meltfrac = newlayer%meltvolume / newlayer%totvolume
newlayer%meltdist(:) = newlayer%distvol(:) / newlayer%totvolume
newlayer%ejmf = newlayer%ejm / newlayer%totvolume

call util_push_array(surfi%regolayer, newlayer)
!call util_destroy_list(poppedlist_top)
Expand Down

0 comments on commit 776f477

Please sign in to comment.