Files
opm-common/opm/parser/eclipse/EclipseState/Grid/FaultCollection.hpp

56 lines
1.6 KiB
C++
Raw Normal View History

2014-07-05 13:45:35 +02:00
/*
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>
2014-09-04 14:09:33 +02:00
#include <opm/parser/eclipse/EclipseState/Util/OrderedMap.hpp>
2014-07-05 13:45:35 +02:00
namespace Opm {
class Deck;
class EclipseGrid;
class Fault;
2014-07-05 13:45:35 +02:00
class FaultCollection {
public:
FaultCollection();
FaultCollection( std::shared_ptr<const Deck> deck, std::shared_ptr<const EclipseGrid> grid);
2014-07-05 13:45:35 +02:00
size_t size() const;
bool hasFault(const std::string& faultName) const;
2015-12-21 14:54:38 +01:00
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;
2014-07-05 13:45:35 +02:00
void addFault(std::shared_ptr<Fault> fault);
void setTransMult(const std::string& faultName , double transMult);
private:
OrderedMap<std::shared_ptr<Fault > > m_faults;
};
}
#endif