SourceTermConfig.h
/**
* \file
* \copyright
* Copyright (c) 2012-2021, 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 "BaseLib/ConfigTree.h"
#include "MeshLib/Mesh.h"
namespace ProcessLib
{
struct SourceTermConfig final
{
SourceTermConfig(BaseLib::ConfigTree&& config_,
MeshLib::Mesh const& mesh_,
std::optional<int> const component_id_)
: config(std::move(config_)), mesh(mesh_), component_id(component_id_)
{
}
SourceTermConfig(SourceTermConfig&& other)
: config(std::move(other.config)),
mesh(other.mesh),
component_id(other.component_id)
{
}
BaseLib::ConfigTree config;
MeshLib::Mesh const& mesh;
std::optional<int> const component_id;
};
} // namespace ProcessLib