OGS
SubmeshAssemblySupport.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2// SPDX-License-Identifier: BSD-3-Clause
3
4#pragma once
5
6#include <string>
7#include <vector>
8
9#include "BaseLib/Error.h"
10
11namespace MeshLib
12{
13class Mesh;
14}
15
16namespace ProcessLib
17{
19{
20public:
31 virtual std::vector<std::vector<std::string>> initializeAssemblyOnSubmeshes(
32 std::vector<std::reference_wrapper<MeshLib::Mesh>> const& meshes)
33 {
34 DBUG(
35 "Default implementation of initializeSubmeshAssembly(). Doing "
36 "nothing.");
37
38 if (!meshes.empty())
39 {
41 "Submesh residuum assembly is not implemented for this "
42 "process. You can avoid this error message, e.g., by removing "
43 "<submesh_residuum_output> from the prj file.");
44 }
45
46 return {};
47 }
48
49 virtual ~SubmeshAssemblySupport() = default;
50};
51} // namespace ProcessLib
#define OGS_FATAL(...)
Definition Error.h:19
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
Definition Logging.h:22
virtual ~SubmeshAssemblySupport()=default
virtual std::vector< std::vector< std::string > > initializeAssemblyOnSubmeshes(std::vector< std::reference_wrapper< MeshLib::Mesh > > const &meshes)