46 SUBROUTINE plag_updatedatastruct(pRegion,iReg)
50 SUBROUTINE plag_updatedatastruct(pRegion)
74 TYPE(t_region
) :: pregion
75 INTEGER,
INTENT(IN) :: ireg
79 TYPE(t_region
),
POINTER :: pregion
86 CHARACTER(CHRLEN) :: rcsidentstring
95 INTEGER :: iaiv,iarv,icv,idv,igap,ipcl,itv,naiv,narv,ncv,ndv,&
96 npclsbeg,npclsend,npclsprev,ntv
97 INTEGER,
DIMENSION(:,:),
POINTER :: paiv,paivold
98 REAL(RFREAL),
DIMENSION(:,:),
POINTER :: parv,parvold,pcv,pcvold,pdv,&
101 TYPE(t_plag),
POINTER :: pplag
107 rcsidentstring =
'$RCSfile: PLAG_UpdateDataStruct.F90,v $ $Revision: 1.12 $'
109 global => pregion%global
112 'PLAG_UpdateDataStruct.F90')
119 ilev = pregion%currLevel
120 pplag => pregion%levels(ilev)%plag
124 pplag => pregion%plag
132 prhssum => pplag%rhsSum
135 paivold => pplag%aivOld
136 parvold => pplag%arvOld
137 pcvold => pplag%cvOld
150 ireg = pregion%iRegionGlobal
166 IF ( ( paiv(aiv_plag_status,igap) /= plag_status_keep .AND. &
167 paiv(aiv_plag_status,igap) /= plag_status_comm ) .AND. &
168 ( paiv(aiv_plag_status,ipcl) == plag_status_keep .OR. &
169 paiv(aiv_plag_status,ipcl) == plag_status_comm ) )
THEN
176 paiv(iaiv,igap) = paiv(iaiv,ipcl)
177 paivold(iaiv,igap) = paivold(iaiv,ipcl)
181 parv(iarv,igap) = parv(iarv,ipcl)
182 parvold(iarv,igap) = parvold(iarv,ipcl)
186 pcv(icv,igap) = pcv(icv,ipcl)
187 pcvold( icv,igap) = pcvold(icv,ipcl)
188 prhs(icv,igap) = prhs(icv,ipcl)
189 prhssum(icv,igap) = prhssum(icv,ipcl)
193 pdv(idv,igap) = pdv(idv,ipcl)
197 ptv(itv,igap) = ptv(itv,ipcl)
200 paiv(aiv_plag_status,igap) = paiv(aiv_plag_status,ipcl)
214 IF ( paiv(aiv_plag_status,igap) == plag_status_keep .OR. &
215 paiv(aiv_plag_status,igap) == plag_status_comm )
THEN
219 IF ( paiv(aiv_plag_status,ipcl) == plag_status_delete )
THEN
228 IF ( igap > ipcl )
THEN
237 npclsprev = pplag%nPcls
240 npclsbeg =
max(1,pplag%nPcls+1)
247 DO ipcl = npclsbeg, npclsend
249 paiv(iaiv,ipcl) = crazy_value_int
250 paivold(iaiv,ipcl) = crazy_value_int
254 parv(iarv,ipcl) =
REAL(crazy_value_int,kind=rfreal)
255 parvold(iarv,ipcl) =
REAL(crazy_value_int,kind=rfreal)
259 pcv(icv,ipcl) =
REAL(crazy_value_int,kind=rfreal)
260 pcvold(icv,ipcl) =
REAL(crazy_value_int,kind=rfreal)
261 prhs(icv,ipcl) =
REAL(crazy_value_int,kind=rfreal)
262 prhssum(icv,ipcl) =
REAL(crazy_value_int,kind=rfreal)
266 pdv(idv,ipcl) =
REAL(crazy_value_int,kind=rfreal)
270 ptv(itv,ipcl) =
REAL(crazy_value_int,kind=rfreal)
280 END SUBROUTINE plag_updatedatastruct
Vector_n max(const Array_n_const &v1, const Array_n_const &v2)
subroutine registerfunction(global, funName, fileName)
subroutine deregisterfunction(global)