Close the file after writing solution.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | file_handler | |||
character(len=*), | intent(in) | :: | filename |
subroutine close_file(file_handler, filename)
!< Close the file after writing solution.
implicit none
integer, intent(in) :: file_handler
character(len=*), intent(in) :: filename
DebugCall('write_output_vtk: close_file')
call rename(trim(filename)//trim(file_format)//'.part', trim(filename)//trim(file_format))
close(file_handler)
end subroutine close_file