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
6febba8b
Commit
6febba8b
authored
12 years ago
by
Thomas Witkowski
Browse files
Options
Downloads
Patches
Plain Diff
Demo roleback to old version.
parent
5e529972
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
demo/init/ellipt.dat.3d
+2
-2
2 additions, 2 deletions
demo/init/ellipt.dat.3d
demo/init/vecellipt.dat.2d
+3
-3
3 additions, 3 deletions
demo/init/vecellipt.dat.2d
demo/src/ellipt.cc
+2
-4
2 additions, 4 deletions
demo/src/ellipt.cc
demo/src/vecellipt.cc
+5
-14
5 additions, 14 deletions
demo/src/vecellipt.cc
with
12 additions
and
23 deletions
demo/init/ellipt.dat.3d
+
2
−
2
View file @
6febba8b
...
@@ -5,7 +5,7 @@ elliptMesh->global refinements: 0
...
@@ -5,7 +5,7 @@ elliptMesh->global refinements: 0
ellipt->mesh: elliptMesh
ellipt->mesh: elliptMesh
ellipt->dim: 3
ellipt->dim: 3
ellipt->polynomial degree[0]:
4
ellipt->polynomial degree[0]:
0
ellipt->components: 1
ellipt->components: 1
ellipt->solver: cg
ellipt->solver: cg
...
@@ -25,7 +25,7 @@ ellipt->marker[0]->MSGamma: 0.5
...
@@ -25,7 +25,7 @@ ellipt->marker[0]->MSGamma: 0.5
ellipt->adapt[0]->tolerance: 1e-4
ellipt->adapt[0]->tolerance: 1e-4
ellipt->adapt[0]->refine bisections: 2
ellipt->adapt[0]->refine bisections: 2
ellipt->adapt->max iteration: 0
ellipt->adapt->max iteration:
1
0
ellipt->output->filename: output/ellipt.3d
ellipt->output->filename: output/ellipt.3d
ellipt->output->ParaView format: 1
ellipt->output->ParaView format: 1
...
...
This diff is collapsed.
Click to expand it.
demo/init/vecellipt.dat.2d
+
3
−
3
View file @
6febba8b
dimension of world: 2
dimension of world: 2
vecelliptMesh->macro file name: ./macro/macro.stand.2d
vecelliptMesh->macro file name: ./macro/macro.stand.2d
vecelliptMesh->global refinements:
6
vecelliptMesh->global refinements:
2
vecellipt->mesh: vecelliptMesh
vecellipt->mesh: vecelliptMesh
vecellipt->dim: 2
vecellipt->dim: 2
...
@@ -21,7 +21,7 @@ vecellipt->estimator[0]->error norm: 1 % 1: H1_NORM, 2: L2_NORM
...
@@ -21,7 +21,7 @@ vecellipt->estimator[0]->error norm: 1 % 1: H1_NORM, 2: L2_NORM
vecellipt->estimator[0]->C0: 0.1 % constant of element residual
vecellipt->estimator[0]->C0: 0.1 % constant of element residual
vecellipt->estimator[0]->C1: 0.1 % constant of jump residual
vecellipt->estimator[0]->C1: 0.1 % constant of jump residual
vecellipt->marker[0]->strategy:
0
% 0: no adaption 1: GR 2: MS 3: ES 4:GERS
vecellipt->marker[0]->strategy:
2
% 0: no adaption 1: GR 2: MS 3: ES 4:GERS
vecellipt->marker[0]->MSGamma: 0.5
vecellipt->marker[0]->MSGamma: 0.5
vecellipt->estimator[1]: 0
vecellipt->estimator[1]: 0
...
@@ -30,7 +30,7 @@ vecellipt->marker[1]->strategy: 0 % 0: no adaption 1: GR 2: MS 3: ES
...
@@ -30,7 +30,7 @@ vecellipt->marker[1]->strategy: 0 % 0: no adaption 1: GR 2: MS 3: ES
vecellipt->adapt[0]->tolerance: 1e-2
vecellipt->adapt[0]->tolerance: 1e-2
vecellipt->adapt[1]->tolerance: 1e-3
vecellipt->adapt[1]->tolerance: 1e-3
vecellipt->adapt->max iteration: 0
vecellipt->adapt->max iteration:
10
0
vecellipt->adapt->refine bisections: 2
vecellipt->adapt->refine bisections: 2
vecellipt->output[0]->filename: output/vecellipt.2d
vecellipt->output[0]->filename: output/vecellipt.2d
...
...
This diff is collapsed.
Click to expand it.
demo/src/ellipt.cc
+
2
−
4
View file @
6febba8b
...
@@ -76,10 +76,8 @@ int main(int argc, char* argv[])
...
@@ -76,10 +76,8 @@ int main(int argc, char* argv[])
// ===== start adaption loop =====
// ===== start adaption loop =====
// adapt.adapt();
adapt
.
adapt
();
MSG
(
"TEST: %d
\n
"
,
ellipt
.
getFeSpace
()
->
getBasisFcts
()
->
getNumber
());
ellipt
.
writeFiles
(
adaptInfo
,
true
);
ellipt
.
writeFiles
(
adaptInfo
,
true
);
AMDiS
::
finalize
();
AMDiS
::
finalize
();
...
...
This diff is collapsed.
Click to expand it.
demo/src/vecellipt.cc
+
5
−
14
View file @
6febba8b
...
@@ -58,23 +58,14 @@ int main(int argc, char* argv[])
...
@@ -58,23 +58,14 @@ int main(int argc, char* argv[])
// ===== create matrix operators =====
// ===== create matrix operators =====
Operator
matrixOperator00a
(
vecellipt
.
getFeSpace
(
0
),
vecellipt
.
getFeSpace
(
0
));
Operator
matrixOperator00
(
vecellipt
.
getFeSpace
(
0
),
vecellipt
.
getFeSpace
(
0
));
matrixOperator00a
.
addTerm
(
new
Simple_ZOT
);
matrixOperator00
.
addTerm
(
new
Simple_ZOT
);
vecellipt
.
addMatrixOperator
(
matrixOperator00a
,
0
,
0
);
vecellipt
.
addMatrixOperator
(
matrixOperator00
,
0
,
0
);
Operator
matrixOperator00b
(
vecellipt
.
getFeSpace
(
0
),
vecellipt
.
getFeSpace
(
0
));
matrixOperator00b
.
addTerm
(
new
Simple_SOT
);
vecellipt
.
addMatrixOperator
(
matrixOperator00b
,
0
,
0
);
Operator
matrixOperator10
(
vecellipt
.
getFeSpace
(
1
),
vecellipt
.
getFeSpace
(
0
));
Operator
matrixOperator10
(
vecellipt
.
getFeSpace
(
1
),
vecellipt
.
getFeSpace
(
0
));
matrixOperator10
.
addTerm
(
new
Simple_ZOT
);
matrixOperator10
.
addTerm
(
new
Simple_ZOT
);
vecellipt
.
addMatrixOperator
(
matrixOperator10
,
1
,
0
);
vecellipt
.
addMatrixOperator
(
matrixOperator10
,
1
,
0
);
Operator
matrixOperator01
(
vecellipt
.
getFeSpace
(
1
),
vecellipt
.
getFeSpace
(
1
));
matrixOperator01
.
addTerm
(
new
Simple_ZOT
);
vecellipt
.
addMatrixOperator
(
matrixOperator01
,
0
,
1
);
Operator
matrixOperator11
(
vecellipt
.
getFeSpace
(
0
),
vecellipt
.
getFeSpace
(
0
));
Operator
matrixOperator11
(
vecellipt
.
getFeSpace
(
0
),
vecellipt
.
getFeSpace
(
0
));
matrixOperator11
.
addTerm
(
new
Simple_SOT
);
matrixOperator11
.
addTerm
(
new
Simple_SOT
);
vecellipt
.
addMatrixOperator
(
matrixOperator11
,
1
,
1
);
vecellipt
.
addMatrixOperator
(
matrixOperator11
,
1
,
1
);
...
@@ -85,13 +76,13 @@ int main(int argc, char* argv[])
...
@@ -85,13 +76,13 @@ int main(int argc, char* argv[])
vecellipt
.
addVectorOperator
(
rhsOperator0
,
0
);
vecellipt
.
addVectorOperator
(
rhsOperator0
,
0
);
// ===== add boundary conditions =====
// ===== add boundary conditions =====
//
vecellipt.addDirichletBC(1, 0, 0, new G);
vecellipt
.
addDirichletBC
(
1
,
0
,
0
,
new
G
);
// ===== start adaption loop =====
// ===== start adaption loop =====
adapt
.
adapt
();
adapt
.
adapt
();
//
vecellipt.writeFiles(adaptInfo, true);
vecellipt
.
writeFiles
(
adaptInfo
,
true
);
AMDiS
::
finalize
();
AMDiS
::
finalize
();
}
}
...
...
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