-
Notifications
You must be signed in to change notification settings - Fork 97
feat: Input error when a box does not select anything #3808
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
2c3a2a7
bfe7b49
82055c1
94104fb
c125ae2
b1fe1a0
37bc92d
bb3a1ac
5f84879
d93c3d8
ed02e2b
1de66c8
c19069f
59d2d7a
3dca3c4
9054c64
0fbd101
7db4040
5599217
3d89422
82359ae
f6bd260
26fba63
af62cbc
58e284c
f09ef8d
5521545
e993c6e
3fe65b0
30e85fd
2d8ea45
e469dfd
abedcc5
97bc914
03f061d
869ddaf
d7a3aea
4a83b8e
02e981e
03d280e
7433d26
0fe2c58
1017ecd
13b012c
ec86c38
8840280
39675d7
88d9589
65ed1a0
a28b7c6
b95f304
3387d4a
308f0e8
54c013a
4ee688e
a5f2a43
874186b
2886078
4b3161a
562842f
181e571
03c20b2
7c79821
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -82,10 +82,14 @@ FieldSpecificationBase::FieldSpecificationBase( string const & name, Group * par | |
| setInputFlag( InputFlags::OPTIONAL ). | ||
| setDescription( "Time at which the boundary condition will stop being applied." ); | ||
|
|
||
| registerWrapper( viewKeyStruct::errorAsWarningString(), &m_errorAsWarning ). | ||
| setApplyDefaultValue( 1 ). | ||
| registerWrapper( viewKeyStruct::emptySetErrorModeString(), &m_emptySetErrorMode ). | ||
| setApplyDefaultValue( setErrorMode::Error ). | ||
| setInputFlag( InputFlags::OPTIONAL ). | ||
| setDescription( "Converts an error into a warning" ); | ||
| setDescription( "Set the log state when we a “set” does not target any region\n" | ||
|
||
| "When set to 0, no output\n" | ||
MelReyCG marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| "When set to 1, output an error\n" | ||
| "When set to 2, output a throw\n" ); | ||
|
|
||
| } | ||
|
|
||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -108,6 +108,8 @@ class FieldSpecificationBase : public dataRepository::Group | |||||
| /// deleted move assignement | ||||||
| FieldSpecificationBase & operator=( FieldSpecificationBase && ) = delete; | ||||||
|
|
||||||
| enum setErrorMode : integer { Silent = 0, Error = 1, SurfaceGeneratorWarning = 2 }; | ||||||
MelReyCG marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
|
|
||||||
| /** | ||||||
| * @brief Apply this field specification to the discretization | ||||||
| * | ||||||
|
|
@@ -393,7 +395,7 @@ class FieldSpecificationBase : public dataRepository::Group | |||||
| /// @return The key for endTime | ||||||
| constexpr static char const * endTimeString() { return "endTime"; } | ||||||
| /// @return The key errorAsWarning | ||||||
| constexpr static char const * errorAsWarningString() { return "errorAsWarning"; } | ||||||
| constexpr static char const * emptySetErrorModeString() { return "errorAsWarning"; } | ||||||
| }; | ||||||
|
|
||||||
| /** | ||||||
|
|
@@ -554,7 +556,7 @@ class FieldSpecificationBase : public dataRepository::Group | |||||
| */ | ||||||
| integer getErrorAsWarning() const | ||||||
| { | ||||||
| return m_errorAsWarning; | ||||||
| return m_emptySetErrorMode; | ||||||
| } | ||||||
|
|
||||||
|
|
||||||
|
|
@@ -602,7 +604,7 @@ class FieldSpecificationBase : public dataRepository::Group | |||||
| string m_bcApplicationFunctionName; | ||||||
|
|
||||||
| /// Value indicating whether we converts an error into a warning | ||||||
|
||||||
| integer m_errorAsWarning; | ||||||
| integer m_emptySetErrorMode; | ||||||
|
||||||
| integer m_emptySetErrorMode; | |
| SetErrorMode m_emptySetErrorMode; |
Uh oh!
There was an error while loading. Please reload this page.