From 09498f6fc97b870da885605509f4d78746051bec Mon Sep 17 00:00:00 2001 From: Frans Liqui Lung Date: Sun, 2 Oct 2022 20:26:12 +0000 Subject: [PATCH] removed print from modsynturb and removed hard set top layer of temperature in modboundary --- src/modboundary.f90 | 15 ++++++++------- src/modsynturb.f90 | 2 +- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/modboundary.f90 b/src/modboundary.f90 index effcbeba8..b511db7a7 100644 --- a/src/modboundary.f90 +++ b/src/modboundary.f90 @@ -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 @@ -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 diff --git a/src/modsynturb.f90 b/src/modsynturb.f90 index 743b30f13..98f2830fc 100644 --- a/src/modsynturb.f90 +++ b/src/modsynturb.f90 @@ -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)