Files
opm-common/opm/parser/eclipse/EclipseState/Grid/FaultCollection.hpp
Jørgen Kvalsvik f0ae5db131 opm-parser adoption of Deck automatic ownership
Since the Deck* family of classes have changed their interfaces to no
longer use shared_ptr, a lot of code broke. This patch fixes all
problems in tests, other signatures and accesses to now use the new Deck
interfaces.
2016-02-18 13:27:24 +01:00

58 lines
1.7 KiB
C++

/*
Copyright 2014 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 FAULT_COLLECTION_HPP_
#define FAULT_COLLECTION_HPP_
#include <cstddef>
#include <string>
#include <memory>
#include <opm/parser/eclipse/EclipseState/Util/OrderedMap.hpp>
namespace Opm {
class Deck;
class GRIDSection;
class EclipseGrid;
class Fault;
class GRIDSection;
class FaultCollection {
public:
FaultCollection();
FaultCollection( std::shared_ptr<const GRIDSection> deck, std::shared_ptr<const EclipseGrid> grid);
size_t size() const;
bool hasFault(const std::string& faultName) const;
std::shared_ptr<Fault> getFault(const std::string& faultName);
std::shared_ptr<const Fault> getFault(const std::string& faultName) const;
std::shared_ptr<Fault> getFault(size_t faultIndex);
std::shared_ptr<const Fault> getFault(size_t faultIndex) const;
void addFault(std::shared_ptr<Fault> fault);
void setTransMult(const std::string& faultName , double transMult);
private:
OrderedMap<std::shared_ptr<Fault > > m_faults;
};
}
#endif