Skip to content

Commit

Permalink
Update mice_mevp.F90
Browse files Browse the repository at this point in the history
change the Pressure gradient formulation  for ice in ics==1
  • Loading branch information
wangqian2284 committed Dec 27, 2024
1 parent 45ff088 commit d1e821f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Multi_ice/mice_mevp.F90
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,10 @@ subroutine ice_mevp
!tmp2 = mass

if(ics==1) then
sum1=sum1+tmp2*deta(1,ie)*area(ie)/3
sum2=sum2+tmp2*deta(2,ie)*area(ie)/3
sum1=sum1+tmp2*deta_pice(1,ie)*area(ie)/3
sum2=sum2+tmp2*deta_pice(2,ie)*area(ie)/3
!sum1=sum1+tmp2*deta(1,ie)*area(ie)/3
!sum2=sum2+tmp2*deta(2,ie)*area(ie)/3
else
sum1=sum1+tmp2*deta_pice(1,ie)*area(ie)/3*dot_product(eframe(1:3,1,ie),pframe(1:3,1,i))+tmp2*deta_pice(2,ie)*area(ie)/3*dot_product(eframe(1:3,2,ie),pframe(1:3,1,i))
sum2=sum2+tmp2*deta_pice(1,ie)*area(ie)/3*dot_product(eframe(1:3,1,ie),pframe(1:3,2,i))+tmp2*deta_pice(2,ie)*area(ie)/3*dot_product(eframe(1:3,2,ie),pframe(1:3,2,i))
Expand Down

0 comments on commit d1e821f

Please sign in to comment.