Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
amdis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iwr
amdis
Commits
d5795006
Commit
d5795006
authored
12 years ago
by
Naumann, Andreas
Browse files
Options
Downloads
Patches
Plain Diff
vtu reader is gcc-4.7 compatible now
parent
d3764c3c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
extensions/VtuReader.h
+24
-24
24 additions, 24 deletions
extensions/VtuReader.h
with
24 additions
and
24 deletions
extensions/VtuReader.h
+
24
−
24
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
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment