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
006ef150
Commit
006ef150
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
don't keep a grid view -- there is already one in the base class
[[Imported from SVN: r5691]]
parent
8436c76c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/rodassembler.cc
+7
-7
7 additions, 7 deletions
src/rodassembler.cc
src/rodassembler.hh
+2
-6
2 additions, 6 deletions
src/rodassembler.hh
with
9 additions
and
13 deletions
src/rodassembler.cc
+
7
−
7
View file @
006ef150
...
...
@@ -18,7 +18,7 @@ assembleGradient(const std::vector<RigidBodyMotion<3> >& sol,
{
using
namespace
Dune
;
const
typename
GridView
::
Traits
::
IndexSet
&
indexSet
=
gridView_
.
indexSet
();
const
typename
GridView
::
Traits
::
IndexSet
&
indexSet
=
this
->
gridView_
.
indexSet
();
if
(
sol
.
size
()
!=
indexSet
.
size
(
gridDim
))
DUNE_THROW
(
Exception
,
"Solution vector doesn't match the grid!"
);
...
...
@@ -26,8 +26,8 @@ assembleGradient(const std::vector<RigidBodyMotion<3> >& sol,
grad
.
resize
(
sol
.
size
());
grad
=
0
;
ElementIterator
it
=
gridView_
.
template
begin
<
0
>();
ElementIterator
endIt
=
gridView_
.
template
end
<
0
>();
ElementIterator
it
=
this
->
gridView_
.
template
begin
<
0
>();
ElementIterator
endIt
=
this
->
gridView_
.
template
end
<
0
>();
// Loop over all elements
for
(;
it
!=
endIt
;
++
it
)
{
...
...
@@ -62,7 +62,7 @@ getStrain(const std::vector<RigidBodyMotion<3> >& sol,
{
using
namespace
Dune
;
const
typename
GridView
::
Traits
::
IndexSet
&
indexSet
=
gridView_
.
indexSet
();
const
typename
GridView
::
Traits
::
IndexSet
&
indexSet
=
this
->
gridView_
.
indexSet
();
if
(
sol
.
size
()
!=
indexSet
.
size
(
gridDim
))
DUNE_THROW
(
Exception
,
"Solution vector doesn't match the grid!"
);
...
...
@@ -71,8 +71,8 @@ getStrain(const std::vector<RigidBodyMotion<3> >& sol,
strain
.
resize
(
indexSet
.
size
(
0
));
strain
=
0
;
ElementIterator
it
=
gridView_
.
template
begin
<
0
>();
ElementIterator
endIt
=
gridView_
.
template
end
<
0
>();
ElementIterator
it
=
this
->
gridView_
.
template
begin
<
0
>();
ElementIterator
endIt
=
this
->
gridView_
.
template
end
<
0
>();
// Loop over all elements
for
(;
it
!=
endIt
;
++
it
)
{
...
...
@@ -151,7 +151,7 @@ getResultantForce(const BoundaryPatchBase<PatchGridView>& boundary,
// if (gridView_ != &boundary.gridView())
// DUNE_THROW(Dune::Exception, "The boundary patch has to match the grid view of the assembler!");
const
typename
GridView
::
Traits
::
IndexSet
&
indexSet
=
gridView_
.
indexSet
();
const
typename
GridView
::
Traits
::
IndexSet
&
indexSet
=
this
->
gridView_
.
indexSet
();
if
(
sol
.
size
()
!=
indexSet
.
size
(
gridDim
))
DUNE_THROW
(
Exception
,
"Solution vector doesn't match the grid!"
);
...
...
This diff is collapsed.
Click to expand it.
src/rodassembler.hh
+
2
−
6
View file @
006ef150
...
...
@@ -33,15 +33,11 @@ class RodAssembler : public GeodesicFEAssembler<GridView, RigidBodyMotion<3> >
//!
typedef
Dune
::
FieldMatrix
<
double
,
blocksize
,
blocksize
>
MatrixBlock
;
/** \todo public only for debugging! */
public
:
GridView
gridView_
;
public
:
//! ???
RodAssembler
(
const
GridView
&
gridView
,
RodLocalStiffness
<
GridView
,
double
>*
localStiffness
)
:
GeodesicFEAssembler
<
GridView
,
RigidBodyMotion
<
3
>
>
(
gridView
,
localStiffness
),
gridView_
(
gridView
)
:
GeodesicFEAssembler
<
GridView
,
RigidBodyMotion
<
3
>
>
(
gridView
,
localStiffness
)
{
std
::
vector
<
RigidBodyMotion
<
3
>
>
referenceConfiguration
(
gridView
.
size
(
gridDim
));
...
...
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