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
2eff79a4
Commit
2eff79a4
authored
18 years ago
by
Markus Blatt
Browse files
Options
Downloads
Patches
Plain Diff
Fixed compile errors in tutorial.
[[Imported from SVN: r668]]
parent
d46babd0
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
istl/basearray.hh
+16
-29
16 additions, 29 deletions
istl/basearray.hh
with
16 additions
and
29 deletions
istl/basearray.hh
+
16
−
29
View file @
2eff79a4
...
...
@@ -313,11 +313,12 @@ namespace Dune {
protected
:
//! makes empty array
base_array_unmanaged
()
{
n
=
0
;
p
=
0
;
}
:
n
(
0
),
p
(
0
)
{}
//! make an initialized array
base_array_unmanaged
(
size_type
n_
,
B
*
p_
)
:
n
(
n_
),
p
(
p_
)
{}
size_type
n
;
// number of elements in array
B
*
p
;
// pointer to dynamically allocated built-in array
};
...
...
@@ -367,17 +368,13 @@ namespace Dune {
//! makes empty array
base_array_window
()
{
this
->
n
=
0
;
this
->
p
=
0
;
}
:
base_array_unmanaged
<
B
,
A
>
()
{
}
//! make array from given pointer and size
base_array_window
(
B
*
_p
,
size_type
_n
)
{
this
->
n
=
_n
;
this
->
p
=
_p
;
}
:
base_array_unmanaged
<
B
,
A
>
(
_n
,
_p
)
{}
//===== window manipulation methods
...
...
@@ -461,15 +458,12 @@ namespace Dune {
//! makes empty array
base_array
()
{
this
->
n
=
0
;
this
->
p
=
0
;
}
:
base_array_unmanaged
<
B
,
A
>
()
{}
//! make array with _n components
base_array
(
size_type
_n
)
{
this
->
n
=
_n
;
if
(
this
->
n
>
0
)
this
->
p
=
A
::
template
malloc
<
B
>(
this
->
n
);
else
...
...
@@ -483,7 +477,6 @@ namespace Dune {
base_array
(
const
base_array
&
a
)
{
// allocate memory with same size as a
this
->
n
=
a
.
n
;
if
(
this
->
n
>
0
)
this
->
p
=
A
::
template
malloc
<
B
>(
this
->
n
);
else
...
...
@@ -646,11 +639,8 @@ namespace Dune {
public:
//! constructor
iterator
()
{
p
=
0
;
j
=
0
;
i
=
0
;
}
:
p
(
0
),
j
(
0
),
i
(
0
)
{}
iterator
(
B
*
_p
,
size_type
*
_j
,
size_type
_i
)
:
p
(
_p
),
j
(
_j
),
i
(
_i
)
{
}
...
...
@@ -934,11 +924,8 @@ namespace Dune {
protected
:
//! makes empty array
compressed_base_array_unmanaged
()
{
n
=
0
;
p
=
0
;
j
=
0
;
}
:
n
(
0
),
p
(
0
),
j
(
0
)
{}
size_type
n
;
// number of elements in array
B
*
p
;
// pointer to dynamically allocated built-in array
...
...
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