Loading...
Searching...
No Matches
AggregateWListData.hpp
/*
Copyright (c) 2018 Statoil ASA
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 <http://www.gnu.org/licenses/>.
*/
#ifndef OPM_AGGREGATE_WLIST_DATA_HPP
#define OPM_AGGREGATE_WLIST_DATA_HPP
#include <opm/output/eclipse/WindowedArray.hpp>
#include <opm/io/eclipse/PaddedOutputString.hpp>
#include <cstddef>
#include <vector>
namespace Opm {
class Schedule;
} // Opm
namespace Opm { namespace data {
class Wells;
}} // Opm::data
namespace Opm { namespace RestartIO { namespace Helpers {
class AggregateWListData
{
public:
explicit AggregateWListData(const std::vector<int>& inteHead);
void captureDeclaredWListData(const Schedule& sched,
const std::size_t sim_step,
const std::vector<int>& inteHead);
const std::vector<int>& getIWls() const
{
return this->iWls_.data();
}
const std::vector<EclIO::PaddedOutputString<8>>& getZWls() const
{
return this->zWls_.data();
}
private:
WindowedArray<int> iWls_;
WindowedArray<EclIO::PaddedOutputString<8>> zWls_;
};
}}} // Opm::RestartIO::Helpers
#endif // OPM_AGGREGATE_WLIST_DATA_HPP
WindowedArray.hpp
Provide facilities to simplify constructing restart vectors such as IWEL or RSEG.
Opm::RestartIO::Helpers::AggregateWListData::getIWls
const std::vector< int > & getIWls() const
Retrieve Integer WLIST Data Array.
Definition AggregateWListData.hpp:51
Opm::RestartIO::Helpers::AggregateWListData::getZWls
const std::vector< EclIO::PaddedOutputString< 8 > > & getZWls() const
Retrieve Character WLIST Data Array.
Definition AggregateWListData.hpp:57
Opm::RestartIO::Helpers::WindowedArray
Provide read-only and read/write access to constantly sized portions/windows of a linearised buffer w...
Definition WindowedArray.hpp:50
Opm::Schedule
Definition Schedule.hpp:101
Opm::data::Wells
Definition Wells.hpp:1199
Opm
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30