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
e465e5b5
Commit
e465e5b5
authored
15 years ago
by
Oliver Sander
Committed by
sander@PCPOOL.MI.FU-BERLIN.DE
15 years ago
Browse files
Options
Downloads
Patches
Plain Diff
assemble-methods are virtual now
[[Imported from SVN: r4038]]
parent
60870867
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/geodesicfeassembler.hh
+6
-10
6 additions, 10 deletions
src/geodesicfeassembler.hh
with
6 additions
and
10 deletions
src/geodesicfeassembler.hh
+
6
−
10
View file @
e465e5b5
...
...
@@ -40,21 +40,17 @@ public:
/** \brief Assemble the tangent stiffness matrix
*/
void
assembleMatrix
(
const
std
::
vector
<
TargetSpace
>&
sol
,
virtual
void
assembleMatrix
(
const
std
::
vector
<
TargetSpace
>&
sol
,
Dune
::
BCRSMatrix
<
MatrixBlock
>&
matrix
)
const
;
/** \brief Assemble the gradient */
void
assembleGradient
(
const
std
::
vector
<
TargetSpace
>&
sol
,
virtual
void
assembleGradient
(
const
std
::
vector
<
TargetSpace
>&
sol
,
Dune
::
BlockVector
<
Dune
::
FieldVector
<
double
,
blocksize
>
>&
grad
)
const
;
/** \brief Assemble the gradient using a finite difference approximation */
void
assembleGradientFD
(
const
std
::
vector
<
TargetSpace
>&
sol
,
Dune
::
BlockVector
<
Dune
::
FieldVector
<
double
,
blocksize
>
>&
grad
)
const
;
/** \brief Compute the energy of a deformation state */
double
computeEnergy
(
const
std
::
vector
<
TargetSpace
>&
sol
)
const
;
virtual
double
computeEnergy
(
const
std
::
vector
<
TargetSpace
>&
sol
)
const
;
protected
:
//
protected:
void
getNeighborsPerVertex
(
Dune
::
MatrixIndexSet
&
nb
)
const
;
};
// end class
...
...
@@ -151,8 +147,8 @@ assembleGradient(const std::vector<TargetSpace>& sol,
grad
.
resize
(
sol
.
size
());
grad
=
0
;
ElementIterator
it
=
gridView_
->
template
begin
<
0
>();
ElementIterator
endIt
=
gridView_
->
template
end
<
0
>();
ElementIterator
it
=
gridView_
.
template
begin
<
0
>();
ElementIterator
endIt
=
gridView_
.
template
end
<
0
>();
// Loop over all elements
for
(;
it
!=
endIt
;
++
it
)
{
...
...
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