check filetype before reading in source

This commit is contained in:
Bryan Herman 2014-03-05 17:42:45 -05:00
parent c5d29c4077
commit 17793dfdcf

View file

@ -49,6 +49,12 @@ contains
! Read the file type
call sp % read_data(itmp, "filetype")
! Check to make sure this is a source file
if (itmp /= FILETYPE_SOURCE) then
message = "Specified starting source file not a source file type."
call fatal_error()
end if
! Read in the source bank
call sp % read_source_bank()