#include "src/materials/MatOps.hpp"
Definition at line 24 of file MatOps.hpp.
◆ atTagName()
| int MatOps::MatOpsTagsRegistry::atTagName |
( |
std::string |
name | ) |
|
|
static |
◆ getTagByName()
| int MatOps::MatOpsTagsRegistry::getTagByName |
( |
std::string |
name | ) |
|
|
staticprotected |
◆ getTagName()
| std::string MatOps::MatOpsTagsRegistry::getTagName |
( |
int |
tag | ) |
|
|
static |
◆ setTagName()
| int MatOps::MatOpsTagsRegistry::setTagName |
( |
std::string |
name, |
|
|
int |
tag = -1 |
|
) |
| |
|
static |
- Examples
- mofem/src/materials/MatOps.hpp, and mofem/tutorials/vec-2_nonlinear_elasticity/src/NonlinearElasticExample.hpp.
Definition at line 29 of file MatOps.cpp.
29 {
30#ifndef NDEBUG
32#endif
33
35
36 if (tag >= 0) {
38#ifndef NDEBUG
40 << "Tag name: " << name
41 << " is already registered with tag: " << it->second
42 << ". Overwriting with new tag: " << tag;
43#endif
44 it->second = -1;
45 }
46#ifndef NDEBUG
48 if (p.second == tag) {
50 "Tag: " + std::to_string(tag) +
51 " is already registered with name: " + p.first);
52 }
53 }
54#endif
55
57 return tag;
58 }
59
60 int max_tag = 0;
62 if (p.second > max_tag) {
63 max_tag = p.second;
64 }
65 }
66
69 }
70
71#ifndef NDEBUG
73 << "Tag name: " << name
75#endif
76
78}
#define CHK_THROW_MESSAGE(err, msg)
Check and throw MoFEM exception.
@ MOFEM_OPERATION_UNSUCCESSFUL
#define MOFEM_LOG(channel, severity)
Log.
#define MOFEM_LOG_CHANNEL(channel)
Set and reset channel.
◆ tagNameVsTag
| std::map<std::string, int> MatOps::MatOpsTagsRegistry::tagNameVsTag |
|
inlinestaticprotected |
The documentation for this struct was generated from the following files: