#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
- ep.cpp, mofem/src/materials/MatOps.hpp, mofem/tutorials/vec-2_nonlinear_elasticity/src/NonlinearElasticExample.hpp, and mofem/users_modules/eshelbian_plasticity/ep.cpp.
Definition at line 30 of file MatOps.cpp.
30 {
32
34
35 if (tag >= 0) {
38 << "Tag name: " << name
39 << " is already registered with tag: " << it->second
40 << ". Overwriting with new tag: " << tag;
41 it->second = -1;
42 }
44 if (p.second == tag) {
46 "Tag: " + std::to_string(tag) +
47 " is already registered with name: " + p.first);
48 }
49 }
50
52 return tag;
53 }
54
55 int max_tag = 0;
57 if (p.second > max_tag) {
58 max_tag = p.second;
59 }
60 }
61
64 }
65
67 << "Tag name: " << name
69
71}
#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: