IO: Fix a warning in the case of no forcing modes.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
This commit is contained in:
parent
3115ecdabb
commit
fe9c223489
@ -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!"
|
||||
|
Loading…
x
Reference in New Issue
Block a user