Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add quasimc variables to the "newsurfi" that gets read in
  • Loading branch information
Austin Blevins committed Mar 28, 2023
1 parent c36e074 commit 144e7df
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/io/io_read_regotrack.f90
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,18 @@ subroutine io_read_regotrack(user,surf,domain)
do k=max(stacks_num(i,j)-1,1),1,-1
newsurfi%thickness = regotopi(k)
newsurfi%comp = compi(k)
newsurfi%meltfrac = melti(k)
newsurfi%meltfrac = mfi(k)
newsurfi%meltvolume = melti(k)
newsurfi%ejm = ejmi(k)
newsurfi%ejmf = ejmfi(k)
newsurfi%totvolume = regotopi(k) * user%gridsize * user%gridsize
do q=1,MAXAGEBINS
newsurfi%age(q) = agei(MAXAGEBINS*k-(MAXAGEBINS-q))
end do
do q=1,domain%rcnum
newsurfi%meltdist(q) = dfi(q*k)
newsurfi%distvol(q) = mdi(q*k) !these two could be wrong based on the way the file is read; need to check
end do
call util_push_array(surf(i,j)%regolayer,newsurfi)
end do

Expand Down

0 comments on commit 144e7df

Please sign in to comment.