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
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
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-common
Commits
a6f7cae5
Commit
a6f7cae5
authored
19 years ago
by
Robert Klöfkorn
Browse files
Options
Downloads
Patches
Plain Diff
indexNew --> indexIsNew.
[[Imported from SVN: r4200]]
parent
251d4fc8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fem/lagrangebase/lagrangemapper.hh
+18
-7
18 additions, 7 deletions
fem/lagrangebase/lagrangemapper.hh
with
18 additions
and
7 deletions
fem/lagrangebase/lagrangemapper.hh
+
18
−
7
View file @
a6f7cae5
...
...
@@ -83,7 +83,7 @@ namespace Dune {
}
//! for dof manager, to check whether it has to copy dof or not
bool
indexNew
(
int
num
)
const
bool
index
Is
New
(
int
num
)
const
{
return
(
num
!=
oldIndex
(
num
));
}
...
...
@@ -146,6 +146,8 @@ namespace Dune {
{
return
this
->
size
();
}
bool
needsCompress
()
const
{
return
indexSet_
.
needsCompress
();
}
};
...
...
@@ -187,9 +189,9 @@ namespace Dune {
}
//! for dof manager, to check whether it has to copy dof or not
bool
indexNew
(
int
num
)
const
bool
index
Is
New
(
int
num
)
const
{
return
indexSet_
.
indexNew
(
num
,
myCodim
);
return
indexSet_
.
index
Is
New
(
num
,
myCodim
);
}
//! return old index, for dof manager only
...
...
@@ -225,15 +227,19 @@ namespace Dune {
return
numLocalDofs_
;
}
//! return number of dofs per entity, i.e. number of basis funcitons per entity
int
numDofs
()
const
{
return
numLocalDofs_
;
}
//! return newSize of functions space
int
newSize
()
const
{
return
this
->
size
();
}
//! return the sets needsCompress
bool
needsCompress
()
const
{
return
indexSet_
.
needsCompress
();
}
};
template
<
class
IndexSetImp
,
int
dimrange
>
...
...
@@ -268,11 +274,11 @@ namespace Dune {
}
//! for dof manager, to check whether it has to copy dof or not
bool
indexNew
(
int
num
)
const
bool
index
Is
New
(
int
num
)
const
{
// all numbers of one entity are maped to the one number of the set
const
int
newn
=
static_cast
<
int
>
(
num
/
dimrange
);
return
indexSet_
.
template
indexNew
(
newn
,
0
);
return
indexSet_
.
template
index
Is
New
(
newn
,
0
);
}
//! return old index, for dof manager only
...
...
@@ -328,6 +334,8 @@ namespace Dune {
assert
(
numberOfDofs_
==
dimrange
);
return
numberOfDofs_
;
}
//! return the sets needsCompress
bool
needsCompress
()
const
{
return
indexSet_
.
needsCompress
();
}
};
template
<
class
IndexSetImp
>
...
...
@@ -359,9 +367,9 @@ namespace Dune {
}
//! for dof manager, to check whether it has to copy dof or not
bool
indexNew
(
int
num
)
const
bool
index
Is
New
(
int
num
)
const
{
return
indexSet_
.
template
indexNew
(
num
,
0
);
return
indexSet_
.
template
index
Is
New
(
num
,
0
);
}
//! return old index, for dof manager only
...
...
@@ -402,10 +410,13 @@ namespace Dune {
return
1
;
}
//! return number of dof per entity, here this method returns 1
int
numDofs
()
const
{
return
1
;
}
//! return the sets needsCompress
bool
needsCompress
()
const
{
return
indexSet_
.
needsCompress
();
}
};
}
// 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