@@ -204,44 +204,43 @@ contains
204204
205205 @:PROHIBIT(num_bc_patches > num_bc_patches_max, " num_bc_patches must be <= 10" )
206206
207-
208207 do i = 1 , num_bc_patches
209208
210- ! Line Segment BC
209+ ! Line Segment BC
211210 if (patch_bc(i)%geometry == 1 ) then
212211 @:PROHIBIT( .not. f_is_default(patch_bc(i)%radius), " Line Segment Patch can't have radius defined" )
213212 #:for DIR in [(' 1' ), (' 2' )]
214213 @:PROHIBIT(patch_bc(i)%dir == ${DIR}$ .and. (.not. f_is_default(patch_bc(i)%centroid(${DIR}$)) .or. .not. f_is_default(patch_bc(i)%centroid(3 ))), &
215- " Line Segment Patch of Dir ${DIR}$ can't have a centroid in Dir ${DIR}$ or 3" )
216- @:PROHIBIT(patch_bc(i)%dir == ${DIR}$ .and. (.not. f_is_default(patch_bc(i)%length(${DIR}$)) .or. .not. f_is_default(patch_bc(i)%length(3 ))), &
217- " Line Segment Patch of Dir ${DIR}$ can't have a length in Dir ${DIR}$ or 3" )
214+ " Line Segment Patch of Dir ${DIR}$ can't have a centroid in Dir ${DIR}$ or 3" )
215+ @:PROHIBIT(patch_bc(i)%dir == ${DIR}$ .and. (.not. f_is_default(patch_bc(i)%length(${DIR}$)) .or. .not. f_is_default(patch_bc(i)%length(3 ))), &
216+ " Line Segment Patch of Dir ${DIR}$ can't have a length in Dir ${DIR}$ or 3" )
218217 #:endfor
219- end if
220- ! Circle BC
218+ end if
219+ ! Circle BC
221220 if (patch_bc(i)%geometry == 2 ) then
222221 @:PROHIBIT(f_is_default(patch_bc(i)%radius), " Circle Patch must have radius defined" )
223- @:PROHIBIT(.not. f_is_default(patch_bc(i)%length(1 )) .or. .not. f_is_default(patch_bc(i)%length(2 )) .or. .not. f_is_default(patch_bc(i)%length(3 )), &
222+ @:PROHIBIT(.not. f_is_default(patch_bc(i)%length(1 )) .or. .not. f_is_default(patch_bc(i)%length(2 )) .or. .not. f_is_default(patch_bc(i)%length(3 )), &
224223 " Circle Patch can't have lengths defined" )
225224
226225 #:for DIR in [(' 1' ), (' 2' ), (' 3' )]
227226 @:PROHIBIT(patch_bc(i)%dir == ${DIR}$ .and. .not. f_is_default(patch_bc(i)%centroid(${DIR}$)), &
228- " Circle Patch of Dir ${DIR}$ can't have a centroid in Dir ${DIR}$" )
227+ " Circle Patch of Dir ${DIR}$ can't have a centroid in Dir ${DIR}$" )
229228 #:endfor
230229
231- end if
230+ end if
232231 ! Rectangle BC
233232 if (patch_bc(i)%geometry == 3 ) then
234233 @:PROHIBIT( .not. f_is_default(patch_bc(i)%radius), " Rectangle Patch can't have radius defined" )
235234
236235 #:for DIR, VAR in [(' 1' , ' 2' , ' 3' ), (' 2' , ' 3' , ' 1' ), (' 3' , ' 1' , ' 2' )]
237236 @:PROHIBIT(patch_bc(i)%dir == ${DIR}$ .and. .not. f_is_default(patch_bc(i)%centroid(${DIR}$)), &
238- " Rectangle Patch of Dir ${DIR}$ can't have a centroid in Dir ${DIR}$" )
237+ " Rectangle Patch of Dir ${DIR}$ can't have a centroid in Dir ${DIR}$" )
239238 @:PROHIBIT(patch_bc(i)%dir == ${DIR}$ .and. .not. f_is_default(patch_bc(i)%length(${DIR}$)), &
240- " Rectangle Patch of Dir ${DIR}$ can't have a length in Dir ${DIR}$" )
239+ " Rectangle Patch of Dir ${DIR}$ can't have a length in Dir ${DIR}$" )
241240 #:endfor
242241
243- end if
244-
242+ end if
243+
245244 end do
246245
247246 end subroutine
0 commit comments