From 14ea3e6dd170e0ed5b537dfef78c8ca979cb6b8c Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Tue, 8 Jun 2021 15:43:45 +0200 Subject: [PATCH] SimulatorFullyIplicitBlackoilEbos: avoid boost includes in header --- CMakeLists_files.cmake | 1 + .../SimulatorFullyImplicitBlackoilEbos.cpp | 64 +++++++++++++++++++ .../SimulatorFullyImplicitBlackoilEbos.hpp | 30 ++------- 3 files changed, 71 insertions(+), 24 deletions(-) create mode 100644 opm/simulators/flow/SimulatorFullyImplicitBlackoilEbos.cpp diff --git a/CMakeLists_files.cmake b/CMakeLists_files.cmake index b44105f7b..53b195596 100644 --- a/CMakeLists_files.cmake +++ b/CMakeLists_files.cmake @@ -37,6 +37,7 @@ list (APPEND MAIN_SOURCE_FILES opm/simulators/timestepping/SimulatorReport.cpp opm/simulators/flow/countGlobalCells.cpp opm/simulators/flow/KeywordValidation.cpp + opm/simulators/flow/SimulatorFullyImplicitBlackoilEbos.cpp opm/simulators/linalg/ExtractParallelGridInformationToISTL.cpp opm/simulators/linalg/FlexibleSolver1.cpp opm/simulators/linalg/FlexibleSolver2.cpp diff --git a/opm/simulators/flow/SimulatorFullyImplicitBlackoilEbos.cpp b/opm/simulators/flow/SimulatorFullyImplicitBlackoilEbos.cpp new file mode 100644 index 000000000..cb47963a0 --- /dev/null +++ b/opm/simulators/flow/SimulatorFullyImplicitBlackoilEbos.cpp @@ -0,0 +1,64 @@ +/* + Copyright 2013, 2015, 2020 SINTEF Digital, Mathematics and Cybernetics. + Copyright 2015 Andreas Lauser + Copyright 2017 IRIS + + This file is part of the Open Porous Media project (OPM). + + OPM is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + OPM is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with OPM. If not, see . +*/ + +#include + +#include +#include +#include + +#include + +#include +#include + +namespace Opm { + +void outputReportStep(const SimulatorTimer& timer) +{ + std::ostringstream stepMsg; + boost::posix_time::time_facet* facet = new boost::posix_time::time_facet("%d-%b-%Y"); + stepMsg.imbue(std::locale(std::locale::classic(), facet)); + stepMsg << "\nReport step " << std::setw(2) < { namespace Opm { +void outputReportStep(const SimulatorTimer& timer); +void outputTimestampFIP(const SimulatorTimer& timer, + const std::string& title, + const std::string& version); /// a simulator for the blackoil model template @@ -199,15 +203,7 @@ public: } if (terminalOutput_) { - std::ostringstream stepMsg; - boost::posix_time::time_facet* facet = new boost::posix_time::time_facet("%d-%b-%Y"); - stepMsg.imbue(std::locale(std::locale::classic(), facet)); - stepMsg << "\nReport step " << std::setw(2) <