From e5884c9659fa3aa7aadd7276f6e79d645dd6bd61 Mon Sep 17 00:00:00 2001
From: Anne Philipp <anne.philipp@univie.ac.at>
Date: Fri, 7 Dec 2018 17:27:30 +0100
Subject: [PATCH] minor fix for purefc check

---
 source/python/classes/ControlFile.py |  2 +-
 source/python/classes/EcFlexpart.py  | 10 ++++------
 2 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/source/python/classes/ControlFile.py b/source/python/classes/ControlFile.py
index 3dfdc07..d9475ee 100644
--- a/source/python/classes/ControlFile.py
+++ b/source/python/classes/ControlFile.py
@@ -60,7 +60,7 @@ import inspect
 sys.path.append('../')
 import _config
 from mods.tools import my_error, silent_remove
-from mods.checks import check_grid, check_area, check_levels
+from mods.checks import check_grid, check_area, check_levels, check_purefc
 
 # ------------------------------------------------------------------------------
 # CLASS
diff --git a/source/python/classes/EcFlexpart.py b/source/python/classes/EcFlexpart.py
index cf3b751..7b66a26 100644
--- a/source/python/classes/EcFlexpart.py
+++ b/source/python/classes/EcFlexpart.py
@@ -916,12 +916,10 @@ class EcFlexpart(object):
                         else:
                             t_enddate = t_date + timedelta(2*int(c.dtime))
 
-                            # squeeze out information of last two steps contained
-                            # in deac_vals[parId]
-                            # if step+int(c.dtime) == c.maxstep and c.purefc
-                            # or t_dt+timedelta(hours = int(c.dtime))
-                            # >= t_enddate:
-                            # Note that deac_vals[parId][0] has not been popped in this case
+                            # squeeze out information of last two steps
+                            # contained in deac_vals[parId]
+                            # Note that deac_vals[parId][0] has not been popped
+                            # in this case
 
                             if step == c.maxstep and c.purefc or \
                                t_dt == t_enddate:
-- 
GitLab