From f99c30e4a7d0664900fd49f7213eceb91094c991 Mon Sep 17 00:00:00 2001
From: Oliver Sander <sander@igpm.rwth-aachen.de>
Date: Fri, 22 Aug 2014 19:43:19 +0000
Subject: [PATCH] Don't abort when the order is not 2 -- simply warn and skip

[[Imported from SVN: r9859]]
---
 dune/gfe/cosseratvtkwriter.hh | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/dune/gfe/cosseratvtkwriter.hh b/dune/gfe/cosseratvtkwriter.hh
index 0c859a42..e9cbbca5 100644
--- a/dune/gfe/cosseratvtkwriter.hh
+++ b/dune/gfe/cosseratvtkwriter.hh
@@ -440,7 +440,10 @@ public:
 
         // We only do P2 spaces at the moment
         if (order != 2)
-          abort();
+        {
+          std::cout << "Warning: CosseratVTKWriter only supports P2 spaces -- skipping" << std::endl;
+          return;
+        }
 
         std::string fullfilename = filename + ".vtu";
 
-- 
GitLab