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
453ae98b
Commit
453ae98b
authored
Aug 06, 2014
by
Praetorius, Simon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
expression N() corrected
parent
9c44b131
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
+14
-8
AMDiS/src/expressions/coords_expr.hpp
AMDiS/src/expressions/coords_expr.hpp
+14
-8
No files found.
AMDiS/src/expressions/coords_expr.hpp
View file @
453ae98b
...
...
@@ -176,9 +176,9 @@ namespace AMDiS
{
typedef
WorldVector
<
double
>
value_type
;
mutable
WorldVector
<
double
>
normal
;
int
side
;
int
boundary
;
Normals
(
int
side_
)
:
side
(
side
_
)
{}
Normals
(
int
boundary_
)
:
boundary
(
boundary
_
)
{}
template
<
typename
List
>
void
insertFeSpaces
(
List
&
feSpaces
)
const
{}
...
...
@@ -187,19 +187,25 @@ namespace AMDiS
template
<
typename
OT
>
void
initElement
(
OT
*
ot
,
const
ElInfo
*
elInfo
,
SubAssembler
*
subAssembler
,
Quadrature
*
quad
,
const
BasisFunction
*
basisFct
=
NULL
)
SubAssembler
*
subAssembler
,
Quadrature
*
quad
,
const
BasisFunction
*
basisFct
=
NULL
)
{
elInfo
->
getNormal
(
side
,
normal
);
int
dim
=
elInfo
->
getMesh
()
->
getDim
();
for
(
int
side
=
0
;
side
<
dim
+
1
;
++
side
)
{
if
(
elInfo
->
getBoundary
(
side
)
==
boundary
)
{
elInfo
->
getNormal
(
side
,
normal
);
break
;
}
}
}
template
<
typename
OT
>
void
initElement
(
OT
*
ot
,
const
ElInfo
*
smallElInfo
,
const
ElInfo
*
largeElInfo
,
SubAssembler
*
subAssembler
,
Quadrature
*
quad
,
const
BasisFunction
*
basisFct
=
NULL
)
SubAssembler
*
subAssembler
,
Quadrature
*
quad
,
const
BasisFunction
*
basisFct
=
NULL
)
{
smallElInfo
->
getNormal
(
side
,
normal
);
initElement
(
ot
,
smallElInfo
,
subAssembler
,
quad
,
basisFct
);
}
inline
value_type
operator
()(
const
int
&
iq
)
const
{
return
normal
;
}
...
...
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