65 TYPE(t_region
),
POINTER :: pregion
66 TYPE(t_plag),
POINTER :: pplag
72 CHARACTER(CHRLEN) :: rcsidentstring
74 INTEGER :: ipcl,ivar,maxdisedges,npclsmax,errorflag
82 rcsidentstring =
'$RCSfile: PLAG_INRT_AllocMemTStep.F90,v $ $Revision: 1.8 $'
84 global => pregion%global
87 'PLAG_INRT_AllocMemTStep.F90')
93 npclsmax = pregion%plag%nPclsMax
94 maxdisedges = pregion%inrtInput%maxDisEdges
100 IF (maxdisedges > 0)
THEN
101 ALLOCATE( pplag%inrtSources(maxdisedges,npclsmax),stat=errorflag )
102 global%error = errorflag
103 IF (global%error /= err_none)
THEN
104 CALL
errorstop( global,err_allocate,__line__,
'pPlag%inrtSources')
108 nullify( pplag%inrtSources )
117 DO ivar = 1, maxdisedges
118 pplag%inrtSources(ivar,ipcl) = 0.0_rfreal
subroutine registerfunction(global, funName, fileName)
subroutine plag_inrt_allocmemtstep(pRegion, pPlag)
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)