opm-common
WriteInit.hpp
1 /*
2  Copyright (c) 2019 Equinor ASA
3 
4  This file is part of the Open Porous Media project (OPM).
5 
6  OPM is free software: you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  OPM is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with OPM. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
20 #ifndef OPM_WRITE_INIT_HPP
21 #define OPM_WRITE_INIT_HPP
22 
23 #include "opm/input/eclipse/EclipseState/Grid/NNC.hpp"
24 #include <map>
25 #include <string>
26 #include <vector>
27 
28 namespace Opm {
29 
30  class EclipseGrid;
31  class EclipseState;
32  struct NNCdata;
33  class Schedule;
34 
35 } // namespace Opm
36 
37 namespace Opm { namespace data {
38 
39  class Solution;
40 
41 }} // namespace Opm::data
42 
43 namespace Opm { namespace EclIO { namespace OutputStream {
44 
45  class Init;
46 
47 }}} // namespace Opm::EclIO::OutputStream
48 
49 namespace Opm { namespace InitIO {
50 
51  void write(const ::Opm::EclipseState& es,
52  const ::Opm::EclipseGrid& grid,
53  const ::Opm::Schedule& schedule,
54  const ::Opm::data::Solution& simProps,
55  std::map<std::string, std::vector<int>> int_data,
56  const std::vector<::Opm::NNCdata>& nnc,
57  ::Opm::EclIO::OutputStream::Init& initFile);
58 
59  void write(const ::Opm::EclipseState& es,
60  const ::Opm::EclipseGrid& grid,
61  const ::Opm::Schedule& schedule,
62  const std::vector<std::reference_wrapper<const ::Opm::data::Solution>> simProps,
63  std::map<std::string, std::vector<int>> int_data,
64  const std::vector<::Opm::NNCdata>& nnc,
65  ::Opm::EclIO::OutputStream::Init& initFile);
66 
67  void write(const ::Opm::EclipseState& es,
68  const ::Opm::EclipseGrid& grid,
69  const ::Opm::Schedule& schedule,
70  const std::vector<std::reference_wrapper<const ::Opm::data::Solution>> simProps,
71  std::map<std::string, std::vector<int>> int_data,
72  const NNCCollection& nnc_col,
73  ::Opm::EclIO::OutputStream::Init& initFile);
74 
75 
76 }} // namespace Opm::InitIO
77 
78 #endif // OPM_WRITE_INIT_HPP
File manager for "init" output streams.
Definition: OutputStream.hpp:56
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition: Exceptions.hpp:30