2020-03-19 03:10:19 -05:00
|
|
|
/*
|
|
|
|
Copyright 2020 Equinor AS.
|
|
|
|
|
|
|
|
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/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <config.h>
|
2020-09-20 15:16:07 -05:00
|
|
|
|
|
|
|
#include <opm/simulators/utils/ParallelSerialization.hpp>
|
|
|
|
|
2021-12-14 01:30:15 -06:00
|
|
|
#include <opm/input/eclipse/EclipseState/EclipseState.hpp>
|
2023-01-09 07:23:35 -06:00
|
|
|
#include <opm/input/eclipse/EclipseState/Grid/TransMult.hpp>
|
|
|
|
#include <opm/input/eclipse/EclipseState/SummaryConfig/SummaryConfig.hpp>
|
|
|
|
|
2023-01-09 06:54:30 -06:00
|
|
|
#include <opm/input/eclipse/Schedule/GasLiftOpt.hpp>
|
2023-01-09 08:22:12 -06:00
|
|
|
#include <opm/input/eclipse/Schedule/RPTConfig.hpp>
|
2021-12-14 01:30:15 -06:00
|
|
|
#include <opm/input/eclipse/Schedule/Schedule.hpp>
|
2023-01-10 05:37:34 -06:00
|
|
|
#include <opm/input/eclipse/Schedule/Action/Actions.hpp>
|
2021-12-14 01:30:15 -06:00
|
|
|
#include <opm/input/eclipse/Schedule/Action/ASTNode.hpp>
|
2023-01-09 07:23:35 -06:00
|
|
|
#include <opm/input/eclipse/Schedule/Action/State.hpp>
|
2023-01-10 05:37:34 -06:00
|
|
|
#include <opm/input/eclipse/Schedule/Group/GConSale.hpp>
|
2023-01-10 05:37:34 -06:00
|
|
|
#include <opm/input/eclipse/Schedule/Group/GConSump.hpp>
|
2023-01-09 07:23:35 -06:00
|
|
|
#include <opm/input/eclipse/Schedule/Group/GuideRateConfig.hpp>
|
2021-12-14 01:30:15 -06:00
|
|
|
#include <opm/input/eclipse/Schedule/MSW/SICD.hpp>
|
|
|
|
#include <opm/input/eclipse/Schedule/MSW/Valve.hpp>
|
2023-01-10 05:37:34 -06:00
|
|
|
#include <opm/input/eclipse/Schedule/MSW/WellSegments.hpp>
|
2023-01-10 05:37:34 -06:00
|
|
|
#include <opm/input/eclipse/Schedule/Network/Balance.hpp>
|
2023-01-10 05:37:34 -06:00
|
|
|
#include <opm/input/eclipse/Schedule/Network/ExtNetwork.hpp>
|
2023-01-10 05:37:34 -06:00
|
|
|
#include <opm/input/eclipse/Schedule/RFTConfig.hpp>
|
2023-01-10 05:37:34 -06:00
|
|
|
#include <opm/input/eclipse/Schedule/UDQ/UDQActive.hpp>
|
2021-12-14 01:30:15 -06:00
|
|
|
#include <opm/input/eclipse/Schedule/UDQ/UDQState.hpp>
|
|
|
|
#include <opm/input/eclipse/Schedule/UDQ/UDQASTNode.hpp>
|
|
|
|
#include <opm/input/eclipse/Schedule/UDQ/UDQConfig.hpp>
|
2023-01-10 04:57:48 -06:00
|
|
|
#include <opm/input/eclipse/Schedule/Well/NameOrder.hpp>
|
2023-01-10 05:37:34 -06:00
|
|
|
#include <opm/input/eclipse/Schedule/Well/WellConnections.hpp>
|
2023-01-18 02:58:45 -06:00
|
|
|
#include <opm/input/eclipse/Schedule/Well/Well.hpp>
|
2023-01-10 05:37:34 -06:00
|
|
|
#include <opm/input/eclipse/Schedule/Well/WellBrineProperties.hpp>
|
2023-01-10 05:37:34 -06:00
|
|
|
#include <opm/input/eclipse/Schedule/Well/WellEconProductionLimits.hpp>
|
2023-01-10 05:37:34 -06:00
|
|
|
#include <opm/input/eclipse/Schedule/Well/WellFoamProperties.hpp>
|
2023-01-10 05:37:34 -06:00
|
|
|
#include <opm/input/eclipse/Schedule/Well/WellMICPProperties.hpp>
|
2023-01-10 05:37:34 -06:00
|
|
|
#include <opm/input/eclipse/Schedule/Well/WellPolymerProperties.hpp>
|
2023-01-11 07:12:20 -06:00
|
|
|
#include <opm/input/eclipse/Schedule/Well/WellTestConfig.hpp>
|
2021-12-14 01:30:15 -06:00
|
|
|
#include <opm/input/eclipse/Schedule/Well/WellTestState.hpp>
|
2023-01-10 05:37:34 -06:00
|
|
|
#include <opm/input/eclipse/Schedule/Well/WellTracerProperties.hpp>
|
2023-01-18 02:58:45 -06:00
|
|
|
#include <opm/input/eclipse/Schedule/Well/WList.hpp>
|
|
|
|
#include <opm/input/eclipse/Schedule/Well/WListManager.hpp>
|
2023-01-10 05:37:34 -06:00
|
|
|
#include <opm/input/eclipse/Schedule/Well/WVFPEXP.hpp>
|
2020-03-19 03:10:19 -05:00
|
|
|
|
|
|
|
#include <ebos/eclmpiserializer.hh>
|
|
|
|
|
|
|
|
#include <dune/common/parallel/mpihelper.hh>
|
|
|
|
|
|
|
|
namespace Opm {
|
|
|
|
|
2021-05-25 05:57:11 -05:00
|
|
|
void eclStateBroadcast(Parallel::Communication comm, EclipseState& eclState, Schedule& schedule,
|
2021-09-24 07:42:15 -05:00
|
|
|
SummaryConfig& summaryConfig,
|
|
|
|
UDQState& udqState,
|
2021-10-11 07:38:41 -05:00
|
|
|
Action::State& actionState,
|
2021-10-15 07:14:40 -05:00
|
|
|
WellTestState& wtestState)
|
2020-03-19 03:10:19 -05:00
|
|
|
{
|
2021-05-25 05:57:11 -05:00
|
|
|
Opm::EclMpiSerializer ser(comm);
|
2022-09-07 06:43:23 -05:00
|
|
|
ser.broadcast(0, eclState, schedule, summaryConfig, udqState, actionState, wtestState);
|
2020-03-19 03:10:19 -05:00
|
|
|
}
|
|
|
|
|
2021-11-08 05:02:04 -06:00
|
|
|
template <class T>
|
|
|
|
void eclBroadcast(Parallel::Communication comm, T& data)
|
2020-11-23 13:15:15 -06:00
|
|
|
{
|
2021-05-25 05:57:11 -05:00
|
|
|
Opm::EclMpiSerializer ser(comm);
|
2021-11-08 05:02:04 -06:00
|
|
|
ser.broadcast(data);
|
2020-11-23 13:15:15 -06:00
|
|
|
}
|
2021-11-08 05:02:04 -06:00
|
|
|
|
|
|
|
template void eclBroadcast<TransMult>(Parallel::Communication, TransMult&);
|
|
|
|
template void eclBroadcast<Schedule>(Parallel::Communication, Schedule&);
|
|
|
|
|
2020-03-19 03:10:19 -05:00
|
|
|
}
|