Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-elasticity
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
agnumpde
dune-elasticity
Commits
fb75b6de
Commit
fb75b6de
authored
12 years ago
by
akbib
Committed by
akbib@FU-BERLIN.DE
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
store a pointer to the global basis instead of a reference
[[Imported from SVN: r11185]]
parent
d9d1aa24
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/elasticity/materials/geomexactstvenantkirchhoffmaterial.hh
+7
-6
7 additions, 6 deletions
...lasticity/materials/geomexactstvenantkirchhoffmaterial.hh
with
7 additions
and
6 deletions
dune/elasticity/materials/geomexactstvenantkirchhoffmaterial.hh
+
7
−
6
View file @
fb75b6de
...
...
@@ -49,7 +49,7 @@ public:
nu_
(
nu
)
{}
void
setup
(
ctype
E
,
ctype
nu
)
void
setup
(
ctype
E
,
ctype
nu
,
const
Basis
&
basis
)
{
E_
=
E
;
nu_
=
nu
;
...
...
@@ -60,7 +60,8 @@ public:
localLinearization_
=
Dune
::
shared_ptr
<
LocalLinearization
>
(
new
LocalLinearization
(
E
,
nu
));
localHessian_
=
Dune
::
shared_ptr
<
LocalHessian
>
(
new
LocalHessian
(
E
,
nu
));
basis_
=
&
basis
;
}
//! Evaluate the strain energy
...
...
@@ -68,7 +69,7 @@ public:
ctype
energy
(
const
CoeffType
&
coeff
)
{
// make grid function
BasisGridFunction
<
Basis
,
CoeffType
>
configuration
(
basis_
,
coeff
);
BasisGridFunction
<
Basis
,
CoeffType
>
configuration
(
*
basis_
,
coeff
);
ctype
energy
=
0
;
const
GridType
&
grid
=
configuration
.
grid
();
...
...
@@ -79,7 +80,7 @@ public:
for
(;
eIt
!=
eItEnd
;
++
eIt
)
{
// get quadrature rule
QuadratureRuleKey
quad1
(
basis_
.
getLocalFiniteElement
(
*
eIt
));
QuadratureRuleKey
quad1
(
basis_
->
getLocalFiniteElement
(
*
eIt
));
QuadratureRuleKey
quadKey
=
quad1
.
derivative
().
square
().
square
();
const
Dune
::
template
QuadratureRule
<
ctype
,
dim
>
&
quad
=
QuadratureRuleCache
<
ctype
,
dim
>::
rule
(
quadKey
);
...
...
@@ -124,7 +125,7 @@ public:
LocalHessian
&
secondDerivative
()
{
return
*
localHessian_
;}
//! Return the global basis
const
Basis
&
basis
()
{
return
basis_
;}
const
Basis
&
basis
()
{
return
*
basis_
;}
private
:
//! First derivative of the strain energy
...
...
@@ -134,7 +135,7 @@ private:
Dune
::
shared_ptr
<
LocalHessian
>
localHessian_
;
//! Global basis used for the spatial discretization
const
Basis
&
basis_
;
const
Basis
*
basis_
;
//! Elasticity modulus
ctype
E_
;
...
...
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