56 CHARACTER(CHRLEN) :: wins, winv
57 TYPE(t_region
),
POINTER :: regions(:)
63 INTEGER,
PARAMETER :: ascii_zero = 48
64 INTEGER :: ilev, pid, errorflag, ilb, nptypes, nptypesmax
70 global => regions(1)%global
73 'PEUL_InitGenxInterface.F90' )
82 IF ( global%peulUsed )
THEN
83 DO ireg=1,global%nRegions
84 nptypesmax =
max(nptypesmax,regions(ireg)%peulInput%nPtypes)
89 CALL com_new_attribute( trim(winv)//
'.peul'//char(ipt+ascii_zero),
'e', &
90 com_double,1,
'kg/(m^3)' )
95 DO ireg=1,global%nRegions
96 IF (regions(ireg)%procid==global%myProcid .AND. &
97 regions(ireg)%active==active .AND. &
98 global%peulUsed )
THEN
100 ilev = regions(ireg)%currLevel
106 ilb = lbound(regions(ireg)%levels(ilev)%peul%cv,2)
108 nptypes = regions(ireg)%peulInput%nPtypes
111 CALL com_set_array( trim(winv)//
'.peul'//char(ipt+ascii_zero), &
112 pid,regions(ireg)%levels(ilev)%peul%cv(ipt,ilb),nptypes)
Vector_n max(const Array_n_const &v1, const Array_n_const &v2)
subroutine registerfunction(global, funName, fileName)
subroutine peul_initgenxinterface(regions, wins, winv)
subroutine deregisterfunction(global)