Read fixed values for each block face
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(filetype), | intent(in) | :: | files | |||
type(schemetype), | intent(in) | :: | scheme | |||
type(flowtype), | intent(in) | :: | flow | |||
type(boundarytype), | intent(inout) | :: | bc |
subroutine read_fixed_values(files, scheme, flow, bc)
!< Read fixed values for each block face
implicit none
type(filetype), intent(in) :: files
type(schemetype), intent(in) :: scheme
type(flowtype), intent(in) ::flow
type(boundarytype), intent(inout) :: bc
integer :: count=0
call fill_fixed_values(scheme, flow, bc)
open(unit=files%BOUNDARY_CONDITIONS_FILE_UNIT, file=files%bcfile)
read(files%BOUNDARY_CONDITIONS_FILE_UNIT, *)
read(files%BOUNDARY_CONDITIONS_FILE_UNIT, *)
read(files%BOUNDARY_CONDITIONS_FILE_UNIT, *)
do while(count<6)
read(files%BOUNDARY_CONDITIONS_FILE_UNIT, "(A)") buf
if(buf(1:1)=='#')then
count=count+1
call get_fixed_values(files, scheme,flow, bc, count)
end if
end do
close(files%BOUNDARY_CONDITIONS_FILE_UNIT)
end subroutine read_fixed_values