Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
iwr
amdis
Commits
15962e03
Commit
15962e03
authored
Jun 03, 2010
by
Backofen, Rainer
Browse files
definition change in usage of GridWriter, details ask rainer
parent
8c0fc620
Changes
2
Hide whitespace changes
Inline
Side-by-side
AMDiS/src/GridWriter.h
View file @
15962e03
...
...
@@ -38,9 +38,9 @@ namespace AMDiS {
* Produces a grid-based output of a dof-vector or vector of dof-vectors
* \param p array of world coordinates.
* - p[0] defines origin of grid-system.
* - p[1] defines first basis vector by p[1]
-
p[0].
* - p[2] defines second basis vector by p[2]
-
p[0] (dim >= 2).
* - p[3] defines third basis vector by p[3]
-
p[0] (dim == 3).
* - p[1] defines first basis vector by p[1]
relatively to
p[0].
* - p[2] defines second basis vector by p[2]
relatively to
p[0]
.
(dim >= 2).
* - p[3] defines third basis vector by p[3]
relatively to
p[0]
.
(dim == 3).
* \param numPoints number of grid points for the different dirctions
* - numPoints[0] number of grid points in the first direction
* - numPoints[1] number of grid points in the second direction
...
...
AMDiS/src/GridWriter.hh
View file @
15962e03
...
...
@@ -48,7 +48,7 @@ namespace AMDiS {
// get basis of grid
for
(
int
i
=
0
;
i
<
dim
;
i
++
)
{
for
(
int
j
=
0
;
j
<
dim
;
j
++
)
{
basis
[
i
][
j
]
=
p
[
i
+
1
][
j
]
-
p
[
0
][
j
]
;
basis
[
i
][
j
]
=
p
[
i
+
1
][
j
]
;
lengthBasis
[
i
]
+=
basis
[
i
][
j
]
*
basis
[
i
][
j
];
}
lengthBasis
[
i
]
=
sqrt
(
lengthBasis
[
i
]);
...
...
@@ -160,7 +160,7 @@ namespace AMDiS {
// get basis of grid
for
(
int
i
=
0
;
i
<
dim
;
i
++
)
{
for
(
int
j
=
0
;
j
<
dim
;
j
++
)
{
basis
[
i
][
j
]
=
p
[
i
+
1
][
j
]
-
p
[
0
][
j
]
;
basis
[
i
][
j
]
=
p
[
i
+
1
][
j
]
;
lengthBasis
[
i
]
+=
basis
[
i
][
j
]
*
basis
[
i
][
j
];
}
lengthBasis
[
i
]
=
sqrt
(
lengthBasis
[
i
]);
...
...
Write
Preview
Supports
Markdown
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