Angel_Ignatious
New member
So in my case study, I'm studying the impact of increased CCN concentration over the urban region. So in my third domain, i have to increase the CCN concentration over a small region, not the whole domain. So i was doing it like this
if (itimestep.eq.1) then
if(j.gt.160.and.j.lt.220.and.i.gt.160.and.i.lt.220.and.k.gt.0.and.k.lt.16) then
do j = jms+160,jms+220
do k = kms,kms+16
do i = ims+160,ims+220
nn(i,k,j) = ccn0*30.0
enddo
enddo
enddo
else
do j = jms,jme
do k = kms,kme
do i = ims,ime
nn(i,k,j) = ccn0
enddo
enddo
enddo
endif
endif
But this loop does not give the exact increase in the particular area, some of the other regions also having increased CCN concentration
if (itimestep.eq.1) then
if(j.gt.160.and.j.lt.220.and.i.gt.160.and.i.lt.220.and.k.gt.0.and.k.lt.16) then
do j = jms+160,jms+220
do k = kms,kms+16
do i = ims+160,ims+220
nn(i,k,j) = ccn0*30.0
enddo
enddo
enddo
else
do j = jms,jme
do k = kms,kme
do i = ims,ime
nn(i,k,j) = ccn0
enddo
enddo
enddo
endif
endif
But this loop does not give the exact increase in the particular area, some of the other regions also having increased CCN concentration