Changes in src/wetdepokernel.f90 [4c64400:1c0d5e6] in flexpart.git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/wetdepokernel.f90
r4c64400 r1c0d5e6 40 40 ! * 41 41 !***************************************************************************** 42 ! Changes:43 ! eso 10/2016: Added option to disregard kernel44 !45 !*****************************************************************************46 42 47 43 use unc_mod … … 77 73 endif 78 74 79 ! If no kernel is used, direct attribution to grid cell80 !******************************************************81 75 82 if (lnokernel) then83 do ks=1,nspec84 if ((ix.ge.0).and.(jy.ge.0).and.(ix.le.numxgrid-1).and. &85 (jy.le.numygrid-1)) then86 wetgridunc(ix,jy,ks,kp,nunc,nage)= &87 wetgridunc(ix,jy,ks,kp,nunc,nage)+deposit(ks)88 end if89 end do90 else ! use kernel91 92 76 ! Determine mass fractions for four grid points 93 77 !********************************************** … … 95 79 do ks=1,nspec 96 80 97 if ((ix.ge.0).and.(jy.ge.0).and.(ix.le.numxgrid-1).and. & 81 if (.not.usekernel) then 82 wetgridunc(ix,jy,ks,kp,nunc,nage)= & 83 wetgridunc(ix,jy,ks,kp,nunc,nage)+deposit(ks) 84 else 85 if ((ix.ge.0).and.(jy.ge.0).and.(ix.le.numxgrid-1).and. & 98 86 (jy.le.numygrid-1)) then 99 w=wx*wy87 w=wx*wy 100 88 wetgridunc(ix,jy,ks,kp,nunc,nage)= & 101 89 wetgridunc(ix,jy,ks,kp,nunc,nage)+deposit(ks)*w 102 endif90 endif 103 91 104 if ((ixp.ge.0).and.(jyp.ge.0).and.(ixp.le.numxgrid-1).and. &92 if ((ixp.ge.0).and.(jyp.ge.0).and.(ixp.le.numxgrid-1).and. & 105 93 (jyp.le.numygrid-1)) then 106 w=(1.-wx)*(1.-wy)94 w=(1.-wx)*(1.-wy) 107 95 wetgridunc(ixp,jyp,ks,kp,nunc,nage)= & 108 96 wetgridunc(ixp,jyp,ks,kp,nunc,nage)+deposit(ks)*w 109 endif97 endif 110 98 111 if ((ixp.ge.0).and.(jy.ge.0).and.(ixp.le.numxgrid-1).and. &99 if ((ixp.ge.0).and.(jy.ge.0).and.(ixp.le.numxgrid-1).and. & 112 100 (jy.le.numygrid-1)) then 113 w=(1.-wx)*wy101 w=(1.-wx)*wy 114 102 wetgridunc(ixp,jy,ks,kp,nunc,nage)= & 115 103 wetgridunc(ixp,jy,ks,kp,nunc,nage)+deposit(ks)*w 116 endif104 endif 117 105 118 if ((ix.ge.0).and.(jyp.ge.0).and.(ix.le.numxgrid-1).and. &106 if ((ix.ge.0).and.(jyp.ge.0).and.(ix.le.numxgrid-1).and. & 119 107 (jyp.le.numygrid-1)) then 120 w=wx*(1.-wy)108 w=wx*(1.-wy) 121 109 wetgridunc(ix,jyp,ks,kp,nunc,nage)= & 122 110 wetgridunc(ix,jyp,ks,kp,nunc,nage)+deposit(ks)*w 123 endif 111 endif 112 endif 124 113 end do 125 end if126 114 127 115 end subroutine wetdepokernel
Note: See TracChangeset
for help on using the changeset viewer.