From 06f32f3d37a8f6f9e1df1a21bc968b00bb1ead3c Mon Sep 17 00:00:00 2001 From: Williham Williham Totland Date: Fri, 24 Apr 2020 09:49:18 +0200 Subject: [PATCH] Projects unit type into columns. --- src/opm/output/eclipse/report/WELSPECS.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/opm/output/eclipse/report/WELSPECS.cpp b/src/opm/output/eclipse/report/WELSPECS.cpp index 58852c222..f86c6aedb 100644 --- a/src/opm/output/eclipse/report/WELSPECS.cpp +++ b/src/opm/output/eclipse/report/WELSPECS.cpp @@ -24,6 +24,7 @@ #include #include +#include namespace { @@ -80,7 +81,7 @@ namespace { return s; } - template + template struct column { using fetch_function = std::function; using format_function = std::function; @@ -109,9 +110,9 @@ namespace { } }; - template - struct table: std::vector> { - using std::vector>::vector; + template + struct table: std::vector> { + using std::vector>::vector; std::size_t total_width() const { std::size_t r { 1 + this->size() } ; @@ -158,15 +159,15 @@ namespace { }; - template + template struct report { std::string title; std::string decor; - table column_definition; + table column_definition; const context ctx; - report(const std::string& _title, const table& _coldef, const context& _ctx) + report(const std::string& _title, const table& _coldef, const context& _ctx) : title { _title } , decor { underline(title) } , column_definition { _coldef }