From 6a3f63c2bcb81fcbd24137cb2bcb7e656093652a Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Wed, 29 Sep 2021 09:56:17 +0200 Subject: [PATCH] BUG: error write() method not marked as virtual (fixes #2218) - slices on output and misses file/line information for IOerror --- src/OpenFOAM/db/error/error.H | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OpenFOAM/db/error/error.H b/src/OpenFOAM/db/error/error.H index 13f88a8755..e7ecf16fbf 100644 --- a/src/OpenFOAM/db/error/error.H +++ b/src/OpenFOAM/db/error/error.H @@ -225,7 +225,7 @@ public: void abort(); //- Print error message - void write(Ostream& os, const bool includeTitle = true) const; + virtual void write(Ostream& os, const bool includeTitle = true) const; // Housekeeping @@ -348,7 +348,7 @@ public: void abort(); //- Print error message - void write(Ostream& os, const bool includeTitle = true) const; + virtual void write(Ostream& os, const bool includeTitle = true) const; };