added: ability to pass command line parameters from python

This commit is contained in:
Arne Morten Kvarving
2024-11-25 10:41:28 +01:00
parent d0bcf54b00
commit 4d5a67fa82
4 changed files with 40 additions and 5 deletions

View File

@@ -40,7 +40,8 @@ private:
using Simulator = Opm::GetPropType<TypeTag, Opm::Properties::Simulator>;
public:
PyBlackOilSimulator( const std::string& deckFilename);
PyBlackOilSimulator(const std::string& deckFilename,
const std::vector<std::string>& args);
PyBlackOilSimulator(
std::shared_ptr<Opm::Deck> deck,
std::shared_ptr<Opm::EclipseState> state,
@@ -92,6 +93,7 @@ private:
std::shared_ptr<Opm::EclipseState> eclipse_state_;
std::shared_ptr<Opm::Schedule> schedule_;
std::shared_ptr<Opm::SummaryConfig> summary_config_;
std::vector<std::string> args_;
};
} // namespace Opm::Pybind