IO: Fix a warning in the case of no forcing modes.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
This commit is contained in:
Grzegorz Kowal 2020-08-19 22:49:46 -03:00
parent 3115ecdabb
commit fe9c223489

View File

@ -4255,8 +4255,8 @@ module io
! restore forcing coefficients
!
call read_attribute(gid, 'nmodes', lnmodes)
if (lnmodes == nmodes .and. lnmodes > 0) then
call read_attribute(gid, 'fcoefs', fcoefs)
if (lnmodes == nmodes) then
if (lnmodes > 0) call read_attribute(gid, 'fcoefs', fcoefs)
else
write(error_unit,"('[',a,']: ',a)") trim(loc) &
, "The number of driving modes does not match!"