Steup the file to read the restart state.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(controltype), | intent(in) | :: | control |
subroutine setup_file(control)
!< Steup the file to read the restart state.
implicit none
type(controltype), intent(in) :: control
DebugCall('setup_file')
if (control%read_file_format == "vtk") then
file_format = ".vtk"
elseif (control%read_file_format == "tecplot") then
file_format = ".dat"
else
print*, "File format not recoganised. Accepted formats are"
print*, "'vtk' and 'tecplot' "
end if
if (control%read_data_format == "ASCII") then
data_format = "formatted"
elseif (control%read_data_format == "BINARY") then
data_format = "unformatted"
else
print*, "Data format not recoganised. Accepted formats are"
print*, "'ASCII' and 'BINARY' "
end if
end subroutine setup_file