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
453ae98b
Commit
453ae98b
authored
Aug 06, 2014
by
Praetorius, Simon
Browse files
expression N() corrected
parent
9c44b131
Changes
1
Hide whitespace changes
Inline
Side-by-side
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
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