Loading...
Searching...
No Matches
FlowsData.hpp
/*
Copyright 2023 SINTEF Digital
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_FLOWS_DATA_HEADER_INCLUDED
#define OPM_FLOWS_DATA_HEADER_INCLUDED
#include <cstddef>
#include <string>
#include <vector>
namespace Opm {
template<class Scalar>
struct FlowsData
{
void resize(const std::size_t size)
{
indices.resize(size);
values.resize(size);
}
std::string name;
std::vector<int> indices;
std::vector<Scalar> values;
};
} // namespace Opm
#endif // OPM_FLOWS_DATA_HEADER_INCLUDED
Opm
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition blackoilbioeffectsmodules.hh:43
Opm::FlowsData
Simple container for FLOWS data.
Definition FlowsData.hpp:32
Opm::FlowsData::resize
void resize(const std::size_t size)
Resize data vectors.
Definition FlowsData.hpp:34
Opm::FlowsData::values
std::vector< Scalar > values
Values.
Definition FlowsData.hpp:42
Opm::FlowsData::name
std::string name
Associated name.
Definition FlowsData.hpp:40
Opm::FlowsData::indices
std::vector< int > indices
Cell indices for values.
Definition FlowsData.hpp:41