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
c630d329
Commit
c630d329
authored
Sep 19, 2010
by
Praetorius, Simon
Browse files
added get/set functionality
parent
b0206597
Changes
2
Hide whitespace changes
Inline
Side-by-side
AMDiS/src/AdaptInfo.h
View file @
c630d329
...
...
@@ -363,6 +363,12 @@ namespace AMDiS {
return
timestepNumber
;
}
/// Sets \ref timestepNumber.
inline
void
setTimestepNumber
(
int
num
)
{
timestepNumber
=
AMDiS
::
min
(
nTimesteps
,
num
);
}
/// Returns \ref nTimesteps.
inline
int
getNumberOfTimesteps
()
{
...
...
@@ -372,7 +378,7 @@ namespace AMDiS {
/// Sets \ref nTimesteps.
inline
void
setNumberOfTimesteps
(
int
num
)
{
nTimesteps
=
num
;
nTimesteps
=
AMDiS
::
max
(
0
,
num
)
;
}
/// Increments \ref timestepNumber by 1;
...
...
@@ -550,7 +556,7 @@ namespace AMDiS {
{
return
maxTimestep
;
}
/// Gets \ref ×tep
inline
double
*
getTimestepPtr
()
{
...
...
@@ -756,7 +762,7 @@ namespace AMDiS {
/// Maximal step size
double
maxTimestep
;
/// Number of current time step
int
timestepNumber
;
...
...
AMDiS/src/DOFAdmin.cc
View file @
c630d329
...
...
@@ -311,7 +311,6 @@ namespace AMDiS {
for
(
di
=
dofIndexedList
.
begin
();
di
!=
end
;
++
di
)
(
*
di
)
->
compressDOFIndexed
(
first
,
last
,
new_dof
);
std
::
list
<
DOFContainer
*>::
iterator
dc
;
std
::
list
<
DOFContainer
*>::
iterator
endc
=
dofContainerList
.
end
();
for
(
dc
=
dofContainerList
.
begin
();
dc
!=
endc
;
++
dc
)
...
...
Write
Preview
Supports
Markdown
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