Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
KiT-RT
KiT-RT
Commits
e2cf5ad9
Commit
e2cf5ad9
authored
Feb 11, 2021
by
Steffen Schotthöfer
Browse files
small fix in datagenderator for L =1
parent
ce627b7e
Pipeline
#134348
failed with stage
in 60 minutes and 5 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
code/input/exampleDataGen.cfg
View file @
e2cf5ad9
...
...
@@ -7,8 +7,8 @@
%
% ---- Global settings ----
DATA_GENERATOR_MODE = YES
TRAINING_SET_SIZE = 10
0000
MAX_VALUE_FIRST_MOMENT =
1
0
TRAINING_SET_SIZE = 10
MAX_VALUE_FIRST_MOMENT =
50
0
BOUNDARY_DISTANCE_REALIZABLE_SET = 0.01
%
% ---- File specifications ----
...
...
code/src/toolboxes/datagenerator.cpp
View file @
e2cf5ad9
...
...
@@ -133,7 +133,7 @@ void nnDataGenerator::SampleSolutionU() {
// Use necessary conditions from Monreal, Dissertation, Chapter 3.2.1, Page 26
// --- Determine stepsizes etc ---
double
du0
=
_settings
->
GetMaxValFirstMoment
()
/
(
double
)
_
set
Size
;
double
du0
=
_settings
->
GetMaxValFirstMoment
()
/
(
double
)
_
grid
Size
;
// different processes for different
if
(
_LMaxDegree
==
0
)
{
...
...
@@ -260,7 +260,10 @@ void nnDataGenerator::CheckRealizability() {
for
(
unsigned
idx_set
=
0
;
idx_set
<
_setSize
;
idx_set
++
)
{
if
(
_uSol
[
idx_set
][
0
]
<
epsilon
)
{
if
(
std
::
abs
(
_uSol
[
idx_set
][
1
]
)
>
0
||
std
::
abs
(
_uSol
[
idx_set
][
2
]
)
>
0
||
std
::
abs
(
_uSol
[
idx_set
][
3
]
)
>
0
)
{
ErrorMessages
::
Error
(
"Moment not realizable [code 0]."
,
CURRENT_FUNCTION
);
ErrorMessages
::
Error
(
"Moment not realizable [code 0]. Values: ("
+
std
::
to_string
(
_uSol
[
idx_set
][
0
]
)
+
"|"
+
std
::
to_string
(
_uSol
[
idx_set
][
1
]
)
+
"|"
+
std
::
to_string
(
_uSol
[
idx_set
][
2
]
)
+
"|"
+
std
::
to_string
(
_uSol
[
idx_set
][
3
]
)
+
")"
,
CURRENT_FUNCTION
);
}
}
else
{
...
...
jannick.wolters
@jm2154
mentioned in commit
8cd90597
·
Apr 30, 2021
mentioned in commit
8cd90597
mentioned in commit 8cd90597488703ae851b3c2adf7b8c562aa37ffd
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment