Changeset 4c64400 in flexpart.git for src/drydepokernel.f90
- Timestamp:
- Nov 8, 2016, 4:42:27 PM (7 years ago)
- Branches:
- master, 10.4.1_pesei, GFS_025, bugfixes+enhancements, dev, release-10, release-10.4.1, scaling-bug, univie
- Children:
- c8fc724
- Parents:
- 16b61a5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/drydepokernel.f90
re200b7a r4c64400 40 40 ! * 41 41 !***************************************************************************** 42 ! Changes: 43 ! eso 10/2016: Added option to disregard kernel 44 ! 45 !***************************************************************************** 46 42 47 43 48 use unc_mod … … 47 52 implicit none 48 53 49 real :: x,y,deposit(maxspec),ddx,ddy,xl,yl,wx,wy,w 54 real(dep_prec), dimension(maxspec) :: deposit 55 real :: x,y,ddx,ddy,xl,yl,wx,wy,w 50 56 integer :: ix,jy,ixp,jyp,ks,nunc,nage,kp 51 57 … … 74 80 endif 75 81 82 ! If no kernel is used, direct attribution to grid cell 83 !****************************************************** 84 85 if (lnokernel) then 86 do ks=1,nspec 87 if ((abs(deposit(ks)).gt.0).and.DRYDEPSPEC(ks)) then 88 if ((ix.ge.0).and.(jy.ge.0).and.(ix.le.numxgrid-1).and. & 89 (jy.le.numygrid-1)) then 90 drygridunc(ix,jy,ks,kp,nunc,nage)= & 91 drygridunc(ix,jy,ks,kp,nunc,nage)+deposit(ks) 92 end if 93 end if 94 end do 95 else ! use kernel 96 76 97 77 98 ! Determine mass fractions for four grid points 78 99 !********************************************** 79 100 do ks=1,nspec 80 101 81 102 if ((abs(deposit(ks)).gt.0).and.DRYDEPSPEC(ks)) then 82 103 83 104 if ((ix.ge.0).and.(jy.ge.0).and.(ix.le.numxgrid-1).and. & 84 105 (jy.le.numygrid-1)) then 85 w=wx*wy86 87 88 89 endif106 w=wx*wy 107 drygridunc(ix,jy,ks,kp,nunc,nage)= & 108 drygridunc(ix,jy,ks,kp,nunc,nage)+deposit(ks)*w 109 continue 110 endif 90 111 91 112 if ((ixp.ge.0).and.(jyp.ge.0).and.(ixp.le.numxgrid-1).and. & … … 112 133 endif 113 134 114 end do 135 end do 136 end if 115 137 116 138 end subroutine drydepokernel
Note: See TracChangeset
for help on using the changeset viewer.