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
fec8463a
Commit
fec8463a
authored
Jul 21, 2009
by
Thomas Witkowski
Browse files
Removed some incorrect usage of c++ in DOFVector.
parent
d7ab2718
Changes
4
Hide whitespace changes
Inline
Side-by-side
AMDiS/src/DOFVector.h
View file @
fec8463a
...
@@ -333,7 +333,6 @@ namespace AMDiS {
...
@@ -333,7 +333,6 @@ namespace AMDiS {
/// Empty constructor. No initialization!
/// Empty constructor. No initialization!
DOFVector
()
DOFVector
()
:
DOFVectorBase
<
T
>
(),
:
DOFVectorBase
<
T
>
(),
feSpace
(
NULL
),
coarsenOperation
(
NO_OPERATION
)
coarsenOperation
(
NO_OPERATION
)
{}
{}
...
@@ -347,9 +346,9 @@ namespace AMDiS {
...
@@ -347,9 +346,9 @@ namespace AMDiS {
DOFVector
(
const
DOFVector
&
rhs
)
DOFVector
(
const
DOFVector
&
rhs
)
{
{
*
this
=
rhs
;
*
this
=
rhs
;
name
=
rhs
.
name
+
"copy"
;
this
->
name
=
rhs
.
name
+
"copy"
;
if
(
feSpace
&&
feSpace
->
getAdmin
())
if
(
this
->
feSpace
&&
this
->
feSpace
->
getAdmin
())
(
dynamic_cast
<
DOFAdmin
*>
(
feSpace
->
getAdmin
()))
->
addDOFIndexed
(
this
);
(
dynamic_cast
<
DOFAdmin
*>
(
this
->
feSpace
->
getAdmin
()))
->
addDOFIndexed
(
this
);
}
}
/// Destructor
/// Destructor
...
@@ -407,7 +406,7 @@ namespace AMDiS {
...
@@ -407,7 +406,7 @@ namespace AMDiS {
/// Returns used size of the vector.
/// Returns used size of the vector.
inline
int
getUsedSize
()
const
inline
int
getUsedSize
()
const
{
{
return
feSpace
->
getAdmin
()
->
getUsedSize
();
return
this
->
feSpace
->
getAdmin
()
->
getUsedSize
();
}
}
/// Resizes \ref vec to n
/// Resizes \ref vec to n
...
@@ -577,12 +576,6 @@ namespace AMDiS {
...
@@ -577,12 +576,6 @@ namespace AMDiS {
static
int
DoubleWell_fct
(
ElInfo
*
elinfo
);
static
int
DoubleWell_fct
(
ElInfo
*
elinfo
);
protected:
protected:
/// Name of this DOFVector
std
::
string
name
;
/// FiniteElemSpace of the vector
const
FiniteElemSpace
*
feSpace
;
/// Data container
/// Data container
std
::
vector
<
T
>
vec
;
std
::
vector
<
T
>
vec
;
...
...
AMDiS/src/DOFVector.hh
View file @
fec8463a
...
@@ -109,25 +109,25 @@ namespace AMDiS {
...
@@ -109,25 +109,25 @@ namespace AMDiS {
:
DOFVectorBase
<
T
>
(
f
,
n
),
:
DOFVectorBase
<
T
>
(
f
,
n
),
coarsenOperation
(
NO_OPERATION
)
coarsenOperation
(
NO_OPERATION
)
{
{
vec
.
resize
(
0
);
init
(
f
,
n
);
init
(
f
,
n
);
}
}
template
<
typename
T
>
template
<
typename
T
>
void
DOFVector
<
T
>::
init
(
const
FiniteElemSpace
*
f
,
std
::
string
n
)
void
DOFVector
<
T
>::
init
(
const
FiniteElemSpace
*
f
,
std
::
string
n
)
{
{
name
=
n
;
this
->
name
=
n
;
feSpace
=
f
;
this
->
feSpace
=
f
;
if
(
feSpace
&&
feSpace
->
getAdmin
())
if
(
this
->
feSpace
&&
this
->
feSpace
->
getAdmin
())
(
feSpace
->
getAdmin
())
->
addDOFIndexed
(
this
);
(
this
->
feSpace
->
getAdmin
())
->
addDOFIndexed
(
this
);
this
->
boundaryManager
=
new
BoundaryManager
(
f
);
this
->
boundaryManager
=
new
BoundaryManager
(
f
);
}
}
template
<
typename
T
>
template
<
typename
T
>
DOFVector
<
T
>::~
DOFVector
()
DOFVector
<
T
>::~
DOFVector
()
{
{
if
(
feSpace
&&
feSpace
->
getAdmin
())
if
(
this
->
feSpace
&&
this
->
feSpace
->
getAdmin
())
(
feSpace
->
getAdmin
())
->
removeDOFIndexed
(
this
);
(
this
->
feSpace
->
getAdmin
())
->
removeDOFIndexed
(
this
);
if
(
this
->
boundaryManager
)
if
(
this
->
boundaryManager
)
delete
this
->
boundaryManager
;
delete
this
->
boundaryManager
;
...
@@ -179,7 +179,7 @@ namespace AMDiS {
...
@@ -179,7 +179,7 @@ namespace AMDiS {
{
{
FUNCNAME
(
"DOFVector<T>::nrm2()"
);
FUNCNAME
(
"DOFVector<T>::nrm2()"
);
checkFeSpace
(
feSpace
,
vec
);
checkFeSpace
(
this
->
feSpace
,
vec
);
double
nrm
=
0.0
;
double
nrm
=
0.0
;
Iterator
vecIterator
(
dynamic_cast
<
DOFIndexed
<
T
>*>
(
const_cast
<
DOFVector
<
T
>*>
(
this
)),
Iterator
vecIterator
(
dynamic_cast
<
DOFIndexed
<
T
>*>
(
const_cast
<
DOFVector
<
T
>*>
(
this
)),
...
@@ -195,7 +195,7 @@ namespace AMDiS {
...
@@ -195,7 +195,7 @@ namespace AMDiS {
{
{
FUNCNAME
(
"DOFVector<T>::nrm2()"
);
FUNCNAME
(
"DOFVector<T>::nrm2()"
);
checkFeSpace
(
feSpace
,
vec
);
checkFeSpace
(
this
->
feSpace
,
vec
);
double
nrm
=
0.0
;
double
nrm
=
0.0
;
Iterator
vecIterator
(
dynamic_cast
<
DOFIndexed
<
T
>*>
(
const_cast
<
DOFVector
<
T
>*>
(
this
)),
Iterator
vecIterator
(
dynamic_cast
<
DOFIndexed
<
T
>*>
(
const_cast
<
DOFVector
<
T
>*>
(
this
)),
...
@@ -211,7 +211,7 @@ namespace AMDiS {
...
@@ -211,7 +211,7 @@ namespace AMDiS {
{
{
FUNCNAME
(
"DOFVector<T>::asum()"
);
FUNCNAME
(
"DOFVector<T>::asum()"
);
checkFeSpace
(
feSpace
,
vec
);
checkFeSpace
(
this
->
feSpace
,
vec
);
double
nrm
=
0.0
;
double
nrm
=
0.0
;
Iterator
vecIterator
(
dynamic_cast
<
DOFIndexed
<
T
>*>
(
const_cast
<
DOFVector
<
T
>*>
(
this
)),
Iterator
vecIterator
(
dynamic_cast
<
DOFIndexed
<
T
>*>
(
const_cast
<
DOFVector
<
T
>*>
(
this
)),
...
@@ -227,7 +227,7 @@ namespace AMDiS {
...
@@ -227,7 +227,7 @@ namespace AMDiS {
{
{
FUNCNAME
(
"DOFVector<T>::sum()"
);
FUNCNAME
(
"DOFVector<T>::sum()"
);
checkFeSpace
(
feSpace
,
vec
);
checkFeSpace
(
this
->
feSpace
,
vec
);
double
nrm
=
0.0
;
double
nrm
=
0.0
;
Iterator
vecIterator
(
dynamic_cast
<
DOFIndexed
<
T
>*>
(
const_cast
<
DOFVector
<
T
>*>
(
this
)),
Iterator
vecIterator
(
dynamic_cast
<
DOFIndexed
<
T
>*>
(
const_cast
<
DOFVector
<
T
>*>
(
this
)),
...
@@ -243,7 +243,7 @@ namespace AMDiS {
...
@@ -243,7 +243,7 @@ namespace AMDiS {
{
{
FUNCNAME
(
"DOFVector<T>::set()"
);
FUNCNAME
(
"DOFVector<T>::set()"
);
checkFeSpace
(
feSpace
,
vec
);
checkFeSpace
(
this
->
feSpace
,
vec
);
Iterator
vecIterator
(
dynamic_cast
<
DOFIndexed
<
T
>*>
(
this
),
USED_DOFS
);
Iterator
vecIterator
(
dynamic_cast
<
DOFIndexed
<
T
>*>
(
this
),
USED_DOFS
);
for
(
vecIterator
.
reset
();
!
vecIterator
.
end
();
++
vecIterator
)
for
(
vecIterator
.
reset
();
!
vecIterator
.
end
();
++
vecIterator
)
...
@@ -256,11 +256,12 @@ namespace AMDiS {
...
@@ -256,11 +256,12 @@ namespace AMDiS {
{
{
FUNCNAME
(
"DOFVector<T>::copy()"
);
FUNCNAME
(
"DOFVector<T>::copy()"
);
checkFeSpace
(
feSpace
,
vec
);
checkFeSpace
(
this
->
feSpace
,
vec
);
TEST_EXIT_DBG
(
static_cast
<
int
>
(
x
.
vec
.
size
())
>=
feSpace
->
getAdmin
()
->
getUsedSize
())
TEST_EXIT_DBG
(
static_cast
<
int
>
(
x
.
vec
.
size
())
>=
this
->
feSpace
->
getAdmin
()
->
getUsedSize
())
(
"x.size = %d too small: admin->sizeUsed = %d
\n
"
,
x
.
vec
.
size
(),
(
"x.size = %d too small: admin->sizeUsed = %d
\n
"
,
x
.
vec
.
size
(),
feSpace
->
getAdmin
()
->
getUsedSize
());
this
->
feSpace
->
getAdmin
()
->
getUsedSize
());
Iterator
vecIterator
(
dynamic_cast
<
DOFIndexed
<
T
>*>
(
this
),
USED_DOFS
);
Iterator
vecIterator
(
dynamic_cast
<
DOFIndexed
<
T
>*>
(
this
),
USED_DOFS
);
Iterator
xIterator
(
dynamic_cast
<
DOFVector
<
T
>*>
(
const_cast
<
DOFVector
<
T
>*>
(
&
x
)),
Iterator
xIterator
(
dynamic_cast
<
DOFVector
<
T
>*>
(
const_cast
<
DOFVector
<
T
>*>
(
&
x
)),
...
@@ -276,7 +277,7 @@ namespace AMDiS {
...
@@ -276,7 +277,7 @@ namespace AMDiS {
{
{
FUNCNAME
(
"DOFVector<T>::min()"
);
FUNCNAME
(
"DOFVector<T>::min()"
);
checkFeSpace
(
feSpace
,
vec
);
checkFeSpace
(
this
->
feSpace
,
vec
);
T
m
;
T
m
;
Iterator
vecIterator
(
const_cast
<
DOFIndexed
<
T
>*>
(
dynamic_cast
<
const
DOFIndexed
<
T
>*>
(
this
)),
USED_DOFS
);
Iterator
vecIterator
(
const_cast
<
DOFIndexed
<
T
>*>
(
dynamic_cast
<
const
DOFIndexed
<
T
>*>
(
this
)),
USED_DOFS
);
...
@@ -291,7 +292,7 @@ namespace AMDiS {
...
@@ -291,7 +292,7 @@ namespace AMDiS {
{
{
FUNCNAME
(
"DOFVector<T>::max()"
);
FUNCNAME
(
"DOFVector<T>::max()"
);
checkFeSpace
(
feSpace
,
vec
);
checkFeSpace
(
this
->
feSpace
,
vec
);
T
m
;
T
m
;
Iterator
vecIterator
(
const_cast
<
DOFIndexed
<
T
>*>
(
dynamic_cast
<
const
DOFIndexed
<
T
>*>
(
this
)),
USED_DOFS
);
Iterator
vecIterator
(
const_cast
<
DOFIndexed
<
T
>*>
(
dynamic_cast
<
const
DOFIndexed
<
T
>*>
(
this
)),
USED_DOFS
);
...
@@ -315,10 +316,10 @@ namespace AMDiS {
...
@@ -315,10 +316,10 @@ namespace AMDiS {
const
DOFAdmin
*
admin
=
NULL
;
const
DOFAdmin
*
admin
=
NULL
;
const
char
*
format
;
const
char
*
format
;
if
(
feSpace
)
if
(
this
->
feSpace
)
admin
=
feSpace
->
getAdmin
();
admin
=
this
->
feSpace
->
getAdmin
();
MSG
(
"Vec `%s':
\n
"
,
name
.
c_str
());
MSG
(
"Vec `%s':
\n
"
,
this
->
name
.
c_str
());
int
j
=
0
;
int
j
=
0
;
if
(
admin
)
{
if
(
admin
)
{
if
(
admin
->
getUsedSize
()
>
100
)
if
(
admin
->
getUsedSize
()
>
100
)
...
@@ -450,22 +451,19 @@ namespace AMDiS {
...
@@ -450,22 +451,19 @@ namespace AMDiS {
{
{
FUNCNAME
(
"DOFVector::Int()"
);
FUNCNAME
(
"DOFVector::Int()"
);
Mesh
*
mesh
=
feSpace
->
getMesh
();
Mesh
*
mesh
=
this
->
feSpace
->
getMesh
();
if
(
!
q
)
{
if
(
!
q
)
{
int
deg
=
2
*
feSpace
->
getBasisFcts
()
->
getDegree
();
int
deg
=
2
*
this
->
feSpace
->
getBasisFcts
()
->
getDegree
();
q
=
Quadrature
::
provideQuadrature
(
this
->
dim
,
deg
);
q
=
Quadrature
::
provideQuadrature
(
this
->
dim
,
deg
);
}
}
quad_fast
=
FastQuadrature
::
provideFastQuadrature
(
feSpace
->
getBasisFcts
(),
*
q
,
INIT_PHI
);
quad_fast
=
FastQuadrature
::
provideFastQuadrature
(
this
->
feSpace
->
getBasisFcts
(),
*
q
,
INIT_PHI
);
norm
=
0.0
;
norm
=
0.0
;
traverseVector
=
const_cast
<
DOFVector
<
T
>*>
(
this
);
traverseVector
=
const_cast
<
DOFVector
<
T
>*>
(
this
);
mesh
->
traverse
(
-
1
,
mesh
->
traverse
(
-
1
,
Mesh
::
CALL_LEAF_EL
|
Mesh
::
FILL_COORDS
|
Mesh
::
FILL_DET
,
Int_fct
);
Mesh
::
CALL_LEAF_EL
|
Mesh
::
FILL_COORDS
|
Mesh
::
FILL_DET
,
Int_fct
);
return
norm
;
return
norm
;
}
}
...
@@ -492,19 +490,17 @@ namespace AMDiS {
...
@@ -492,19 +490,17 @@ namespace AMDiS {
FUNCNAME
(
"DOFVector::L1Norm()"
);
FUNCNAME
(
"DOFVector::L1Norm()"
);
if
(
!
q
)
{
if
(
!
q
)
{
int
deg
=
2
*
feSpace
->
getBasisFcts
()
->
getDegree
();
int
deg
=
2
*
this
->
feSpace
->
getBasisFcts
()
->
getDegree
();
q
=
Quadrature
::
provideQuadrature
(
this
->
dim
,
deg
);
q
=
Quadrature
::
provideQuadrature
(
this
->
dim
,
deg
);
}
}
quad_fast
=
FastQuadrature
::
provideFastQuadrature
(
feSpace
->
getBasisFcts
(),
*
q
,
INIT_PHI
);
quad_fast
=
FastQuadrature
::
provideFastQuadrature
(
this
->
feSpace
->
getBasisFcts
(),
*
q
,
INIT_PHI
);
norm
=
0.0
;
norm
=
0.0
;
traverseVector
=
const_cast
<
DOFVector
<
T
>*>
(
this
);
traverseVector
=
const_cast
<
DOFVector
<
T
>*>
(
this
);
Mesh
*
mesh
=
feSpace
->
getMesh
();
Mesh
*
mesh
=
this
->
feSpace
->
getMesh
();
mesh
->
traverse
(
-
1
,
mesh
->
traverse
(
-
1
,
Mesh
::
CALL_LEAF_EL
|
Mesh
::
FILL_COORDS
|
Mesh
::
FILL_DET
,
Mesh
::
CALL_LEAF_EL
|
Mesh
::
FILL_COORDS
|
Mesh
::
FILL_DET
,
L1Norm_fct
);
L1Norm_fct
);
return
norm
;
return
norm
;
...
@@ -533,17 +529,16 @@ namespace AMDiS {
...
@@ -533,17 +529,16 @@ namespace AMDiS {
FUNCNAME
(
"DOFVector::L2NormSquare()"
);
FUNCNAME
(
"DOFVector::L2NormSquare()"
);
if
(
!
q
)
{
if
(
!
q
)
{
int
deg
=
2
*
feSpace
->
getBasisFcts
()
->
getDegree
();
int
deg
=
2
*
this
->
feSpace
->
getBasisFcts
()
->
getDegree
();
q
=
Quadrature
::
provideQuadrature
(
this
->
dim
,
deg
);
q
=
Quadrature
::
provideQuadrature
(
this
->
dim
,
deg
);
}
}
quad_fast
=
FastQuadrature
::
provideFastQuadrature
(
feSpace
->
getBasisFcts
(),
quad_fast
=
FastQuadrature
::
provideFastQuadrature
(
this
->
feSpace
->
getBasisFcts
(),
*
q
,
*
q
,
INIT_PHI
);
INIT_PHI
);
norm
=
0.0
;
norm
=
0.0
;
traverseVector
=
const_cast
<
DOFVector
<
T
>*>
(
this
);
traverseVector
=
const_cast
<
DOFVector
<
T
>*>
(
this
);
Mesh
*
mesh
=
feSpace
->
getMesh
();
Mesh
*
mesh
=
this
->
feSpace
->
getMesh
();
mesh
->
traverse
(
-
1
,
Mesh
::
CALL_LEAF_EL
|
Mesh
::
FILL_COORDS
|
Mesh
::
FILL_DET
,
mesh
->
traverse
(
-
1
,
Mesh
::
CALL_LEAF_EL
|
Mesh
::
FILL_COORDS
|
Mesh
::
FILL_DET
,
L2Norm_fct
);
L2Norm_fct
);
...
@@ -595,20 +590,19 @@ namespace AMDiS {
...
@@ -595,20 +590,19 @@ namespace AMDiS {
FUNCNAME
(
"DOFVector::H1NormSquare()"
);
FUNCNAME
(
"DOFVector::H1NormSquare()"
);
if
(
!
q
)
{
if
(
!
q
)
{
int
deg
=
2
*
feSpace
->
getBasisFcts
()
->
getDegree
()
-
2
;
int
deg
=
2
*
this
->
feSpace
->
getBasisFcts
()
->
getDegree
()
-
2
;
q
=
Quadrature
::
provideQuadrature
(
this
->
dim
,
deg
);
q
=
Quadrature
::
provideQuadrature
(
this
->
dim
,
deg
);
}
}
quad_fast
=
FastQuadrature
::
provideFastQuadrature
(
feSpace
->
getBasisFcts
(),
quad_fast
=
FastQuadrature
::
provideFastQuadrature
(
this
->
feSpace
->
getBasisFcts
(),
*
q
,
INIT_GRD_PHI
);
*
q
,
INIT_GRD_PHI
);
norm
=
0.0
;
norm
=
0.0
;
traverseVector
=
const_cast
<
DOFVector
<
T
>*>
(
this
);
traverseVector
=
const_cast
<
DOFVector
<
T
>*>
(
this
);
Mesh
*
mesh
=
feSpace
->
getMesh
();
Mesh
*
mesh
=
this
->
feSpace
->
getMesh
();
mesh
->
traverse
(
-
1
,
Mesh
::
CALL_LEAF_EL
|
Mesh
::
FILL_COORDS
|
mesh
->
traverse
(
-
1
,
Mesh
::
CALL_LEAF_EL
|
Mesh
::
FILL_COORDS
|
Mesh
::
FILL_DET
|
Mesh
::
FILL_DET
|
Mesh
::
FILL_GRD_LAMBDA
,
Mesh
::
FILL_GRD_LAMBDA
,
H1Norm_fct
);
H1Norm_fct
);
return
norm
;
return
norm
;
}
}
...
@@ -646,8 +640,7 @@ namespace AMDiS {
...
@@ -646,8 +640,7 @@ namespace AMDiS {
template
<
typename
T
>
template
<
typename
T
>
DOFVector
<
T
>&
DOFVector
<
T
>::
operator
=
(
const
DOFVector
<
T
>&
rhs
)
DOFVector
<
T
>&
DOFVector
<
T
>::
operator
=
(
const
DOFVector
<
T
>&
rhs
)
{
{
feSpace
=
rhs
.
feSpace
;
this
->
feSpace
=
rhs
.
feSpace
;
DOFVectorBase
<
T
>::
feSpace
=
rhs
.
feSpace
;
this
->
nBasFcts
=
rhs
.
nBasFcts
;
this
->
nBasFcts
=
rhs
.
nBasFcts
;
vec
=
rhs
.
vec
;
vec
=
rhs
.
vec
;
this
->
elementVector
.
change_dim
(
this
->
nBasFcts
);
this
->
elementVector
.
change_dim
(
this
->
nBasFcts
);
...
@@ -1082,15 +1075,15 @@ namespace AMDiS {
...
@@ -1082,15 +1075,15 @@ namespace AMDiS {
FUNCNAME
(
"DOFVector::DoubleWell()"
);
FUNCNAME
(
"DOFVector::DoubleWell()"
);
if
(
!
q
)
{
if
(
!
q
)
{
int
deg
=
2
*
feSpace
->
getBasisFcts
()
->
getDegree
();
int
deg
=
2
*
this
->
feSpace
->
getBasisFcts
()
->
getDegree
();
q
=
Quadrature
::
provideQuadrature
(
this
->
dim
,
deg
);
q
=
Quadrature
::
provideQuadrature
(
this
->
dim
,
deg
);
}
}
quad_fast
=
FastQuadrature
::
provideFastQuadrature
(
feSpace
->
getBasisFcts
(),
quad_fast
=
FastQuadrature
::
provideFastQuadrature
(
this
->
feSpace
->
getBasisFcts
(),
*
q
,
INIT_PHI
);
*
q
,
INIT_PHI
);
norm
=
0.0
;
norm
=
0.0
;
traverseVector
=
const_cast
<
DOFVector
<
T
>*>
(
this
);
traverseVector
=
const_cast
<
DOFVector
<
T
>*>
(
this
);
Mesh
*
mesh
=
feSpace
->
getMesh
();
Mesh
*
mesh
=
this
->
feSpace
->
getMesh
();
mesh
->
traverse
(
-
1
,
Mesh
::
CALL_LEAF_EL
|
Mesh
::
FILL_COORDS
|
Mesh
::
FILL_DET
,
mesh
->
traverse
(
-
1
,
Mesh
::
CALL_LEAF_EL
|
Mesh
::
FILL_COORDS
|
Mesh
::
FILL_DET
,
DoubleWell_fct
);
DoubleWell_fct
);
...
...
AMDiS/src/ProblemInstat.cc
View file @
fec8463a
...
@@ -9,15 +9,12 @@
...
@@ -9,15 +9,12 @@
namespace
AMDiS
{
namespace
AMDiS
{
ProblemInstat
::~
ProblemInstat
()
ProblemInstat
::~
ProblemInstat
()
{
{}
}
void
ProblemInstat
::
initialize
(
Flag
initFlag
,
void
ProblemInstat
::
initialize
(
Flag
initFlag
,
ProblemInstat
*
adoptProblem
/* = NULL*/
,
ProblemInstat
*
adoptProblem
/* = NULL*/
,
Flag
adoptFlag
/* = INIT_NOTHING*/
)
Flag
adoptFlag
/* = INIT_NOTHING*/
)
{
{}
FUNCNAME
(
"ProblemInstat::initialize()"
);
}
void
ProblemInstat
::
solveInitialProblem
(
AdaptInfo
*
adaptInfo
)
void
ProblemInstat
::
solveInitialProblem
(
AdaptInfo
*
adaptInfo
)
{
{
...
@@ -45,7 +42,7 @@ namespace AMDiS {
...
@@ -45,7 +42,7 @@ namespace AMDiS {
}
}
ProblemInstatScal
::
ProblemInstatScal
(
char
*
name_
,
ProblemInstatScal
::
ProblemInstatScal
(
std
::
string
name_
,
ProblemScal
*
prob
,
ProblemScal
*
prob
,
ProblemStatBase
*
initialProb
)
ProblemStatBase
*
initialProb
)
:
ProblemInstat
(
name_
,
initialProb
),
:
ProblemInstat
(
name_
,
initialProb
),
...
@@ -115,7 +112,7 @@ namespace AMDiS {
...
@@ -115,7 +112,7 @@ namespace AMDiS {
problemStat
->
writeFiles
(
adaptInfo
,
force
);
problemStat
->
writeFiles
(
adaptInfo
,
force
);
}
}
ProblemInstatVec
::
ProblemInstatVec
(
char
*
name_
,
ProblemInstatVec
::
ProblemInstatVec
(
std
::
string
name_
,
ProblemVec
*
prob
,
ProblemVec
*
prob
,
ProblemStatBase
*
initialProb
)
ProblemStatBase
*
initialProb
)
:
ProblemInstat
(
name_
,
initialProb
),
:
ProblemInstat
(
name_
,
initialProb
),
...
@@ -134,7 +131,7 @@ namespace AMDiS {
...
@@ -134,7 +131,7 @@ namespace AMDiS {
{
{
FUNCNAME
(
"ProblemInstatVec::initialize()"
);
FUNCNAME
(
"ProblemInstatVec::initialize()"
);
ProblemInstat
::
initialize
(
initFlag
,
adoptProblem
,
adoptFlag
);
ProblemInstat
::
initialize
(
initFlag
,
adoptProblem
,
adoptFlag
);
// === create vector for old solution ===
// === create vector for old solution ===
if
(
oldSolution
)
{
if
(
oldSolution
)
{
...
...
AMDiS/src/ProblemInstat.h
View file @
fec8463a
...
@@ -115,7 +115,7 @@ namespace AMDiS {
...
@@ -115,7 +115,7 @@ namespace AMDiS {
{
{
public:
public:
/// Constructs a ProblemInstatScal with prob as its stationary problem.
/// Constructs a ProblemInstatScal with prob as its stationary problem.
ProblemInstatScal
(
char
*
name
,
ProblemInstatScal
(
std
::
string
name
,
ProblemScal
*
prob
,
ProblemScal
*
prob
,
ProblemStatBase
*
initialProb
=
NULL
);
ProblemStatBase
*
initialProb
=
NULL
);
...
@@ -175,7 +175,7 @@ namespace AMDiS {
...
@@ -175,7 +175,7 @@ namespace AMDiS {
{
{
public:
public:
/// Constructs a ProblemInstatVec with prob as its stationary problem.
/// Constructs a ProblemInstatVec with prob as its stationary problem.
ProblemInstatVec
(
char
*
name
,
ProblemInstatVec
(
std
::
string
name
,
ProblemVec
*
prob
,
ProblemVec
*
prob
,
ProblemStatBase
*
initialProb
=
NULL
);
ProblemStatBase
*
initialProb
=
NULL
);
...
...
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