From 2bec33eff0e52c1452ff0940aa3db5c57de9aa74 Mon Sep 17 00:00:00 2001 From: Sabine <sabine.eckhardt@nilu.no> Date: Mon, 8 May 2017 19:32:48 +0200 Subject: [PATCH] resolved kernel merge: removed all uskernel --- src/com_mod.f90 | 1 - src/conccalc.f90 | 4 ++-- src/drydepokernel.f90 | 6 ------ src/timemanager.f90 | 2 +- src/wetdepokernel.f90 | 6 +----- 5 files changed, 4 insertions(+), 15 deletions(-) diff --git a/src/com_mod.f90 b/src/com_mod.f90 index 9ac45f1e..edb4e8b6 100644 --- a/src/com_mod.f90 +++ b/src/com_mod.f90 @@ -755,7 +755,6 @@ module com_mod integer :: mpi_mode=0 ! .gt. 0 if running MPI version logical :: lroot=.true. ! true if serial version, or if MPI .and. root process - logical :: usekernel=.false. ! true if the output kernel shall be switched on logical :: interpolhmix=.false. ! true if the hmix shall be interpolated logical :: turboff=.false. ! true if the turbulence shall be switched off diff --git a/src/conccalc.f90 b/src/conccalc.f90 index 9d159830..cc39cdf1 100644 --- a/src/conccalc.f90 +++ b/src/conccalc.f90 @@ -182,7 +182,7 @@ subroutine conccalc(itime,weight) if (lnokernel.or.(itage.lt.10800).or.(xl.lt.0.5).or.(yl.lt.0.5).or. & (xl.gt.real(numxgrid-1)-0.5).or. & - (yl.gt.real(numygrid-1)-0.5))) then ! no kernel, direct attribution to grid cell + (yl.gt.real(numygrid-1)-0.5)) then ! no kernel, direct attribution to grid cell if ((ix.ge.0).and.(jy.ge.0).and.(ix.le.numxgrid-1).and. & (jy.le.numygrid-1)) then if (DRYBKDEP.or.WETBKDEP) then @@ -319,7 +319,7 @@ subroutine conccalc(itime,weight) if ((itage.lt.10800).or.(xl.lt.0.5).or.(yl.lt.0.5).or. & (xl.gt.real(numxgridn-1)-0.5).or. & - (yl.gt.real(numygridn-1)-0.5).or.(.not.usekernel)) then ! no kernel, direct attribution to grid cell + (yl.gt.real(numygridn-1)-0.5).or.(lnokernel)) then ! no kernel, direct attribution to grid cell if ((ix.ge.0).and.(jy.ge.0).and.(ix.le.numxgridn-1).and. & (jy.le.numygridn-1)) then if (DRYBKDEP.or.WETBKDEP) then diff --git a/src/drydepokernel.f90 b/src/drydepokernel.f90 index 6ba8d2de..d5317e1b 100644 --- a/src/drydepokernel.f90 +++ b/src/drydepokernel.f90 @@ -101,10 +101,6 @@ subroutine drydepokernel(nunc,deposit,x,y,nage,kp) if ((abs(deposit(ks)).gt.0).and.DRYDEPSPEC(ks)) then - if (.not.usekernel) then - drygridunc(ix,jy,ks,kp,nunc,nage)= & - drygridunc(ix,jy,ks,kp,nunc,nage)+deposit(ks) - else if ((ix.ge.0).and.(jy.ge.0).and.(ix.le.numxgrid-1).and. & (jy.le.numygrid-1)) then w=wx*wy @@ -133,9 +129,7 @@ subroutine drydepokernel(nunc,deposit,x,y,nage,kp) drygridunc(ix,jyp,ks,kp,nunc,nage)+deposit(ks)*w endif - endif ! kernel endif ! deposit>0 - end do end if diff --git a/src/timemanager.f90 b/src/timemanager.f90 index 7ae91dbe..131adf08 100644 --- a/src/timemanager.f90 +++ b/src/timemanager.f90 @@ -146,7 +146,7 @@ subroutine timemanager ! print*, 'Initialized lifetime' !CGZ-lifetime: set lifetime to 0 - if (.not.usekernel) write(*,*) 'Not using the kernel' + if (lnokernel) write(*,*) 'Not using the kernel' if (turboff) write(*,*) 'Turbulence switched off' write(*,46) float(itime)/3600,itime,numpart diff --git a/src/wetdepokernel.f90 b/src/wetdepokernel.f90 index 65de00ad..2a10ebb8 100644 --- a/src/wetdepokernel.f90 +++ b/src/wetdepokernel.f90 @@ -94,10 +94,6 @@ subroutine wetdepokernel(nunc,deposit,x,y,nage,kp) do ks=1,nspec - if (.not.usekernel) then - wetgridunc(ix,jy,ks,kp,nunc,nage)= & - wetgridunc(ix,jy,ks,kp,nunc,nage)+deposit(ks) - else if ((ix.ge.0).and.(jy.ge.0).and.(ix.le.numxgrid-1).and. & (jy.le.numygrid-1)) then w=wx*wy @@ -125,7 +121,7 @@ subroutine wetdepokernel(nunc,deposit,x,y,nage,kp) wetgridunc(ix,jyp,ks,kp,nunc,nage)= & wetgridunc(ix,jyp,ks,kp,nunc,nage)+deposit(ks)*w endif - endif + end do end if -- GitLab