Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-istl
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
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
Core Modules
dune-istl
Commits
3aaa1552
Commit
3aaa1552
authored
13 years ago
by
Oliver Sander
Browse files
Options
Downloads
Patches
Plain Diff
remove deprecated class ISTLAllocator
[[Imported from SVN: r1500]]
parent
08799aeb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
configure.ac
+1
-1
1 addition, 1 deletion
configure.ac
dune/istl/Makefile.am
+1
-2
1 addition, 2 deletions
dune/istl/Makefile.am
dune/istl/allocator.hh
+0
-59
0 additions, 59 deletions
dune/istl/allocator.hh
with
2 additions
and
62 deletions
configure.ac
+
1
−
1
View file @
3aaa1552
...
...
@@ -3,7 +3,7 @@
# Process this file with autoconf to produce a configure script.
DUNE_AC_INIT
# gets module version from dune.module file
AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR
([
dune/istl/
allocator
.hh]
)
AC_CONFIG_SRCDIR
([
dune/istl/
istlexception
.hh]
)
AM_CONFIG_HEADER
([
config.h]
)
# check all dune-module stuff
...
...
This diff is collapsed.
Click to expand it.
dune/istl/Makefile.am
+
1
−
2
View file @
3aaa1552
...
...
@@ -3,8 +3,7 @@
SUBDIRS
=
.
tutorial
test
paamg
istldir
=
$(
includedir
)
/dune/istl
istl_HEADERS
=
allocator.hh
\
basearray.hh
\
istl_HEADERS
=
basearray.hh
\
bcrsmatrix.hh
\
bdmatrix.hh
\
btdmatrix.hh
\
...
...
This diff is collapsed.
Click to expand it.
dune/istl/allocator.hh
deleted
100644 → 0
+
0
−
59
View file @
08799aeb
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
#ifndef DUNE_ALLOCATOR_HH
#define DUNE_ALLOCATOR_HH
#warning The header file allocator.hh is deprecated. Please use std::allocator instead of ISTLAllocator!
#include
<cstddef>
#include
<cstdlib>
namespace
Dune
{
/**
@addtogroup ISTL
@{
*/
/**
\brief Default allocator for ISTL.
The default allocator for the sparse matrix vector classes:
- uses malloc and free
- member templates for type safety to the outside
- is a singleton
- illustrates state handling through counter
- throws std::bad_alloc just as new does
*/
class
ISTLAllocator
{
// uses new and delete
public:
//! The size type
typedef
std
::
size_t
size_type
;
//! The difference type to meassure the distance between two pointers
typedef
std
::
ptrdiff_t
difference_type
;
//! allocate array of nmemb objects of type T
template
<
class
T
>
static
T
*
malloc
(
size_type
nmemb
)
{
T
*
p
=
new
T
[
nmemb
];
return
p
;
}
//! release memory previously allocated with malloc member
template
<
class
T
>
static
void
free
(
T
*
p
)
{
delete
[]
p
;
}
};
/** @} end documentation */
}
// end namespace
#endif
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