Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
iwr
amdis
Commits
f3bbddea
Commit
f3bbddea
authored
Apr 12, 2010
by
Peter Gottschling
Browse files
checked_change_dim hinzugefuegt.
parent
349696ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
AMDiS/src/DOFIndexed.h
View file @
f3bbddea
...
...
@@ -22,6 +22,7 @@
#ifndef AMDIS_DOFINDEXED_H
#define AMDIS_DOFINDEXED_H
#include <cassert>
#include <vector>
#include "Global.h"
#include "DOFIterator.h"
...
...
@@ -46,6 +47,14 @@ namespace AMDiS {
/// Resizes the object to size. Must be overriden by sub classes
virtual
void
resize
(
int
size
)
=
0
;
/// Check that object's size is equal to \p size or 0. If object's size is 0 change it to \p size.
virtual
void
checked_change_dim
(
int
size
)
{
assert
(
getSize
()
==
0
||
getSize
()
==
size
);
if
(
getSize
()
==
0
)
resize
(
size
);
}
/// Used by DOFAdmin::compress. Must be overriden by sub classes
virtual
void
compressDOFIndexed
(
int
first
,
int
last
,
std
::
vector
<
DegreeOfFreedom
>
&
newDOF
)
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment