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
38539eec
Commit
38539eec
authored
18 years ago
by
Oliver Sander
Committed by
sander@PCPOOL.MI.FU-BERLIN.DE
18 years ago
Browse files
Options
Downloads
Patches
Plain Diff
cleanup
[[Imported from SVN: r818]]
parent
9164962a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/planarrodassembler.cc
+6
-10
6 additions, 10 deletions
src/planarrodassembler.cc
src/planarrodassembler.hh
+2
-2
2 additions, 2 deletions
src/planarrodassembler.hh
with
8 additions
and
12 deletions
src/planarrodassembler.cc
+
6
−
10
View file @
38539eec
...
...
@@ -3,12 +3,12 @@
#include
<dune/istl/matrixindexset.hh>
#include
<dune/common/matrix.hh>
#include
<dune/
quadrature
/quadraturerules.hh>
#include
<dune/
grid/common
/quadraturerules.hh>
#include
<dune/disc/shapefunctions/lagrangeshapefunctions.hh>
template
<
class
GridType
,
int
polOrd
>
void
Dune
::
RodAssembler
<
GridType
,
polOrd
>::
void
Dune
::
Planar
RodAssembler
<
GridType
,
polOrd
>::
getNeighborsPerVertex
(
MatrixIndexSet
&
nb
)
const
{
const
int
gridDim
=
GridType
::
dimension
;
...
...
@@ -44,7 +44,7 @@ getNeighborsPerVertex(MatrixIndexSet& nb) const
}
template
<
class
GridType
,
int
polOrd
>
void
Dune
::
RodAssembler
<
GridType
,
polOrd
>::
void
Dune
::
Planar
RodAssembler
<
GridType
,
polOrd
>::
assembleMatrix
(
const
BlockVector
<
FieldVector
<
double
,
blocksize
>
>&
sol
,
BCRSMatrix
<
MatrixBlock
>&
matrix
)
{
...
...
@@ -105,7 +105,7 @@ assembleMatrix(const BlockVector<FieldVector<double, blocksize> >& sol,
template
<
class
GridType
,
int
polOrd
>
template
<
class
MatrixType
>
void
Dune
::
RodAssembler
<
GridType
,
polOrd
>::
void
Dune
::
Planar
RodAssembler
<
GridType
,
polOrd
>::
getLocalMatrix
(
EntityType
&
entity
,
const
BlockVector
<
FieldVector
<
double
,
blocksize
>
>&
localSolution
,
const
int
matSize
,
MatrixType
&
localMat
)
const
...
...
@@ -266,7 +266,7 @@ getLocalMatrix( EntityType &entity,
}
template
<
class
GridType
,
int
polOrd
>
void
Dune
::
RodAssembler
<
GridType
,
polOrd
>::
void
Dune
::
Planar
RodAssembler
<
GridType
,
polOrd
>::
assembleGradient
(
const
BlockVector
<
FieldVector
<
double
,
blocksize
>
>&
sol
,
BlockVector
<
FieldVector
<
double
,
blocksize
>
>&
grad
)
const
{
...
...
@@ -375,7 +375,7 @@ assembleGradient(const BlockVector<FieldVector<double, blocksize> >& sol,
template
<
class
GridType
,
int
polOrd
>
double
Dune
::
RodAssembler
<
GridType
,
polOrd
>::
double
Dune
::
Planar
RodAssembler
<
GridType
,
polOrd
>::
computeEnergy
(
const
BlockVector
<
FieldVector
<
double
,
blocksize
>
>&
sol
)
const
{
const
int
maxlevel
=
grid_
->
maxLevel
();
...
...
@@ -393,8 +393,6 @@ computeEnergy(const BlockVector<FieldVector<double, blocksize> >& sol) const
for
(;
it
!=
endIt
;
++
it
)
{
// Extract local solution on this element
// const BaseFunctionSetType & baseSet = functionSpace_.getBaseFunctionSet( *it );
// const int numOfBaseFct = baseSet.getNumberOfBaseFunctions();
const
LagrangeShapeFunctionSet
<
double
,
double
,
gridDim
>
&
baseSet
=
Dune
::
LagrangeShapeFunctions
<
double
,
double
,
gridDim
>::
general
(
it
->
geometry
().
type
(),
elementOrder
);
int
numOfBaseFct
=
baseSet
.
size
();
...
...
@@ -402,7 +400,6 @@ computeEnergy(const BlockVector<FieldVector<double, blocksize> >& sol) const
FieldVector
<
double
,
blocksize
>
localSolution
[
numOfBaseFct
];
for
(
int
i
=
0
;
i
<
numOfBaseFct
;
i
++
)
//localSolution[i] = sol[functionSpace_.mapToGlobal(*it,i)];
localSolution
[
i
]
=
sol
[
indexSet
.
template
subIndex
<
gridDim
>(
*
it
,
i
)];
// Get quadrature rule
...
...
@@ -425,7 +422,6 @@ computeEnergy(const BlockVector<FieldVector<double, blocksize> >& sol) const
for
(
int
dof
=
0
;
dof
<
numOfBaseFct
;
dof
++
)
{
//baseSet.jacobian(dof, quadPos, shapeGrad[dof]);
for
(
int
i
=
0
;
i
<
gridDim
;
i
++
)
shapeGrad
[
dof
][
i
]
=
baseSet
[
dof
].
evaluateDerivative
(
0
,
i
,
quadPos
);
//std::cout << "Gradient " << dof << ": " << shape_grads[dof] << std::endl;
...
...
This diff is collapsed.
Click to expand it.
src/planarrodassembler.hh
+
2
−
2
View file @
38539eec
...
...
@@ -38,7 +38,7 @@ namespace Dune
public
:
//! ???
RodAssembler
(
const
GridType
&
grid
)
:
Planar
RodAssembler
(
const
GridType
&
grid
)
:
grid_
(
&
grid
)
{
B
=
1
;
...
...
@@ -46,7 +46,7 @@ namespace Dune
A3
=
1
;
}
~
RodAssembler
()
{}
~
Planar
RodAssembler
()
{}
void
setParameters
(
double
b
,
double
a1
,
double
a3
)
{
B
=
b
;
...
...
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