#include "src/adolc/AdolCOps.hpp"
Definition at line 13 of file AdolCOps.hpp.
◆ atTagName()
| static auto AdolCOps::AdolCTagsRegistry::atTagName |
( |
std::string |
name | ) |
|
|
inlinestatic |
◆ getTagByName()
| static int AdolCOps::AdolCTagsRegistry::getTagByName |
( |
std::string |
name | ) |
|
|
inlinestaticprivate |
Definition at line 60 of file AdolCOps.hpp.
60 {
65 return new_tag;
66 }
67 return it->second;
68 }
◆ setTagName()
| static auto AdolCOps::AdolCTagsRegistry::setTagName |
( |
std::string |
name, |
|
|
int |
tag = -1 |
|
) |
| |
|
inlinestatic |
- Examples
- mofem/tutorials/vec-2_nonlinear_elasticity/src/NonlinearElasticExample.hpp.
Definition at line 16 of file AdolCOps.hpp.
16 {
18
20
21 if (tag >= 0) {
24 << "Tag name: " << name
25 << " is already registered with tag: " << it->second
26 << ". Overwriting with new tag: " << tag;
27 it->second = -1;
28 }
30 if (p.second == tag) {
32 "Tag: " + std::to_string(tag) +
33 " is already registered with name: " + p.first);
34 }
35 }
36
38 return tag;
39 }
40
41 int max_tag = 0;
43 if (p.second > max_tag) {
44 max_tag = p.second;
45 }
46 }
47
50 }
51
53 << "Tag name: " << name
55
57 }
#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> AdolCOps::AdolCTagsRegistry::tagNameVsTag |
|
inlinestaticprivate |
The documentation for this struct was generated from the following file: