From a886881fb44ef90fdb5facc9ef1bb84b1ce984ed Mon Sep 17 00:00:00 2001
From: Marco Ratto <marco.ratto@jrc.ec.europa.eu>
Date: Fri, 8 Oct 2010 19:44:44 +0200
Subject: [PATCH] bug fix for serial computation

---
 matlab/pm3_core.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/matlab/pm3_core.m b/matlab/pm3_core.m
index 2fdd3aa1ed..be15e0f137 100644
--- a/matlab/pm3_core.m
+++ b/matlab/pm3_core.m
@@ -101,7 +101,7 @@ for i=fpar:nvar
         title(name,'Interpreter','none')
     end
     
-    if isstruct(options_.parallel)
+    if whoiam,
         if Parallel(ThisMatlab).Local==0
              DirectoryName = CheckPath('Output');
         end
-- 
GitLab