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
fc5e6ac8
Commit
fc5e6ac8
authored
14 years ago
by
Thomas Witkowski
Browse files
Options
Downloads
Patches
Plain Diff
Adapted ES marker for parallel computations.
parent
a2911e8d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
AMDiS/src/Marker.cc
+21
-13
21 additions, 13 deletions
AMDiS/src/Marker.cc
AMDiS/src/parallel/GlobalMatrixSolver.cc
+0
-2
0 additions, 2 deletions
AMDiS/src/parallel/GlobalMatrixSolver.cc
with
21 additions
and
15 deletions
AMDiS/src/Marker.cc
+
21
−
13
View file @
fc5e6ac8
#include
"Marker.h"
#ifdef HAVE_PARALLEL_DOMAIN_AMDIS
#include
"parallel/MpiHelper.h"
#endif
namespace
AMDiS
{
Marker
*
Marker
::
createMarker
(
std
::
string
name
,
int
row
)
...
...
@@ -113,14 +117,18 @@ namespace AMDiS {
double
ESThetaP
=
pow
(
ESTheta
,
p
);
double
ESThetaCP
=
pow
(
ESThetaC
,
p
);
double
epsP
=
pow
(
adaptInfo
->
getSpaceTolerance
(
row
==
-
1
?
0
:
row
),
p
);
int
nLeaves
=
mesh
->
getNumberOfLeaves
();
#ifdef HAVE_PARALLEL_DOMAIN_AMDIS
mpi
::
globalAdd
(
nLeaves
);
#endif
markRLimit
=
ESThetaP
*
epsP
/
mesh
->
getNumberOf
Leaves
()
;
markCLimit
=
ESThetaCP
*
epsP
/
mesh
->
getNumberOf
Leaves
()
;
markRLimit
=
ESThetaP
*
epsP
/
n
Leaves
;
markCLimit
=
ESThetaCP
*
epsP
/
n
Leaves
;
INFO
(
info
,
2
)(
"start mark_limits: %.3le %.3le
nt=
%d
\n
"
,
markRLimit
,
markCLimit
,
mesh
->
getNumberOf
Leaves
()
);
INFO
(
info
,
2
)(
"start mark_limits: %.3le %.3le
nt =
%d
\n
"
,
markRLimit
,
markCLimit
,
n
Leaves
);
}
...
...
@@ -137,14 +145,12 @@ namespace AMDiS {
GERSSum
=
0.0
;
double
LTheta
=
pow
(
1.0
-
GERSThetaStar
,
p
);
double
improv
,
redfac
,
wanted
,
epsP
,
GERSGamma
;
epsP
=
pow
(
adaptInfo
->
getSpaceTolerance
(
row
==
-
1
?
0
:
row
),
p
);
double
epsP
=
pow
(
adaptInfo
->
getSpaceTolerance
(
row
==
-
1
?
0
:
row
),
p
);
if
(
estSum
<
oldErrSum
)
{
improv
=
estSum
/
oldErrSum
;
wanted
=
0.8
*
epsP
/
estSum
;
redfac
=
std
::
min
((
1.0
-
wanted
)
/
(
1.0
-
improv
),
1.0
);
double
improv
=
estSum
/
oldErrSum
;
double
wanted
=
0.8
*
epsP
/
estSum
;
double
redfac
=
std
::
min
((
1.0
-
wanted
)
/
(
1.0
-
improv
),
1.0
);
redfac
=
std
::
max
(
redfac
,
0.0
);
if
(
redfac
<
1.0
)
{
...
...
@@ -155,7 +161,7 @@ namespace AMDiS {
}
oldErrSum
=
estSum
;
GERSGamma
=
1.0
;
double
GERSGamma
=
1.0
;
if
(
adaptInfo
->
isRefinementAllowed
(
row
==
-
1
?
0
:
row
))
{
if
(
LTheta
>
0
)
{
...
...
@@ -195,7 +201,7 @@ namespace AMDiS {
elInfo
=
stack
.
traverseNext
(
elInfo
);
}
INFO
(
info
,
6
)(
"coarse loop: gamma
=
%.3e, sum
=
%.3e, limit
=
%.3e
\n
"
,
INFO
(
info
,
6
)(
"coarse loop: gamma
=
%.3e, sum
=
%.3e, limit
=
%.3e
\n
"
,
GERSGamma
,
GERSSum
,
LTheta
);
}
while
(
GERSSum
>
LTheta
);
...
...
@@ -213,6 +219,7 @@ namespace AMDiS {
return
(
markFlag
);
}
void
GERSMarker
::
markElementForRefinement
(
AdaptInfo
*
adaptInfo
,
ElInfo
*
elInfo
)
{
Element
*
el
=
elInfo
->
getElement
();
...
...
@@ -224,6 +231,7 @@ namespace AMDiS {
}
}
void
GERSMarker
::
markElementForCoarsening
(
AdaptInfo
*
adaptInfo
,
ElInfo
*
elInfo
)
{
Element
*
el
=
elInfo
->
getElement
();
...
...
This diff is collapsed.
Click to expand it.
AMDiS/src/parallel/GlobalMatrixSolver.cc
+
0
−
2
View file @
fc5e6ac8
...
...
@@ -385,8 +385,6 @@ namespace AMDiS {
{
FUNCNAME
(
"GlobalMatrixSolver::fillPetscMatrix()"
);
MSG
(
"START FILL PETSC MATRIX!
\n
"
);
clock_t
first
=
clock
();
int
nRankRows
=
meshDistributor
->
getNumberRankDofs
()
*
nComponents
;
int
nOverallRows
=
meshDistributor
->
getNumberOverallDofs
()
*
nComponents
;
...
...
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