TreeMig Code
Loading...
Searching...
No Matches
StoringBackAndForth.f90
Go to the documentation of this file.
1!==============================================================================
2!
3! Name : StoringBackAndForth (sequential only; MPI is in separate file)
4!
5! Remarks: contains the SUBROUTINEs
6!
7! StoreCellStateToThisCell (<LocalDynOneTimeStep<DistrLocalDynThisTime<
8! TimeLoop<TreeMig)
9! StoreThisCellSpecStatesToCell (<LocalDynOneTimeStep<DistrLocalDynThisTime<
10! TimeLoop<TreeMig)
11!
12!==============================================================================
13! design : H. Lischke, N. Zimmermann
14! author(s) : H. Lischke, N. Zimmermann
15! implementation : H. Lischke, N. Zimmermann
16! cleaner : T.J. Loeffler
17! copyright : (c) 1999, 03 by H. Lischke
18!==============================================================================
19!=====================================================================
43!===============================================================
44
45 SUBROUTINE storecellstatetothiscell(lat, lon, nsp, ddegs, wtemp, drstr, avnit, brwpr, disturb, germDrought, thiscell)
47 IMPLICIT NONE
48
49 INTEGER, INTENT(in):: lat, lon, nsp
50 REAL, INTENT(in):: ddegs, wtemp, drstr, avnit, brwpr, disturb, germDrought
51
52 TYPE(currstateincell), INTENT(out):: thiscell
53
54 INTEGER:: isp
55
56 do isp = 1, nsp
57 thiscell%sp(isp) = stategrid(lat, lon)%sp(isp)
58 thiscell%sp(isp)%newseeds = seedrain(lat, lon)%sp(isp)%newseeds
59 thiscell%sp(isp)%verynewseeds = seedrain(lat, lon)%sp(isp)%verynewseeds
60 end do ! store the actual cell to the structure thiscell
61 ! store additional, cell related information to thiscell
62 thiscell%lat = lat
63 thiscell%lon = lon
64 thiscell%brwpr = brwpr
65 thiscell%disturb = disturb
66 thiscell%ddegs = ddegs
67 thiscell%wtemp = wtemp
68 thiscell%drstr = drstr
69 thiscell%avnit = avnit
70 thiscell%germDrought = germdrought
71 end SUBROUTINE storecellstatetothiscell
72
73!=====================================================================
92!===============================================================
93
94 SUBROUTINE storethiscellspecstatestocell(lat, lon, nspc, thiscell)
96 IMPLICIT NONE
97
98 TYPE(currstateincell):: thiscell
99 INTEGER:: isp, lat, lon, nspc
100
101 do isp = 1, nspc
102 stategrid(lat, lon)%sp(isp) = thiscell%sp(isp)
103 seedrain(lat, lon)%sp(isp)%newseeds = thiscell%sp(isp)%newseeds
104 seedrain(lat, lon)%sp(isp)%verynewseeds = thiscell%sp(isp)%verynewseeds
105 end do
106 end SUBROUTINE storethiscellspecstatestocell
107!==============================================================================
108!done
subroutine storecellstatetothiscell(lat, lon, nsp, ddegs, wtemp, drstr, avnit, brwpr, disturb, germdrought, thiscell)
StoreCellStateToThisCell.
subroutine storethiscellspecstatestocell(lat, lon, nspc, thiscell)
StoreThisCellSpecStatesToCell.
type(currstateincell), dimension(:, :), allocatable stategrid
Definition All_par.f90:340
type(newseedsincell), dimension(:, :), allocatable seedrain
Definition All_par.f90:342