65 TYPE(t_region
),
POINTER :: regions(:)
68 INTEGER :: ireg, l,
m,
n
75 INTEGER :: errorflag, angles(3,2)
76 REAL(RFREAL) ::
pi, twopi
80 global => regions(1)%global
82 'RADI_DerivedInputValues.F90' )
94 DO ireg=1,global%nRegions
96 IF (regions(ireg)%procid==global%myProcid .AND. &
97 regions(ireg)%active==active)
THEN
99 input => regions(ireg)%radiInput
102 input%stBoltz = 5.67e-8_rfreal
106 IF (
input%radiModel /= radi_model_none)
THEN
107 regions(ireg)%mixtInput%radiUsed = .true.
114 IF (
input%radiModel == radi_model_fldtran)
THEN
120 IF ((
input%radiModel /= radi_model_ross) .AND. &
121 (
input%radiModel /= radi_model_fldsrc) .AND. &
122 (
input%radiModel /= radi_model_fldtran))
THEN
128 IF ((
input%radiModel == radi_model_rtegray) .OR. &
129 (
input%radiModel == radi_model_rteband))
THEN
131 IF (
input%solMethod == radi_num_dom4)
THEN
134 ELSEIF (
input%solMethod == radi_num_dom8)
THEN
137 ELSEIF (
input%solMethod == radi_num_dom16)
THEN
140 ELSEIF (
input%solMethod == radi_num_fvm)
THEN
147 ALLOCATE(
input%angles(
input%nAng,radi_angle_ncomp),stat=errorflag )
148 global%error = errorflag
149 IF (global%error /= 0) CALL
errorstop( global,err_allocate,__line__ )
151 IF ((
input%radiModel == radi_model_ross) .OR. &
152 (
input%radiModel == radi_model_fldsrc) .OR. &
153 (
input%radiModel == radi_model_fldtran))
THEN
154 READ(
input%line(1),*,err=10,
end=20) (
input%angles(l,radi_angle_polar), &
156 READ(
input%line(2),*,err=10,
end=20) (
input%angles(l,radi_angle_azimu), &
160 ELSEIF ((
input%radiModel == radi_model_rtegray) .OR. &
161 (
input%radiModel == radi_model_rteband))
THEN
162 IF (
input%solMethod == radi_num_fvm)
THEN
164 DO l = 1,
input%nAzi+1
166 input%angles(
n,radi_angle_azimu) =
pi*dble(l-1)/dble(
input%nAzi)
167 input%angles(
n,radi_angle_polar) =twopi*dble(
m-1)/dble(
input%nPol)
186 CALL
errorstop( global,err_file_read,__line__, &
187 'Error in reading real numbers from string' )
189 CALL
errorstop( global,err_file_read,__line__, &
190 'Number of intensity angles is inconsistent' )
subroutine registerfunction(global, funName, fileName)
subroutine input(X, NNODE, NDC, NCELL, NFCE, NBPTS, NBFACE, ITYP, NPROP, XBNDY, XFAR, YFAR, ZFAR)
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)