Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Aland, Sebastian
amdis
Commits
d5795006
Commit
d5795006
authored
Oct 05, 2012
by
Naumann, Andreas
Browse files
vtu reader is gcc-4.7 compatible now
parent
d3764c3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
extensions/VtuReader.h
View file @
d5795006
...
...
@@ -104,6 +104,30 @@ namespace AMDiS {
}
};
inline
void
valueVector2type
(
std
::
vector
<
double
>
p
,
double
&
value
)
{
if
(
p
.
size
()
==
0
)
throw
(
std
::
runtime_error
(
"Not enough data for assignment!
\n
"
));
value
=
p
[
0
];
}
inline
void
valueVector2type
(
std
::
vector
<
double
>
p
,
WorldVector
<
double
>&
value
)
{
if
(
p
.
size
()
!=
Global
::
getGeo
(
WORLD
))
throw
(
std
::
runtime_error
(
"Not enough data for assignment!
\n
"
));
for
(
int
i
=
0
;
i
<
Global
::
getGeo
(
WORLD
);
i
++
)
value
[
i
]
=
p
[
i
];
}
inline
void
valueVector2type
(
std
::
vector
<
double
>
p
,
std
::
vector
<
double
>&
value
)
{
if
(
p
.
size
()
==
0
)
throw
(
std
::
runtime_error
(
"Not enough data for assignment!
\n
"
));
for
(
int
i
=
0
;
i
<
p
.
size
();
i
++
)
value
.
push_back
(
p
[
i
]);
}
inline
void
string2pointList
(
std
::
string
&
input
,
std
::
vector
<
WorldVector
<
double
>
>&
pointList
)
{
...
...
@@ -199,30 +223,6 @@ namespace AMDiS {
}
}
inline
void
valueVector2type
(
std
::
vector
<
double
>
p
,
double
&
value
)
{
if
(
p
.
size
()
==
0
)
throw
(
std
::
runtime_error
(
"Not enough data for assignment!
\n
"
));
value
=
p
[
0
];
}
inline
void
valueVector2type
(
std
::
vector
<
double
>
p
,
WorldVector
<
double
>&
value
)
{
if
(
p
.
size
()
!=
Global
::
getGeo
(
WORLD
))
throw
(
std
::
runtime_error
(
"Not enough data for assignment!
\n
"
));
for
(
int
i
=
0
;
i
<
Global
::
getGeo
(
WORLD
);
i
++
)
value
[
i
]
=
p
[
i
];
}
inline
void
valueVector2type
(
std
::
vector
<
double
>
p
,
std
::
vector
<
double
>&
value
)
{
if
(
p
.
size
()
==
0
)
throw
(
std
::
runtime_error
(
"Not enough data for assignment!
\n
"
));
for
(
int
i
=
0
;
i
<
p
.
size
();
i
++
)
value
.
push_back
(
p
[
i
]);
}
// find point in mesh using KD-tree structure
inline
size_t
getNearestIndex
(
experimental
::
KD_Tree
&
tree
,
WorldVector
<
double
>&
x
)
{
...
...
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