Changes in src/drydepokernel.f90 [4c64400:e200b7a] in flexpart.git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/drydepokernel.f90
r4c64400 re200b7a 40 40 ! * 41 41 !***************************************************************************** 42 ! Changes:43 ! eso 10/2016: Added option to disregard kernel44 !45 !*****************************************************************************46 47 42 48 43 use unc_mod … … 52 47 implicit none 53 48 54 real(dep_prec), dimension(maxspec) :: deposit 55 real :: x,y,ddx,ddy,xl,yl,wx,wy,w 49 real :: x,y,deposit(maxspec),ddx,ddy,xl,yl,wx,wy,w 56 50 integer :: ix,jy,ixp,jyp,ks,nunc,nage,kp 57 51 … … 80 74 endif 81 75 82 ! If no kernel is used, direct attribution to grid cell83 !******************************************************84 85 if (lnokernel) then86 do ks=1,nspec87 if ((abs(deposit(ks)).gt.0).and.DRYDEPSPEC(ks)) then88 if ((ix.ge.0).and.(jy.ge.0).and.(ix.le.numxgrid-1).and. &89 (jy.le.numygrid-1)) then90 drygridunc(ix,jy,ks,kp,nunc,nage)= &91 drygridunc(ix,jy,ks,kp,nunc,nage)+deposit(ks)92 end if93 end if94 end do95 else ! use kernel96 97 76 98 77 ! Determine mass fractions for four grid points 99 78 !********************************************** 100 do ks=1,nspec79 do ks=1,nspec 101 80 102 if ((abs(deposit(ks)).gt.0).and.DRYDEPSPEC(ks)) then81 if ((abs(deposit(ks)).gt.0).and.DRYDEPSPEC(ks)) then 103 82 104 83 if ((ix.ge.0).and.(jy.ge.0).and.(ix.le.numxgrid-1).and. & 105 84 (jy.le.numygrid-1)) then 106 107 drygridunc(ix,jy,ks,kp,nunc,nage)= &108 drygridunc(ix,jy,ks,kp,nunc,nage)+deposit(ks)*w109 continue110 85 w=wx*wy 86 drygridunc(ix,jy,ks,kp,nunc,nage)= & 87 drygridunc(ix,jy,ks,kp,nunc,nage)+deposit(ks)*w 88 continue 89 endif 111 90 112 91 if ((ixp.ge.0).and.(jyp.ge.0).and.(ixp.le.numxgrid-1).and. & … … 133 112 endif 134 113 135 end do 136 end if 114 end do 137 115 138 116 end subroutine drydepokernel
Note: See TracChangeset
for help on using the changeset viewer.