OGS
AssembledMatrixCache.cpp
Go to the documentation of this file.
1
11
#include "
AssembledMatrixCache.h
"
12
13
namespace
ProcessLib
14
{
15
AssembledMatrixCache::AssembledMatrixCache
(
bool
const
is_linear,
16
bool
const
use_monolithic_scheme)
17
: is_linear_{is_linear && use_monolithic_scheme}
18
{
19
if
(is_linear && !use_monolithic_scheme)
20
{
21
OGS_FATAL
(
22
"You requested to assemble only once in combination with staggered "
23
"coupling. This use case is not yet implemented."
);
24
}
25
26
if
(
is_linear_
)
27
{
28
WARN
(
29
"You specified that the process simulated by OGS is linear. With "
30
"that optimization the process will be assembled only once and the "
31
"non-linear solver will do only one iteration per time step. No "
32
"non-linearities will be resolved and OGS will not detect if there "
33
"are any non-linearities. It is your responsibility to ensure that "
34
"the assembled equation systems are linear, indeed! There is no "
35
"safety net!"
);
36
}
37
}
38
}
// namespace ProcessLib
AssembledMatrixCache.h
OGS_FATAL
#define OGS_FATAL(...)
Definition
Error.h:26
WARN
void WARN(fmt::format_string< Args... > fmt, Args &&... args)
Definition
Logging.h:40
ProcessLib
Definition
ProjectData.h:51
ProcessLib::AssembledMatrixCache::is_linear_
bool const is_linear_
Definition
AssembledMatrixCache.h:45
ProcessLib::AssembledMatrixCache::AssembledMatrixCache
AssembledMatrixCache(bool const is_linear, bool const use_monolithic_scheme)
Definition
AssembledMatrixCache.cpp:15
ProcessLib
Assembly
AssembledMatrixCache.cpp
Generated by
1.12.0