Revision fe7dc5e2491f2413023f7dfc51b0feaa0f3ee53e authored by Lars Bilke on 17 April 2023, 08:55:29 UTC, committed by Lars Bilke on 17 April 2023, 08:55:29 UTC
[py] Remove pip install --editable flag for some dependencies. See merge request ogs/ogs!4571
ProcessData.h
/**
* \file
* \copyright
* Copyright (c) 2012-2023, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*/
#pragma once
#include "CoupledSolutionsForStaggeredScheme.h"
#include "NumLib/ODESolver/NonlinearSolver.h"
#include "NumLib/ODESolver/TimeDiscretization.h"
#include "NumLib/ODESolver/Types.h"
#include "NumLib/TimeStepping/Algorithms/TimeStepAlgorithm.h"
#include "NumLib/TimeStepping/TimeStep.h"
#include "Process.h"
namespace ProcessLib
{
struct ProcessData
{
ProcessData(
NumLib::TimeStep timestep_previous_, NumLib::TimeStep timestep_current_,
std::unique_ptr<NumLib::TimeStepAlgorithm>&& timestep_algorithm_,
NumLib::NonlinearSolverTag const nonlinear_solver_tag_,
NumLib::NonlinearSolverBase& nonlinear_solver_,
std::unique_ptr<NumLib::ConvergenceCriterion>&& conv_crit_,
std::unique_ptr<NumLib::TimeDiscretization>&& time_disc_,
int const process_id_, Process& process_)
: timestep_previous(timestep_previous_),
timestep_current(timestep_current_),
timestep_algorithm(std::move(timestep_algorithm_)),
nonlinear_solver_tag(nonlinear_solver_tag_),
nonlinear_solver(nonlinear_solver_),
nonlinear_solver_status{true, 0},
conv_crit(std::move(conv_crit_)),
time_disc(std::move(time_disc_)),
process_id(process_id_),
process(process_)
{
}
ProcessData(ProcessData&& pd)
: timestep_previous(pd.timestep_previous),
timestep_current(pd.timestep_current),
timestep_algorithm(std::move(pd.timestep_algorithm)),
nonlinear_solver_tag(pd.nonlinear_solver_tag),
nonlinear_solver(pd.nonlinear_solver),
nonlinear_solver_status(pd.nonlinear_solver_status),
conv_crit(std::move(pd.conv_crit)),
time_disc(std::move(pd.time_disc)),
tdisc_ode_sys(std::move(pd.tdisc_ode_sys)),
process_id(pd.process_id),
process(pd.process)
{
}
NumLib::TimeStep timestep_previous;
NumLib::TimeStep timestep_current;
std::unique_ptr<NumLib::TimeStepAlgorithm> timestep_algorithm;
//! Tag containing the missing type information necessary to cast the
//! other members of this struct to their concrety types.
NumLib::NonlinearSolverTag const nonlinear_solver_tag;
NumLib::NonlinearSolverBase& nonlinear_solver;
NumLib::NonlinearSolverStatus nonlinear_solver_status;
std::unique_ptr<NumLib::ConvergenceCriterion> conv_crit;
std::unique_ptr<NumLib::TimeDiscretization> time_disc;
//! type-erased time-discretized ODE system
std::unique_ptr<NumLib::EquationSystem> tdisc_ode_sys;
int const process_id;
Process& process;
};
void setEquationSystem(ProcessData const& process_data);
} // namespace ProcessLib
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...