From af5673108ec55584673ed564fa3888053b2505f0 Mon Sep 17 00:00:00 2001 From: Grzegorz Kowal Date: Fri, 11 Sep 2020 19:09:58 -0300 Subject: [PATCH] IO: Search for the last restart snapshot only if nrest = 0. Signed-off-by: Grzegorz Kowal --- sources/io.F90 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/io.F90 b/sources/io.F90 index 0e4b900..086df8b 100644 --- a/sources/io.F90 +++ b/sources/io.F90 @@ -347,7 +347,7 @@ module io ! check the last available restart snapshot ! - if (nrest < 0) then + if (nrest == 0) then test = .true. nrest = 0