Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ext-edelen_a
src
Commits
5cfa1007
Commit
5cfa1007
authored
Oct 30, 2018
by
kraus
Browse files
fixing typo and correct possible strings for sampling types
parent
60b4de13
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/Sample/OpalSample.cpp
src/Sample/OpalSample.cpp
+3
-3
No files found.
src/Sample/OpalSample.cpp
View file @
5cfa1007
...
...
@@ -34,7 +34,7 @@ OpalSample::OpalSample():
,
size_m
(
1
)
{
itsAttr
[
TYPE
]
=
Attributes
::
makeString
(
"TYPE"
,
"UNIFORM_INT, UNIFORM
_REAL, SEQUENCE
, FROMFILE"
);
(
"TYPE"
,
"UNIFORM_INT, UNIFORM
, GAUSSIAN
, FROMFILE"
);
itsAttr
[
VARIABLE
]
=
Attributes
::
makeString
(
"VARIABLE"
,
"Name of design variable"
);
...
...
@@ -111,7 +111,7 @@ void OpalSample::initialize(const std::string &dvarName,
size_m
=
static_cast
<
FromFile
*>
(
sampleMethod_m
.
get
())
->
getSize
();
}
else
{
throw
OpalException
(
"OpalSample::initOpalSample()"
,
"Unkown sampling method: '"
+
type
+
"'."
);
"Unk
n
own sampling method: '"
+
type
+
"'."
);
}
}
else
{
if
(
type
==
"UNIFORM_INT"
)
{
...
...
@@ -138,7 +138,7 @@ void OpalSample::initialize(const std::string &dvarName,
size_m
=
static_cast
<
FromFile
*>
(
sampleMethod_m
.
get
())
->
getSize
();
}
else
{
throw
OpalException
(
"OpalSample::initOpalSample()"
,
"Unkown sampling method: '"
+
type
+
"'."
);
"Unk
n
own sampling method: '"
+
type
+
"'."
);
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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