https://mooseframework.inl.gov
MooseTypes.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #include "MooseTypes.h"
11 #include "libmesh/elem.h"
12 #include "libmesh/libmesh.h"
13 
14 #include "nlohmann/json.h"
15 
16 namespace Moose
17 {
21 const BoundaryID ANY_BOUNDARY_ID = static_cast<BoundaryID>(-1);
23 const TagID INVALID_TAG_ID = static_cast<TagID>(-1);
24 const TagTypeID INVALID_TAG_TYPE_ID = static_cast<TagTypeID>(-1);
25 const TagName SOLUTION_TAG = "SOLUTION";
26 const TagName OLD_SOLUTION_TAG = "SOLUTION_STATE_1";
27 const TagName OLDER_SOLUTION_TAG = "SOLUTION_STATE_2";
28 const TagName PREVIOUS_NL_SOLUTION_TAG = "U_PREVIOUS_NL_NEWTON";
29 }
30 
35 #define DerivativeStringToJSON(TheName) \
36  namespace nlohmann \
37  { \
38  void adl_serializer<TheName>::to_json(json & j, const TheName & v) \
39  { \
40  j = static_cast<std::string>(v); \
41  } \
42  } \
43  static_assert(true, "")
44 DerivativeStringToJSON(FileName);
45 DerivativeStringToJSON(FileNameNoExtension);
46 DerivativeStringToJSON(RelativeFileName);
47 DerivativeStringToJSON(DataFileName);
48 DerivativeStringToJSON(MeshFileName);
49 DerivativeStringToJSON(MatrixFileName);
50 DerivativeStringToJSON(OutFileBase);
51 DerivativeStringToJSON(NonlinearVariableName);
52 DerivativeStringToJSON(LinearVariableName);
53 DerivativeStringToJSON(SolverVariableName);
54 DerivativeStringToJSON(AuxVariableName);
55 DerivativeStringToJSON(VariableName);
56 DerivativeStringToJSON(BoundaryName);
57 DerivativeStringToJSON(SubdomainName);
58 DerivativeStringToJSON(PostprocessorName);
59 DerivativeStringToJSON(VectorPostprocessorName);
60 DerivativeStringToJSON(MeshDivisionName);
61 DerivativeStringToJSON(FunctionName);
62 DerivativeStringToJSON(DistributionName);
63 DerivativeStringToJSON(SamplerName);
64 DerivativeStringToJSON(UserObjectName);
65 DerivativeStringToJSON(IndicatorName);
66 DerivativeStringToJSON(MarkerName);
67 DerivativeStringToJSON(MultiAppName);
68 DerivativeStringToJSON(OutputName);
69 DerivativeStringToJSON(MaterialPropertyName);
70 DerivativeStringToJSON(MooseFunctorName);
71 DerivativeStringToJSON(MaterialName);
72 DerivativeStringToJSON(TagName);
73 DerivativeStringToJSON(MeshGeneratorName);
74 DerivativeStringToJSON(ExtraElementIDName);
75 DerivativeStringToJSON(ReporterValueName);
76 DerivativeStringToJSON(PositionsName);
77 DerivativeStringToJSON(TimesName);
78 DerivativeStringToJSON(ExecutorName);
79 DerivativeStringToJSON(ParsedFunctionExpression);
80 DerivativeStringToJSON(NonlinearSystemName);
81 DerivativeStringToJSON(LinearSystemName);
82 DerivativeStringToJSON(SolverSystemName);
83 DerivativeStringToJSON(CLIArgString);
unsigned int TagTypeID
Definition: MooseTypes.h:211
const TagTypeID INVALID_TAG_TYPE_ID
Definition: MooseTypes.C:24
unsigned int TagID
Definition: MooseTypes.h:210
const BoundaryID INVALID_BOUNDARY_ID
Definition: MooseTypes.C:22
const TagName OLDER_SOLUTION_TAG
Definition: MooseTypes.C:27
const SubdomainID INVALID_BLOCK_ID
Definition: MooseTypes.C:20
uint8_t processor_id_type
static const subdomain_id_type invalid_subdomain_id
static const boundary_id_type invalid_id
const TagName OLD_SOLUTION_TAG
Definition: MooseTypes.C:26
static const processor_id_type invalid_processor_id
boundary_id_type BoundaryID
const processor_id_type INVALID_PROCESSOR_ID
Definition: MooseTypes.C:18
const SubdomainID ANY_BLOCK_ID
Definition: MooseTypes.C:19
DerivativeStringToJSON(FileName)
const TagID INVALID_TAG_ID
Definition: MooseTypes.C:23
const TagName SOLUTION_TAG
Definition: MooseTypes.C:25
MOOSE now contains C++17 code, so give a reasonable error message stating what the user can do to add...
const TagName PREVIOUS_NL_SOLUTION_TAG
Definition: MooseTypes.C:28
const BoundaryID ANY_BOUNDARY_ID
Definition: MooseTypes.C:21