Skip to content

Commit

Permalink
Flag for using mass vs freq distribution has been included.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alon Stern authored and Alon Stern committed Jun 9, 2015
1 parent 9dff46b commit 15f3388
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions icebergs_framework.F90
Original file line number Diff line number Diff line change
Expand Up @@ -498,10 +498,10 @@ subroutine ice_bergs_framework_init(bergs, &
!Added by Alon - If a freq distribution is input, we have to convert the freq distribution to a mass flux distribution)
if (input_freq_distribution) then
Total_mass=0.
do j=1:nclasses
do j=1,nclasses
Total_mass=Total_mass+(distribution(j)*initial_mass(j))
enddo
do j=1:nclasses
do j=1,nclasses
distribution(j)=(distribution(j)*initial_mass(j))/Total_mass
enddo
endif
Expand Down

0 comments on commit 15f3388

Please sign in to comment.