From bae742112fb253541f10862d48118ee9a463f597 Mon Sep 17 00:00:00 2001
From: Henry Weller <http://cfd.direct>
Date: Wed, 25 May 2016 15:39:37 +0100
Subject: [PATCH] postProcess: catch missing field errors to process further
 time-directories

---
 .../functionObjectList/postProcess.H          | 20 +++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/src/OpenFOAM/db/functionObjects/functionObjectList/postProcess.H b/src/OpenFOAM/db/functionObjects/functionObjectList/postProcess.H
index 01e9e2de61e..a736546f2cf 100644
--- a/src/OpenFOAM/db/functionObjects/functionObjectList/postProcess.H
+++ b/src/OpenFOAM/db/functionObjects/functionObjectList/postProcess.H
@@ -105,20 +105,20 @@ if (argList::postProcess(argc, argv))
                 functionObjectList::New(args, runTime, functionObjectsDict);
         }
 
-        #include INCLUDE_FILE(CREATE_FIELDS)
-
-        #ifdef CREATE_FIELDS_2
-        #include INCLUDE_FILE(CREATE_FIELDS_2)
-        #endif
-
-        #ifdef CREATE_FIELDS_3
-        #include INCLUDE_FILE(CREATE_FIELDS_3)
-        #endif
-
         FatalIOError.throwExceptions();
 
         try
         {
+            #include INCLUDE_FILE(CREATE_FIELDS)
+
+            #ifdef CREATE_FIELDS_2
+            #include INCLUDE_FILE(CREATE_FIELDS_2)
+            #endif
+
+            #ifdef CREATE_FIELDS_3
+            #include INCLUDE_FILE(CREATE_FIELDS_3)
+            #endif
+
             functionObjectsPtr->execute(true);
         }
         catch (IOerror& err)
-- 
GitLab