Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixed a bug where regolith volumes weren't mixing correctly
  • Loading branch information
Austin Blevins committed Mar 1, 2023
1 parent 2213977 commit 7bbafda
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/regolith/regolith_mix.f90
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ subroutine regolith_mix(surfi,mixing_depth,domain)
newlayer%distvol(:) = 0.0_SP
newlayer%ejm = 0.0_DP
newlayer%ejmf = 0.0_DP
newlayer%meltvolume = 0.0_DP
newlayer%totvolume = 0.0_DP

!poppedlist => poppedlist_top
!do while(associated(poppedlist%next))
Expand All @@ -66,6 +68,7 @@ subroutine regolith_mix(surfi,mixing_depth,domain)
newlayer%ejm = newlayer%ejm + poppedarray(i)%thickness * poppedarray(i)%ejm
newlayer%ejmf = newlayer%ejmf + poppedarray(i)%thickness * poppedarray(i)%ejmf
newlayer%meltvolume = newlayer%meltvolume + poppedarray(i)%thickness * poppedarray(i)%meltvolume
newlayer%totvolume = newlayer%totvolume + poppedarray(i)%thickness * poppedarray(i)%totvolume
end do

! Get average values of composition and melt fraction
Expand Down

0 comments on commit 7bbafda

Please sign in to comment.