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
7f2daf14
Commit
7f2daf14
authored
19 years ago
by
Adrian Burri
Browse files
Options
Downloads
Patches
Plain Diff
LagrangeFastBaseFunctionSet adapted to changes in fastbase.hh
[[Imported from SVN: r3328]]
parent
8ac1a2a2
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
-15
1 addition, 15 deletions
fem/lagrangebase.hh
fem/lagrangebase/lagrangebasefunctions.hh
+9
-17
9 additions, 17 deletions
fem/lagrangebase/lagrangebasefunctions.hh
with
10 additions
and
32 deletions
fem/lagrangebase.hh
+
1
−
15
View file @
7f2daf14
...
...
@@ -67,7 +67,7 @@ namespace Dune {
>
{
public:
//! my Grid's
type
//! my Grid's type
typedef
typename
GridPartImp
::
GridType
GridType
;
/** \todo Please doc me! */
...
...
@@ -181,17 +181,6 @@ namespace Dune {
template
<
class
EntityType
>
int
mapToGlobal
(
EntityType
&
en
,
int
localNum
)
const
;
/*
//! sign in to dofmanager, return is the memory
template <class DiscFuncType>
typename DiscFuncType :: MemObjectType &
signIn (DiscFuncType & df) const;
//! sign out to dofmanager, dofmanager frees the memory
template <class DiscFuncType>
bool signOut ( DiscFuncType & df) const;
*/
//! Return the dof mapper of the space
const
MapperType
&
mapper
()
const
;
...
...
@@ -213,9 +202,6 @@ namespace Dune {
//! length is different element types
std
::
vector
<
BaseFunctionSetType
*
>
baseFuncSet_
;
//! DofManager manages the memory
//mutable DofManagerType & dm_;
//! the index set, used by the mapper for mapping between grid and space
GridPartType
&
grid_
;
private
:
...
...
This diff is collapsed.
Click to expand it.
fem/lagrangebase/lagrangebasefunctions.hh
+
9
−
17
View file @
7f2daf14
...
...
@@ -30,12 +30,12 @@ namespace Dune {
typedef
typename
FunctionSpaceType
::
RangeFieldType
RangeFieldType
;
public
:
LagrangeBaseFunction
(
int
baseNum
)
:
BaseFunctionInterface
<
FunctionSpaceType
>
(),
baseNum_
(
baseNum
)
LagrangeBaseFunction
(
int
baseNum
)
:
BaseFunctionInterface
<
FunctionSpaceType
>
(),
baseNum_
(
baseNum
)
{
assert
((
baseNum_
>=
0
)
||
(
baseNum_
<
DimRange
));
}
;
}
virtual
void
evaluate
(
const
FieldVector
<
deriType
,
0
>
&
diffVariable
,
const
DomainType
&
x
,
RangeType
&
phi
)
const
...
...
@@ -762,9 +762,8 @@ namespace Dune {
//! Constructor, calls Constructor of FastBaseFunctionSet, which is the
//! InterfaceImplementation
LagrangeFastBaseFunctionSet
(
FunctionSpaceType
&
fuSpace
)
:
FastBaseFunctionSet
<
FunctionSpaceType
>
(
fuSpace
,
numOfBaseFct
)
,
baseFuncList_
(
numOfBaseFct
,
0
)
LagrangeFastBaseFunctionSet
(
FunctionSpaceType
&
fuSpace
)
:
FastBaseFunctionSet
<
FunctionSpaceType
>
(
fuSpace
,
numOfBaseFct
)
{
int
numOfDifferentFuncs
=
(
int
)
numOfBaseFct
/
dimrange
;
for
(
int
i
=
0
;
i
<
numOfDifferentFuncs
;
i
++
)
...
...
@@ -773,19 +772,14 @@ namespace Dune {
{
//baseFuncList_[ i*dimrange + k ] = new LagrangeBaseFunctionType ( i ) ;
size_t
idx
=
i
*
dimrange
+
k
;
baseFuncList_
[
idx
]
=
new
LagrangeBaseFunctionType
(
i
)
;
this
->
setBaseFunctionPointer
(
idx
,
baseFuncList_
[
idx
]
);
this
->
setBaseFunctionPointer
(
idx
,
new
LagrangeBaseFunctionType
(
i
)
);
}
}
this
->
setNumOfDiffFct
(
numOfDifferentFuncs
);
};
//! Destructor deleting the base functions
~
LagrangeFastBaseFunctionSet
(
)
{
for
(
int
i
=
0
;
i
<
numOfBaseFct
;
i
++
)
if
(
baseFuncList_
[
i
]
)
delete
baseFuncList_
[
i
];
};
~
LagrangeFastBaseFunctionSet
(
)
{}
//! return number of base function for this base function set
int
getNumberOfBaseFunctions
()
const
{
return
numOfBaseFct
;
};
...
...
@@ -796,9 +790,7 @@ namespace Dune {
{
return
(
int
)
(
numOfBaseFct
/
dimrange
);
}
private
:
//! Vector with all base functions corresponding to the base function set
std
::
vector
<
LagrangeBaseFunctionType
*
>
baseFuncList_
;
};
}
// end namespace Dune
...
...
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