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
8ac1a2a2
Commit
8ac1a2a2
authored
19 years ago
by
Adrian Burri
Browse files
Options
Downloads
Patches
Plain Diff
FastBaseFunctionSet is now responsible for deleting BaseFunction pointers
[[Imported from SVN: r3327]]
parent
8be7ae5c
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/common/basefunctions.hh
+14
-8
14 additions, 8 deletions
fem/common/basefunctions.hh
fem/common/fastbase.hh
+21
-11
21 additions, 11 deletions
fem/common/fastbase.hh
with
35 additions
and
19 deletions
fem/common/basefunctions.hh
+
14
−
8
View file @
8ac1a2a2
...
...
@@ -52,7 +52,9 @@ namespace Dune {
enum
{
DimDomain
=
DiscreteFunctionSpaceType
::
DimDomain
};
enum
{
DimRange
=
DiscreteFunctionSpaceType
::
DimRange
};
BaseFunctionInterface
()
{}
;
BaseFunctionInterface
()
{}
virtual
~
BaseFunctionInterface
()
{}
//! evaluate the function at Domain x, and store the value in Range Phi
//! diffVariable stores information about which gradient is to be
...
...
@@ -73,8 +75,6 @@ namespace Dune {
virtual
void
evaluate
(
const
FieldVector
<
deriType
,
2
>
&
diffVariable
,
const
DomainType
&
,
RangeType
&
)
const
=
0
;
private
:
};
/** @} end documentation group */
...
...
@@ -128,12 +128,16 @@ namespace Dune {
public
:
//! \todo Please doc me!
BaseFunctionSetInterface
()
{}
;
BaseFunctionSetInterface
()
{}
//! \todo Please doc me!
int
getNumberOfBaseFunctions
()
const
DUNE_DEPRECATED
{
return
asImp
().
getNumberOfBaseFunctions
();
};
virtual
~
BaseFunctionSetInterface
()
{}
/*
//! \todo Please doc me!
int getNumberOfBaseFunctions () const DUNE_DEPRECATED {
return asImp().getNumberOfBaseFunctions();
};
*/
//! Number of base functions
int
numBaseFunctions
()
const
{
...
...
@@ -210,6 +214,8 @@ namespace Dune {
jacobianDiffVar_
[
i
]
=
i
;
};
virtual
~
BaseFunctionSetDefault
()
{}
//! default evaluate using the evaluate interface
void
eval
(
int
baseFunct
,
const
DomainType
&
x
,
RangeType
&
phi
)
const
{
...
...
This diff is collapsed.
Click to expand it.
fem/common/fastbase.hh
+
21
−
11
View file @
8ac1a2a2
...
...
@@ -66,17 +66,27 @@ namespace Dune {
//! Constructor
FastBaseFunctionSet
(
FunctionSpaceType
&
fuspace
,
int
numOfBaseFct
);
//! return the number of base fucntions for this BaseFunctionSet
int
getNumberOfBaseFunctions
()
const
DUNE_DEPRECATED
{
return
baseFunctionList_
.
size
();
};
//! return the number of base fucntions for this BaseFunctionSet
int
getNumberOfDiffBaseFuncs
()
const
DUNE_DEPRECATED
{
return
numOfDiffFct_
;
};
//! Destructor
virtual
~
FastBaseFunctionSet
()
{
for
(
unsigned
int
i
=
0
;
i
<
baseFunctionList_
.
size
();
++
i
)
{
delete
baseFunctionList_
[
i
];
baseFunctionList_
[
i
]
=
0
;
}
baseFunctionList_
.
resize
(
0
);
}
/*
//! return the number of base fucntions for this BaseFunctionSet
int getNumberOfBaseFunctions () const DUNE_DEPRECATED
{
return baseFunctionList_.size();
};
//! return the number of base fucntions for this BaseFunctionSet
int getNumberOfDiffBaseFuncs () const DUNE_DEPRECATED
{
return numOfDiffFct_;
};
*/
//! return the number of base fucntions for this BaseFunctionSet
int
numBaseFunctions
()
const
...
...
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