Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
amdis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
iwr
amdis
Commits
2bd68222
Commit
2bd68222
authored
15 years ago
by
Thomas Witkowski
Browse files
Options
Downloads
Patches
Plain Diff
Sebastians changes.
parent
225b2887
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
AMDiS/src/Estimator.h
+29
-12
29 additions, 12 deletions
AMDiS/src/Estimator.h
AMDiS/src/ProblemVec.cc
+3
-0
3 additions, 0 deletions
AMDiS/src/ProblemVec.cc
with
32 additions
and
12 deletions
AMDiS/src/Estimator.h
+
29
−
12
View file @
2bd68222
...
@@ -53,7 +53,8 @@ namespace AMDiS {
...
@@ -53,7 +53,8 @@ namespace AMDiS {
virtual
~
Estimator
()
{}
virtual
~
Estimator
()
{}
/// Returns \ref name of the Estimator
/// Returns \ref name of the Estimator
inline
const
std
::
string
&
getName
()
const
{
inline
const
std
::
string
&
getName
()
const
{
return
name
;
return
name
;
}
}
...
@@ -70,37 +71,44 @@ namespace AMDiS {
...
@@ -70,37 +71,44 @@ namespace AMDiS {
virtual
void
exit
(
bool
output
=
true
)
{}
virtual
void
exit
(
bool
output
=
true
)
{}
/// Returns \ref est_sum of the Estimator
/// Returns \ref est_sum of the Estimator
inline
double
getErrorSum
()
const
{
inline
double
getErrorSum
()
const
{
return
est_sum
;
return
est_sum
;
}
}
/// Sets \ref est_sum of the Estimator
/// Sets \ref est_sum of the Estimator
inline
void
setErrorSum
(
double
sum
)
{
inline
void
setErrorSum
(
double
sum
)
{
est_sum
=
sum
;
est_sum
=
sum
;
}
}
/// Returns \ref est_max of the Estimator
/// Returns \ref est_max of the Estimator
inline
double
getErrorMax
()
const
{
inline
double
getErrorMax
()
const
{
return
est_max
;
return
est_max
;
}
}
/// Returns the estimated time error.
/// Returns the estimated time error.
virtual
double
getTimeEst
()
const
{
virtual
double
getTimeEst
()
const
{
return
est_t_sum
;
return
est_t_sum
;
}
}
/// Returns the maximal time estimation.
/// Returns the maximal time estimation.
virtual
double
getTimeEstMax
()
const
{
virtual
double
getTimeEstMax
()
const
{
return
est_t_max
;
return
est_t_max
;
}
}
/// Sets \ref est_max of the Estimator
/// Sets \ref est_max of the Estimator
inline
void
setErrorMax
(
double
m
)
{
inline
void
setErrorMax
(
double
m
)
{
est_max
=
m
;
est_max
=
m
;
}
}
/// Returns \ref norm.
/// Returns \ref norm.
inline
Norm
getErrorNorm
()
{
inline
Norm
getErrorNorm
()
{
return
norm
;
return
norm
;
}
}
...
@@ -116,6 +124,11 @@ namespace AMDiS {
...
@@ -116,6 +124,11 @@ namespace AMDiS {
uhOld
.
push_back
(
uhOld_
);
uhOld
.
push_back
(
uhOld_
);
}
}
void
setNewMatrix
(
int
i
,
DOFMatrix
*
m
)
{
matrix
[
i
]
=
m
;
}
/// Adds pointer to old solution to the given system.
/// Adds pointer to old solution to the given system.
virtual
void
addUhOldToSystem
(
int
system
,
DOFVector
<
double
>
*
uhOld_
)
virtual
void
addUhOldToSystem
(
int
system
,
DOFVector
<
double
>
*
uhOld_
)
{
{
...
@@ -125,19 +138,23 @@ namespace AMDiS {
...
@@ -125,19 +138,23 @@ namespace AMDiS {
}
}
/// Returns number of systems.
/// Returns number of systems.
inline
int
getNumSystems
()
{
inline
int
getNumSystems
()
{
return
static_cast
<
int
>
(
matrix
.
size
());
return
static_cast
<
int
>
(
matrix
.
size
());
}
}
inline
Flag
getTraverseFlag
()
{
inline
Flag
getTraverseFlag
()
{
return
traverseFlag
;
return
traverseFlag
;
}
}
inline
Mesh
*
getMesh
()
{
inline
Mesh
*
getMesh
()
{
return
mesh
;
return
mesh
;
}
}
inline
int
getRow
()
{
inline
int
getRow
()
{
return
row
;
return
row
;
}
}
...
...
This diff is collapsed.
Click to expand it.
AMDiS/src/ProblemVec.cc
+
3
−
0
View file @
2bd68222
...
@@ -878,6 +878,9 @@ namespace AMDiS {
...
@@ -878,6 +878,9 @@ namespace AMDiS {
(
*
systemMatrix
)[
i
][
j
]
->
getBoundaryManager
()
->
(
*
systemMatrix
)[
i
][
j
]
->
getBoundaryManager
()
->
setBoundaryConditionMap
((
*
systemMatrix
)[
i
][
i
]
->
getBoundaryManager
()
->
setBoundaryConditionMap
((
*
systemMatrix
)[
i
][
i
]
->
getBoundaryManager
()
->
getBoundaryConditionMap
());
getBoundaryConditionMap
());
if
(
estimator
[
i
])
estimator
[
i
]
->
setNewMatrix
(
j
,
(
*
systemMatrix
)[
i
][
j
]);
}
}
(
*
systemMatrix
)[
i
][
j
]
->
addOperator
(
op
,
factor
,
estFactor
);
(
*
systemMatrix
)[
i
][
j
]
->
addOperator
(
op
,
factor
,
estFactor
);
...
...
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