Skip to content

Commit

Permalink
removed print from modsynturb and removed hard set top layer of tempe…
Browse files Browse the repository at this point in the history
…rature in modboundary
  • Loading branch information
Frans Liqui Lung authored and franslql committed Dec 12, 2022
1 parent 031b97b commit 09498f6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
15 changes: 8 additions & 7 deletions src/modboundary.f90
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ end subroutine cyclicm
!! to infinity at the bottom of the sponge layer.
!! \endlatexonly
subroutine grwdamp
use modglobal, only : i1,j1,kmax,cu,cv,lcoriol,igrw_damp,geodamptime,nsv,rdt,unudge,dzf
use modglobal, only : i1,j1,kmax,cu,cv,lcoriol,igrw_damp,geodamptime,nsv,rdt,unudge,dzf,lopenbc
use modfields, only : up,vp,wp,thlp,qtp,u0,v0,w0,thl0,qt0,sv0,ug,vg &
,thl0av,qt0av,sv0av,u0av,v0av
implicit none
Expand Down Expand Up @@ -196,12 +196,13 @@ subroutine grwdamp
! Additional to gravity wave damping, set qt, thl and sv0(:) equal to slabaverage
! at level kmax.
! Originally done in subroutine tqaver, now using averages from modthermodynamics

thl0(2:i1,2:j1,kmax) = thl0av(kmax)
qt0 (2:i1,2:j1,kmax) = qt0av(kmax)
do n=1,nsv
sv0(2:i1,2:j1,kmax,n) = sv0av(kmax,n)
end do
if(.not.lopenbc) then
thl0(2:i1,2:j1,kmax) = thl0av(kmax)
qt0 (2:i1,2:j1,kmax) = qt0av(kmax)
do n=1,nsv
sv0(2:i1,2:j1,kmax,n) = sv0av(kmax,n)
end do
endif

return
end subroutine grwdamp
Expand Down
2 changes: 1 addition & 1 deletion src/modsynturb.f90
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ subroutine calc_eigdec(ib)
r(2,1) = r(1,2); r(3,1) = r(1,3); r(3,2) = r(2,3)
call DSYEVJ3(r,eigvec,eigval)
do ii = 1,3
if(eigval(ii)<-1.e-8) print *,"warning negative eigenvalue ",eigval(ii), " value set to 1e-8"
!if(eigval(ii)<-1.e-8) print *,"warning negative eigenvalue ",eigval(ii), " value set to 1e-8"
eigval(ii) = max(eigval(ii),1.e-8)
end do
boundary(ib)%eigvec(i,j,:,:) = real(eigvec)
Expand Down

0 comments on commit 09498f6

Please sign in to comment.