Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
Service Desk
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
Timo Koch
dune-common
Commits
777675fa
Commit
777675fa
authored
19 years ago
by
Robert Klöfkorn
Browse files
Options
Downloads
Patches
Plain Diff
BasefunctionsVector is now std::vector instead of FieldVector.
[[Imported from SVN: r2655]]
parent
9ccde068
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
fem/lagrangebase.hh
+1
-2
1 addition, 2 deletions
fem/lagrangebase.hh
fem/lagrangebase/lagrangespace.cc
+10
-5
10 additions, 5 deletions
fem/lagrangebase/lagrangespace.cc
with
11 additions
and
7 deletions
fem/lagrangebase.hh
+
1
−
2
View file @
777675fa
...
...
@@ -198,11 +198,10 @@ namespace Dune {
template
<
GeometryType
ElType
,
int
pO
>
BaseFunctionSetType
*
makeBaseSet
(
IndexSetType
&
iset
);
protected
:
//! the corresponding vector of base function sets
//! length is different element types
FieldV
ector
<
BaseFunctionSetType
*
,
GeometryIdentifier
::
numTypes
>
baseFuncSet_
;
std
::
v
ector
<
BaseFunctionSetType
*
>
baseFuncSet_
;
//! DofManager manages the memory
mutable
DofManagerType
&
dm_
;
...
...
This diff is collapsed.
Click to expand it.
fem/lagrangebase/lagrangespace.cc
+
10
−
5
View file @
777675fa
...
...
@@ -14,9 +14,10 @@ namespace Dune {
inline
LagrangeDiscreteFunctionSpace
<
FunctionSpaceImp
,
GridPartImp
,
polOrd
,
DofManagerImp
>::
LagrangeDiscreteFunctionSpace
(
GridPartType
&
g
,
DofManagerType
&
dm
)
:
DefaultType
(
id
),
baseFuncSet_
(
0
),
baseFuncSet_
(
GeometryIdentifier
::
numTypes
,
0
),
dm_
(
dm
),
grid_
(
g
)
grid_
(
g
),
mapper_
(
0
)
{
makeFunctionSpace
(
g
);
}
...
...
@@ -32,8 +33,6 @@ namespace Dune {
dm_
.
addIndexSet
(
gridPart
.
grid
()
,
gridPart
.
indexSet
()
);
mapper_
=
0
;
//std::cout << "Constructor of LagrangeDiscreteFunctionSpace! \n";
// search the macro grid for diffrent element types
...
...
@@ -45,7 +44,11 @@ namespace Dune {
GeometryIdentifier
::
IdentifierType
id
=
GeometryIdentifier
::
fromGeo
(
dimension
,
geo
);
if
(
baseFuncSet_
[
id
]
==
0
)
{
assert
(
id
<
(
int
)
baseFuncSet_
.
size
()
);
assert
(
id
>=
0
);
baseFuncSet_
[
id
]
=
setBaseFuncSetPointer
(
*
it
,
gridPart
.
indexSet
());
}
}
// for empty functions space which can happen for BSGrid
...
...
@@ -59,7 +62,7 @@ namespace Dune {
inline
LagrangeDiscreteFunctionSpace
<
FunctionSpaceImp
,
GridPartImp
,
polOrd
,
DofManagerImp
>::
~
LagrangeDiscreteFunctionSpace
()
{
for
(
unsigned
int
i
=
0
;
i
<
baseFuncSet_
.
dim
();
i
++
)
for
(
unsigned
int
i
=
0
;
i
<
baseFuncSet_
.
size
();
i
++
)
if
(
baseFuncSet_
[
i
]
!=
0
)
delete
baseFuncSet_
[
i
];
...
...
@@ -86,6 +89,8 @@ namespace Dune {
{
GeometryType
geo
=
en
.
geometry
().
type
();
int
dimension
=
static_cast
<
int
>
(
EntityType
::
mydimension
);
assert
(
GeometryIdentifier
::
fromGeo
(
dimension
,
geo
)
<
(
int
)
baseFuncSet_
.
size
());
assert
(
GeometryIdentifier
::
fromGeo
(
dimension
,
geo
)
>=
0
);
return
*
baseFuncSet_
[
GeometryIdentifier
::
fromGeo
(
dimension
,
geo
)];
}
...
...
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