From 7a2e177dc2b7eab9fc1f85424441f4d2d501a85c Mon Sep 17 00:00:00 2001
From: Jan Polcher <jan.polcher@lmd.jussieu.fr>
Date: Sun, 16 Jun 2019 11:18:18 +0200
Subject: [PATCH] Forgot the test if region is large enough to do a SUPERMESH
 plot.

---
 RoutingPreProc.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/RoutingPreProc.py b/RoutingPreProc.py
index dafcbe0..b4e5cb2 100644
--- a/RoutingPreProc.py
+++ b/RoutingPreProc.py
@@ -161,7 +161,8 @@ if nbcore == 1 :
 print("=================== LINKUP ====================")
 hsuper.linkup(hydrodata)
 if nbcore == 1 :
-    DP.SUPERMESHPLOT("MapSuperGrid_Afterlinkup", lonint, latint, hoverlap, hsuper, modelgrid.polyll)
+    if lonint[0] != lonint[1] and latint[0] != latint[1] :
+        DP.SUPERMESHPLOT("MapSuperGrid_Afterlinkup", lonint, latint, hoverlap, hsuper, modelgrid.polyll)
 
 #
 # Do some memory management and synchronize procs.
-- 
GitLab