68 TYPE(t_region
),
POINTER :: pregion
69 TYPE(t_plag),
POINTER :: pplag
75 CHARACTER(CHRLEN) :: rcsidentstring
76 INTEGER :: errorflag,icont,ipcl,ivar,naiv,narv,ncont,ncv,ndv,npclsmax,ntv
77 TYPE(t_grid),
POINTER :: pgrid
84 rcsidentstring =
'$RCSfile: PLAG_RFLU_AllocMemSol.F90,v $ $Revision: 1.7 $'
86 global => pregion%global
89 'PLAG_RFLU_AllocMemSol.F90')
97 npclsmax = pregion%plag%nPclsMax
98 ncont = pregion%plagInput%nCont
115 ALLOCATE(pplag%cv(ncv,npclsmax),stat=errorflag)
116 global%error = errorflag
117 IF (global%error /= err_none)
THEN
118 CALL
errorstop(global,err_allocate,__line__,
'pPlag%cv')
125 ALLOCATE(pplag%dv(ndv,npclsmax),stat=errorflag)
126 global%error = errorflag
127 IF (global%error /= err_none)
THEN
128 CALL
errorstop(global,err_allocate,__line__,
'pPlag%dv')
135 ALLOCATE(pplag%tv(ntv,npclsmax),stat=errorflag)
136 global%error = errorflag
137 IF (global%error /= err_none)
THEN
138 CALL
errorstop(global,err_allocate,__line__,
'pPlag%tv')
145 ALLOCATE(pplag%aiv(naiv,npclsmax),stat=errorflag)
146 global%error = errorflag
147 IF (global%error /= err_none)
THEN
148 CALL
errorstop(global,err_allocate,__line__,
'pPlag%aiv')
151 ALLOCATE(pplag%arv(narv,npclsmax),stat=errorflag)
152 global%error = errorflag
153 IF (global%error /= err_none)
THEN
154 CALL
errorstop(global,err_allocate,__line__,
'pPlag%arv')
161 ALLOCATE(pplag%cvPlagMass(ncont),stat=errorflag)
162 global%error = errorflag
163 IF (global%error /= err_none)
THEN
164 CALL
errorstop(global, err_allocate,__line__ ,
'pPlag%cvPlagMass')
167 ALLOCATE(pplag%dvPlagVolu(ncont),stat=errorflag)
168 global%error = errorflag
169 IF (global%error /= err_none)
THEN
170 CALL
errorstop(global, err_allocate,__line__ ,
'pPlag%dvPlagVolu')
174 pplag%cvPlagMass(icont) = cv_plag_last + icont
175 pplag%dvPlagVolu(icont) = dv_plag_last + icont
184 pplag%cv(ivar,ipcl) = 0.0_rfreal
188 pplag%dv(ivar,ipcl) = 0.0_rfreal
192 pplag%tv(ivar,ipcl) = 0.0_rfreal
196 pplag%aiv(ivar,ipcl) = 0
200 pplag%arv(ivar,ipcl) = 0
subroutine plag_rflu_allocmemsol(pRegion, pPlag)
subroutine registerfunction(global, funName, fileName)
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)