Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
CrayzeeWulf
Xdmf
Commits
6db38e95
Commit
6db38e95
authored
Aug 14, 2013
by
Kenneth Leiter
Browse files
Options
Browse Files
Download
Plain Diff
ENH: Merge minor performance improvements.
parents
ae817cd9
5bae0794
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
core/XdmfArrayType.cpp
core/XdmfArrayType.cpp
+4
-3
core/XdmfArrayType.hpp
core/XdmfArrayType.hpp
+3
-2
No files found.
core/XdmfArrayType.cpp
View file @
6db38e95
...
...
@@ -109,6 +109,9 @@ XdmfArrayType::XdmfArrayType(const std::string & name,
mName
(
name
),
mPrecision
(
precision
)
{
std
::
stringstream
precisionString
;
precisionString
<<
precision
;
mPrecisionString
=
precisionString
.
str
();
}
XdmfArrayType
::~
XdmfArrayType
()
...
...
@@ -193,7 +196,5 @@ void
XdmfArrayType
::
getProperties
(
std
::
map
<
std
::
string
,
std
::
string
>
&
collectedProperties
)
const
{
collectedProperties
.
insert
(
std
::
make_pair
(
"DataType"
,
mName
));
std
::
stringstream
precision
;
precision
<<
mPrecision
;
collectedProperties
.
insert
(
std
::
make_pair
(
"Precision"
,
precision
.
str
()));
collectedProperties
.
insert
(
std
::
make_pair
(
"Precision"
,
mPrecisionString
));
}
core/XdmfArrayType.hpp
View file @
6db38e95
...
...
@@ -111,8 +111,9 @@ private:
static
shared_ptr
<
const
XdmfArrayType
>
New
(
const
std
::
map
<
std
::
string
,
std
::
string
>
&
itemProperties
);
std
::
string
mName
;
unsigned
int
mPrecision
;
const
std
::
string
mName
;
const
unsigned
int
mPrecision
;
std
::
string
mPrecisionString
;
};
#endif
/* XDMFARRAYTYPE_HPP_ */
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