Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-gfe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
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
Sander, Oliver
dune-gfe
Commits
f6cfbc49
Commit
f6cfbc49
authored
13 years ago
by
Youett, Jonathan
Committed by
akbib@FU-BERLIN.DE
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
accidentially commited this file before finishing the whole adaption to the new basis structure
[[Imported from SVN: r7939]]
parent
e7c21fcf
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/gfe/globalgfetestfunction.hh
+10
-19
10 additions, 19 deletions
dune/gfe/globalgfetestfunction.hh
with
10 additions
and
19 deletions
dune/gfe/globalgfetestfunction.hh
+
10
−
19
View file @
f6cfbc49
...
...
@@ -77,40 +77,31 @@ void GlobalGFETestFunction<Basis,TargetSpace>::evaluateLocal(const Element& elem
for
(
int
i
=
0
;
i
<
values
.
size
();
i
++
)
{
int
index
=
basis_
.
index
(
element
,
i
);
for
(
int
j
=
0
;
j
<
tangentDim
;
j
++
)
{
values
[
i
][
j
]
*=
coefficients
[
index
][
j
];
values
[
i
][
j
]
*=
coefficients
_
[
index
][
j
];
out
+=
values
[
i
][
j
];
}
}
}
template
<
class
Basis
,
class
TargetSpace
,
class
CoefficientType
>
void
GlobalGFETestFunction
<
Basis
,
TargetSpace
>::
evaluateDerivativeLocal
(
const
Element
&
element
,
const
Dune
::
FieldVector
<
gridDim
,
ctype
>&
local
,
Dune
::
FieldMatrix
<
ctype
,
embeddedDim
,
gridDim
>&
out
)
const
{
int
numOfBasisFct
=
basis_
.
getLocalFiniteElement
(
element
).
size
();
// Extract local base and test coefficients
std
::
vector
<
TargetSpace
>
localBaseCoeff
(
numOfBaseFct
);
std
::
vector
<
TangentVector
>
localTestCoeff
(
numOfBaseFct
);
for
(
int
i
=
0
;
i
<
numOfBaseFct
;
i
++
)
{
localBaseCoeff
[
i
]
=
baseCoefficients_
[
basis_
.
index
(
element
,
i
)];
localTestCoeff
[
i
]
=
testCoefficients_
[
basis_
.
index
(
element
,
i
)];
}
// jacobians of the test basis function - a lot of dims here...
std
::
vector
<
Dune
::
array
<
Dune
::
FieldMatrix
<
ctype
,
embeddedDim
,
gridDim
>
,
tangentDim
>
>
jacobians
;
// create local gfe test function
LocalGFETestFunction
localGFE
(
basis_
.
getLocalFiniteElement
(
element
),
localBaseCoeff
);
localGFE
.
evaluateJacobian
(
local
,
jacobians
);
// evaluate local gfe test function basis
basis_
.
getLocalFiniteElement
(
element
).
localBasis
().
evaluateJacobian
(
local
,
jacobians
);
// multiply values with the corresponding test coefficients
// multiply values with the corresponding test coefficients
and sum them up
out
=
0
;
for
(
int
i
=
0
;
i
<
jacobians
.
size
();
i
++
)
for
(
int
i
=
0
;
i
<
jacobians
.
size
();
i
++
)
{
int
index
=
basis_
.
index
(
element
,
i
);
for
(
int
j
=
0
;
j
<
tangentDim
;
j
++
)
{
jacobians
[
i
][
j
]
*=
localTestCoeff
[
i
][
j
];
out
+=
value
s
[
i
][
j
];
jacobians
[
i
][
j
]
*=
coefficients_
[
index
][
j
];
out
+=
jacobian
s
[
i
][
j
];
}
}
}
#endif
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