src/ini_parser.f90: open file for reading

This commit is contained in:
Michele Guerini Rocco 2023-09-14 11:00:56 +02:00
parent 59dfcb7799
commit f5a983f926
Signed by: rnhmjoj
GPG Key ID: BFBAF4C975F76450

View File

@ -75,7 +75,7 @@ contains
! open the INI file
ini = get_free_unit()
open(unit=ini, file=filepath, iostat=error)
open(unit=ini, file=filepath, action='read', iostat=error)
if (error /= 0) then
write (msg, '("failed to open INI file: ", a)') filepath
call log_error(msg, proc='parse_ini', mod='ini_parser')