Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Backofen, Rainer
amdis
Commits
b0a2bb7e
Commit
b0a2bb7e
authored
Jun 01, 2010
by
Thomas Witkowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Constructures for Vector_FOT and VecCoordsAtQP_FOT changed.
parent
fd82b971
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
AMDiS/src/FirstOrderTerm.cc
AMDiS/src/FirstOrderTerm.cc
+1
-1
AMDiS/src/FirstOrderTerm.h
AMDiS/src/FirstOrderTerm.h
+6
-6
No files found.
AMDiS/src/FirstOrderTerm.cc
View file @
b0a2bb7e
...
...
@@ -132,7 +132,7 @@ namespace AMDiS {
{
const
DimVec
<
WorldVector
<
double
>
>
&
Lambda
=
elInfo
->
getGrdLambda
();
for
(
int
iq
=
0
;
iq
<
nPoints
;
iq
++
)
lb
(
Lambda
,
b
,
Lb
[
iq
],
(
*
g
)(
coordsAtQPs
[
iq
]));
lb
(
Lambda
,
*
b
,
Lb
[
iq
],
(
*
g
)(
coordsAtQPs
[
iq
]));
}
void
VecCoordsAtQP_FOT
::
eval
(
int
nPoints
,
...
...
AMDiS/src/FirstOrderTerm.h
View file @
b0a2bb7e
...
...
@@ -198,7 +198,7 @@ namespace AMDiS {
{
public:
/// Constructor.
Vector_FOT
(
WorldVector
<
double
>
wv
)
Vector_FOT
(
WorldVector
<
double
>
*
wv
)
:
FirstOrderTerm
(
0
),
b
(
wv
)
{}
...
...
@@ -221,7 +221,7 @@ namespace AMDiS {
lb_one
(
Lambda
,
Lb
[
iq
],
1.0
);
}
else
{
for
(
int
iq
=
0
;
iq
<
nPoints
;
iq
++
)
lb
(
Lambda
,
b
,
Lb
[
iq
],
1.0
);
lb
(
Lambda
,
*
b
,
Lb
[
iq
],
1.0
);
}
}
...
...
@@ -235,12 +235,12 @@ namespace AMDiS {
{
if
(
grdUhAtQP
)
for
(
int
iq
=
0
;
iq
<
nPoints
;
iq
++
)
result
[
iq
]
+=
b
*
grdUhAtQP
[
iq
]
*
factor
;
result
[
iq
]
+=
*
b
*
grdUhAtQP
[
iq
]
*
factor
;
}
protected:
/// Vector which is multiplied with \f$ \nabla u(\vec{x}) \f$
WorldVector
<
double
>
b
;
WorldVector
<
double
>
*
b
;
};
/**
...
...
@@ -346,7 +346,7 @@ namespace AMDiS {
public:
/// Constructor.
VecCoordsAtQP_FOT
(
AbstractFunction
<
double
,
WorldVector
<
double
>
>
*
af
,
WorldVector
<
double
>
wv
)
WorldVector
<
double
>
*
wv
)
:
FirstOrderTerm
(
af
->
getDegree
()),
g
(
af
),
b
(
wv
)
{}
...
...
@@ -374,7 +374,7 @@ namespace AMDiS {
AbstractFunction
<
double
,
WorldVector
<
double
>
>
*
g
;
/// Coefficient vector.
WorldVector
<
double
>
b
;
WorldVector
<
double
>
*
b
;
};
/**
...
...
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