Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Backofen, Rainer
amdis
Commits
7d472011
Commit
7d472011
authored
Nov 30, 2010
by
Naumann, Andreas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
first tests data production, need to change data for speedup
parent
613caf74
Changes
73
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
73 changed files
with
1540211 additions
and
65 deletions
+1540211
-65
AMDiS/test/CMakeLists.txt
AMDiS/test/CMakeLists.txt
+1
-1
AMDiS/test/datacreation/CMakeLists.txt
AMDiS/test/datacreation/CMakeLists.txt
+14
-3
AMDiS/test/datacreation/create_base.sh
AMDiS/test/datacreation/create_base.sh
+1
-0
AMDiS/test/datacreation/init
AMDiS/test/datacreation/init
+1
-0
AMDiS/test/datacreation/macro
AMDiS/test/datacreation/macro
+1
-0
AMDiS/test/datacreation/src/BallProject.cpp
AMDiS/test/datacreation/src/BallProject.cpp
+7
-6
AMDiS/test/datacreation/src/BallProject.h
AMDiS/test/datacreation/src/BallProject.h
+3
-3
AMDiS/test/datacreation/src/BunnyProject.cpp
AMDiS/test/datacreation/src/BunnyProject.cpp
+1
-3
AMDiS/test/datacreation/src/BunnyProject.h
AMDiS/test/datacreation/src/BunnyProject.h
+1
-1
AMDiS/test/datacreation/src/ElliptProject.cpp
AMDiS/test/datacreation/src/ElliptProject.cpp
+1
-3
AMDiS/test/datacreation/src/ElliptProject.h
AMDiS/test/datacreation/src/ElliptProject.h
+1
-1
AMDiS/test/datacreation/src/HeatProject.cpp
AMDiS/test/datacreation/src/HeatProject.cpp
+1
-4
AMDiS/test/datacreation/src/HeatProject.h
AMDiS/test/datacreation/src/HeatProject.h
+1
-1
AMDiS/test/datacreation/src/NeumannProject.cpp
AMDiS/test/datacreation/src/NeumannProject.cpp
+1
-4
AMDiS/test/datacreation/src/NeumannProject.h
AMDiS/test/datacreation/src/NeumannProject.h
+1
-1
AMDiS/test/datacreation/src/ParametricProject.cpp
AMDiS/test/datacreation/src/ParametricProject.cpp
+1
-4
AMDiS/test/datacreation/src/ParametricProject.h
AMDiS/test/datacreation/src/ParametricProject.h
+1
-1
AMDiS/test/datacreation/src/PeriodicProject.cpp
AMDiS/test/datacreation/src/PeriodicProject.cpp
+1
-4
AMDiS/test/datacreation/src/PeriodicProject.h
AMDiS/test/datacreation/src/PeriodicProject.h
+1
-1
AMDiS/test/datacreation/src/Project.h
AMDiS/test/datacreation/src/Project.h
+0
-2
AMDiS/test/datacreation/src/ProjectList.cpp
AMDiS/test/datacreation/src/ProjectList.cpp
+0
-3
AMDiS/test/datacreation/src/SphereProject.cpp
AMDiS/test/datacreation/src/SphereProject.cpp
+1
-4
AMDiS/test/datacreation/src/SphereProject.h
AMDiS/test/datacreation/src/SphereProject.h
+1
-1
AMDiS/test/datacreation/src/VecelliptProject.cpp
AMDiS/test/datacreation/src/VecelliptProject.cpp
+2
-6
AMDiS/test/datacreation/src/VecelliptProject.h
AMDiS/test/datacreation/src/VecelliptProject.h
+1
-1
AMDiS/test/datacreation/src/creator_base.cpp
AMDiS/test/datacreation/src/creator_base.cpp
+19
-7
AMDiS/test/testdata/init/_periodic.dat.1d
AMDiS/test/testdata/init/_periodic.dat.1d
+49
-0
AMDiS/test/testdata/init/ball.dat.2d
AMDiS/test/testdata/init/ball.dat.2d
+44
-0
AMDiS/test/testdata/init/ball.dat.3d
AMDiS/test/testdata/init/ball.dat.3d
+25
-0
AMDiS/test/testdata/init/bunny.init
AMDiS/test/testdata/init/bunny.init
+46
-0
AMDiS/test/testdata/init/couple.dat.2d
AMDiS/test/testdata/init/couple.dat.2d
+47
-0
AMDiS/test/testdata/init/ellipt.dat.1d
AMDiS/test/testdata/init/ellipt.dat.1d
+48
-0
AMDiS/test/testdata/init/ellipt.dat.2d
AMDiS/test/testdata/init/ellipt.dat.2d
+44
-0
AMDiS/test/testdata/init/ellipt.dat.3d
AMDiS/test/testdata/init/ellipt.dat.3d
+46
-0
AMDiS/test/testdata/init/heat.dat.1d
AMDiS/test/testdata/init/heat.dat.1d
+78
-0
AMDiS/test/testdata/init/heat.dat.2d
AMDiS/test/testdata/init/heat.dat.2d
+55
-0
AMDiS/test/testdata/init/heat.dat.3d
AMDiS/test/testdata/init/heat.dat.3d
+64
-0
AMDiS/test/testdata/init/neumann.dat.2d
AMDiS/test/testdata/init/neumann.dat.2d
+33
-0
AMDiS/test/testdata/init/parallelellipt.dat.2d
AMDiS/test/testdata/init/parallelellipt.dat.2d
+136
-0
AMDiS/test/testdata/init/parallelheat.dat.2d
AMDiS/test/testdata/init/parallelheat.dat.2d
+78
-0
AMDiS/test/testdata/init/parallelvecellipt.dat.2d
AMDiS/test/testdata/init/parallelvecellipt.dat.2d
+102
-0
AMDiS/test/testdata/init/parametric.dat.3d
AMDiS/test/testdata/init/parametric.dat.3d
+45
-0
AMDiS/test/testdata/init/periodic.dat.2d
AMDiS/test/testdata/init/periodic.dat.2d
+49
-0
AMDiS/test/testdata/init/periodic.dat.3d
AMDiS/test/testdata/init/periodic.dat.3d
+49
-0
AMDiS/test/testdata/init/periodic.per.1d
AMDiS/test/testdata/init/periodic.per.1d
+4
-0
AMDiS/test/testdata/init/periodic.per.2d
AMDiS/test/testdata/init/periodic.per.2d
+7
-0
AMDiS/test/testdata/init/periodic.per.3d
AMDiS/test/testdata/init/periodic.per.3d
+19
-0
AMDiS/test/testdata/init/sphere.dat.3d
AMDiS/test/testdata/init/sphere.dat.3d
+24
-0
AMDiS/test/testdata/init/torus.dat.3d
AMDiS/test/testdata/init/torus.dat.3d
+22
-0
AMDiS/test/testdata/init/vecellipt.dat.1d
AMDiS/test/testdata/init/vecellipt.dat.1d
+50
-0
AMDiS/test/testdata/init/vecellipt.dat.2d
AMDiS/test/testdata/init/vecellipt.dat.2d
+43
-0
AMDiS/test/testdata/init/vecellipt.dat.3d
AMDiS/test/testdata/init/vecellipt.dat.3d
+53
-0
AMDiS/test/testdata/init/vecheat.dat.1d
AMDiS/test/testdata/init/vecheat.dat.1d
+109
-0
AMDiS/test/testdata/init/vecheat.dat.2d
AMDiS/test/testdata/init/vecheat.dat.2d
+84
-0
AMDiS/test/testdata/init/vecheat.dat.3d
AMDiS/test/testdata/init/vecheat.dat.3d
+109
-0
AMDiS/test/testdata/macro/bunny.macro
AMDiS/test/testdata/macro/bunny.macro
+451559
-0
AMDiS/test/testdata/macro/bunny_fixed.macro
AMDiS/test/testdata/macro/bunny_fixed.macro
+455788
-0
AMDiS/test/testdata/macro/horse.macro
AMDiS/test/testdata/macro/horse.macro
+630300
-0
AMDiS/test/testdata/macro/macro.ball.2d
AMDiS/test/testdata/macro/macro.ball.2d
+36
-0
AMDiS/test/testdata/macro/macro.ball.3d
AMDiS/test/testdata/macro/macro.ball.3d
+48
-0
AMDiS/test/testdata/macro/macro.stand.1d
AMDiS/test/testdata/macro/macro.stand.1d
+15
-0
AMDiS/test/testdata/macro/macro.stand.2d
AMDiS/test/testdata/macro/macro.stand.2d
+30
-0
AMDiS/test/testdata/macro/macro.stand.3d
AMDiS/test/testdata/macro/macro.stand.3d
+39
-0
AMDiS/test/testdata/macro/macro_big.stand.1d
AMDiS/test/testdata/macro/macro_big.stand.1d
+15
-0
AMDiS/test/testdata/macro/macro_big.stand.2d
AMDiS/test/testdata/macro/macro_big.stand.2d
+24
-0
AMDiS/test/testdata/macro/macro_big.stand.3d
AMDiS/test/testdata/macro/macro_big.stand.3d
+39
-0
AMDiS/test/testdata/macro/neumann.macro.2d
AMDiS/test/testdata/macro/neumann.macro.2d
+24
-0
AMDiS/test/testdata/macro/parametric_macro.3d
AMDiS/test/testdata/macro/parametric_macro.3d
+43
-0
AMDiS/test/testdata/macro/periodic.macro.1d
AMDiS/test/testdata/macro/periodic.macro.1d
+23
-0
AMDiS/test/testdata/macro/periodic.macro.2d
AMDiS/test/testdata/macro/periodic.macro.2d
+56
-0
AMDiS/test/testdata/macro/periodic.macro.3d
AMDiS/test/testdata/macro/periodic.macro.3d
+186
-0
AMDiS/test/testdata/macro/sphere_macro.3d
AMDiS/test/testdata/macro/sphere_macro.3d
+57
-0
AMDiS/test/testdata/macro/torus_macro.3d
AMDiS/test/testdata/macro/torus_macro.3d
+303
-0
No files found.
AMDiS/test/CMakeLists.txt
View file @
7d472011
project
(
tests
)
add_subdirectory
(
datacreation
)
add_subdirectory
(
datacreation
EXCLUDE_FROM_ALL
)
AMDiS/test/datacreation/CMakeLists.txt
View file @
7d472011
project
(
testdatacreation
)
message
(
"source-dir:
${
AMDiS_SOURCE_DIR
}
"
)
include_directories
(
${
AMDiS_SOURCE_DIR
}
)
file
(
GLOB PROJECTFILES src/*Project.cpp
)
set
(
CREATELINE
""
)
foreach
(
projectfile
${
PROJECTFILES
}
)
#create creatorname
get_filename_component
(
CppName
${
projectfile
}
,
NAME_WE
)
get_filename_component
(
CppName
${
projectfile
}
NAME_WE
)
string
(
REPLACE
"Project"
""
creatorsuffix
${
CppName
}
)
set
(
PROJECTINCLUDE
"
${
CppName
}
.h"
)
set
(
CURRENTPROJECTTYPE
"
${
creatorsuffix
}
demo"
)
string
(
TOLOWER
"
${
creatorsuffix
}
"
creatorsuffix_lower
)
set
(
BASENAME
"
${
creatorsuffix_lower
}
"
)
configure_file
(
src/creator_base.cpp src/creator
${
creatorsuffix
}
.cpp @ONLY
)
add_executable
(
creator
${
creatorsuffix
}
src/creator
${
creatorsuffix
}
.cpp src/ProjectList.cpp
${
projectfile
}
)
target_link_libraries
(
creator
${
creatorsuffix
}
${
AMDiS_LIBS
}
)
target_link_libraries
(
creator
${
creatorsuffix
}
${
AMDiS_LIBS
}
boost_filesystem
)
file
(
GLOB initfiles RELATIVE
${
CMAKE_CURRENT_BINARY_DIR
}
init/
${
creatorsuffix_lower
}
*.dat*
)
foreach
(
initfile
${
initfiles
}
)
get_filename_component
(
initfile_ext
${
initfile
}
EXT
)
string
(
REPLACE
".dat."
""
initfile_ext
"
${
initfile_ext
}
"
)
set
(
curoutputdatafile
"../testdata/
${
creatorsuffix_lower
}
_
${
initfile_ext
}
.arh"
)
set
(
CREATELINE
"
${
CREATELINE
}
./creator
${
creatorsuffix
}
${
initfile
}
${
curoutputdatafile
}
\n
"
)
endforeach
(
initfile
)
endforeach
(
projectfile
)
configure_file
(
create_base.sh create.sh
)
AMDiS/test/datacreation/create_base.sh
0 → 100755
View file @
7d472011
@CREATELINE@
AMDiS/test/datacreation/init
0 → 120000
View file @
7d472011
../testdata/init
\ No newline at end of file
AMDiS/test/datacreation/macro
0 → 120000
View file @
7d472011
../testdata/macro
\ No newline at end of file
AMDiS/test/datacreation/src/BallProject.cpp
View file @
7d472011
...
...
@@ -28,7 +28,7 @@ public:
}
};
Ball
D
emo
::
Ball
D
emo
()
:
Ball
d
emo
::
Ball
d
emo
()
:
ball
(
"ball"
),
ballCenter
(
NULL
),
adaptInfo
(
NULL
),
...
...
@@ -38,7 +38,7 @@ BallDemo::BallDemo():
{
}
Ball
D
emo
::~
Ball
D
emo
()
{
Ball
d
emo
::~
Ball
d
emo
()
{
if
(
matrixOperator
!=
NULL
)
delete
matrixOperator
;
if
(
rhsOperator
!=
NULL
)
...
...
@@ -51,7 +51,7 @@ BallDemo::~BallDemo() {
delete
adaptInfo
;
}
void
Ball
D
emo
::
create
(
std
::
string
&
filename
)
{
void
Ball
d
emo
::
create
(
std
::
string
&
filename
)
{
// ===== init parameters =====
Parameters
::
init
(
false
,
filename
);
ballCenter
=
new
WorldVector
<
double
>
();
...
...
@@ -89,7 +89,7 @@ void BallDemo::create(std::string& filename) {
}
int
Ball
D
emo
::
solve
(
SolutionInformation
&
solinfo
)
{
int
Ball
d
emo
::
solve
(
SolutionInformation
&
solinfo
)
{
assert
(
adaptInfo
!=
NULL
);
assert
(
adapt
!=
NULL
);
assert
(
matrixOperator
!=
NULL
);
...
...
@@ -99,13 +99,14 @@ int BallDemo::solve(SolutionInformation& solinfo) {
solinfo
.
dofVec
=
ball
.
getSolution
();
return
retCode
;
}
/*
void createProjectList(ProjectList& list) {
list.clear();
Project
*
demo
=
new
Ball
D
emo
();
Project* demo = new Ball
d
emo();
ProjectInfo ballInfo(demo, "init/ball.dat.2d", "../testdata/balldata_2d");
list.push_back(ballInfo);
ballInfo = ProjectInfo(demo, "init/ball.dat.3d", "../testdata/balldata_3d");
list.push_back(ballInfo);
}
*/
AMDiS/test/datacreation/src/BallProject.h
View file @
7d472011
...
...
@@ -7,7 +7,7 @@
using
namespace
AMDiS
;
class
Ball
D
emo
:
public
Project
{
class
Ball
d
emo
:
public
Project
{
ProblemScal
ball
;
WorldVector
<
double
>*
ballCenter
;
AdaptInfo
*
adaptInfo
;
...
...
@@ -15,8 +15,8 @@ class BallDemo : public Project {
Operator
*
matrixOperator
;
Operator
*
rhsOperator
;
public:
Ball
D
emo
()
;
~
Ball
D
emo
()
;
Ball
d
emo
()
;
~
Ball
d
emo
()
;
void
create
(
std
::
string
&
)
;
int
solve
(
SolutionInformation
&
);
...
...
AMDiS/test/datacreation/src/BunnyProject.cpp
View file @
7d472011
...
...
@@ -48,7 +48,7 @@ Bunnydemo::~Bunnydemo() {
delete
rhsOperator
;
}
void
Bunnydemo
::
create
(
string
filename
)
{
void
Bunnydemo
::
create
(
string
&
filename
)
{
// ===== init parameters =====
Parameters
::
init
(
false
,
filename
);
...
...
@@ -87,5 +87,3 @@ int Bunnydemo::solve(SolutionInformation& info) {
return
retCode
;
}
void
createProjectList
(
ProjectList
&
list
)
{
}
AMDiS/test/datacreation/src/BunnyProject.h
View file @
7d472011
...
...
@@ -17,7 +17,7 @@ class Bunnydemo : public Project {
Bunnydemo
();
~
Bunnydemo
();
void
create
(
string
filename
);
void
create
(
string
&
filename
);
int
solve
(
SolutionInformation
&
);
};
#endif
AMDiS/test/datacreation/src/ElliptProject.cpp
View file @
7d472011
...
...
@@ -48,7 +48,7 @@ Elliptdemo::~Elliptdemo() {
delete
adaptInfo
;
}
void
Elliptdemo
::
create
(
std
::
string
filename
)
{
void
Elliptdemo
::
create
(
std
::
string
&
filename
)
{
// ===== init parameters =====
Parameters
::
init
(
true
,
filename
);
...
...
@@ -90,5 +90,3 @@ int Elliptdemo::solve(SolutionInformation& info) {
return
retCode
;
}
void
createProjectList
(
ProjectList
&
list
)
{
}
AMDiS/test/datacreation/src/ElliptProject.h
View file @
7d472011
...
...
@@ -15,7 +15,7 @@ class Elliptdemo : public Project {
Elliptdemo
();
~
Elliptdemo
();
void
create
(
std
::
string
filename
);
void
create
(
std
::
string
&
filename
);
int
solve
(
SolutionInformation
&
info
);
};
#endif
AMDiS/test/datacreation/src/HeatProject.cpp
View file @
7d472011
...
...
@@ -56,7 +56,7 @@ Heatdemo::~Heatdemo() {
delete
Fop
;
}
void
Heatdemo
::
create
(
string
filename
)
{
void
Heatdemo
::
create
(
string
&
filename
)
{
// ===== init parameters =====
Parameters
::
init
(
false
,
filename
);
// Parameters::readArgv(argc, argv);
...
...
@@ -127,6 +127,3 @@ int Heatdemo::solve(SolutionInformation& info) {
info
.
dofVec
=
heatSpace
.
getSolution
();
return
retCode
;
}
void
createProjectList
(
ProjectList
&
list
)
{
}
AMDiS/test/datacreation/src/HeatProject.h
View file @
7d472011
...
...
@@ -21,7 +21,7 @@ class Heatdemo : public Project {
Heatdemo
();
~
Heatdemo
();
void
create
(
string
filename
);
void
create
(
string
&
filename
);
int
solve
(
SolutionInformation
&
info
);
};
...
...
AMDiS/test/datacreation/src/NeumannProject.cpp
View file @
7d472011
...
...
@@ -57,7 +57,7 @@ Neumanndemo::~Neumanndemo() {
delete
adaptInfo
;
}
void
Neumanndemo
::
create
(
string
filename
)
{
void
Neumanndemo
::
create
(
string
&
filename
)
{
// ===== init parameters =====
Parameters
::
init
(
true
,
filename
);
...
...
@@ -94,6 +94,3 @@ int Neumanndemo::solve(SolutionInformation& info) {
info
.
dofVec
=
neumann
.
getSolution
();
return
retCode
;
}
void
createProjectList
(
ProjectList
&
list
)
{
}
AMDiS/test/datacreation/src/NeumannProject.h
View file @
7d472011
...
...
@@ -14,7 +14,7 @@ class Neumanndemo : public Project {
Neumanndemo
();
~
Neumanndemo
();
void
create
(
string
filename
);
void
create
(
string
&
filename
);
int
solve
(
SolutionInformation
&
);
};
#endif
AMDiS/test/datacreation/src/ParametricProject.cpp
View file @
7d472011
...
...
@@ -32,7 +32,7 @@ Parametricdemo::~Parametricdemo() {
delete
adaptInfo
;
}
void
Parametricdemo
::
create
(
string
filename
)
{
void
Parametricdemo
::
create
(
string
&
filename
)
{
// ===== init parameters =====
Parameters
::
init
(
false
,
filename
);
...
...
@@ -67,6 +67,3 @@ int Parametricdemo::solve(SolutionInformation& info) {
info
.
dofVec
=
parametric
.
getSolution
();
return
retCode
;
}
void
createProjectList
(
ProjectList
&
list
)
{
}
AMDiS/test/datacreation/src/ParametricProject.h
View file @
7d472011
...
...
@@ -16,7 +16,7 @@ class Parametricdemo : public Project {
Parametricdemo
();
~
Parametricdemo
();
void
create
(
string
filename
);
void
create
(
string
&
filename
);
int
solve
(
SolutionInformation
&
);
};
...
...
AMDiS/test/datacreation/src/PeriodicProject.cpp
View file @
7d472011
...
...
@@ -46,7 +46,7 @@ Periodicdemo::~Periodicdemo() {
delete
adaptInfo
;
}
void
Periodicdemo
::
create
(
string
filename
)
{
void
Periodicdemo
::
create
(
string
&
filename
)
{
// ===== init parameters =====
Parameters
::
init
(
false
,
filename
);
...
...
@@ -85,6 +85,3 @@ int Periodicdemo::solve(SolutionInformation& info) {
info
.
dofVec
=
periodic
.
getSolution
();
return
retCode
;
}
void
createProjectList
(
ProjectList
&
list
)
{
}
AMDiS/test/datacreation/src/PeriodicProject.h
View file @
7d472011
...
...
@@ -14,7 +14,7 @@ class Periodicdemo : public Project {
Periodicdemo
();
~
Periodicdemo
();
void
create
(
string
filename
);
void
create
(
string
&
filename
);
int
solve
(
SolutionInformation
&
);
};
#endif
AMDiS/test/datacreation/src/Project.h
View file @
7d472011
...
...
@@ -58,6 +58,4 @@ class ProjectInfo {
}
};
typedef
list
<
ProjectInfo
>
ProjectList
;
void
createProjectList
(
ProjectList
&
);
#endif
AMDiS/test/datacreation/src/ProjectList.cpp
View file @
7d472011
#include "Project.h"
#include "BallProject.h"
#include "io/ArhWriter.h"
#include "io/ArhReader.h"
#include <vector>
...
...
AMDiS/test/datacreation/src/SphereProject.cpp
View file @
7d472011
...
...
@@ -36,7 +36,7 @@ Spheredemo::~Spheredemo() {
delete
adaptInfo
;
}
void
Spheredemo
::
create
(
string
filename
)
{
void
Spheredemo
::
create
(
string
&
filename
)
{
// ===== init parameters =====
Parameters
::
init
(
false
,
filename
);
...
...
@@ -76,6 +76,3 @@ int Spheredemo::solve(SolutionInformation& info) {
info
.
dofVec
=
sphere
.
getSolution
();
return
retCode
;
}
void
createProjectList
(
ProjectList
&
list
)
{
}
AMDiS/test/datacreation/src/SphereProject.h
View file @
7d472011
...
...
@@ -17,7 +17,7 @@ class Spheredemo : public Project {
Spheredemo
();
~
Spheredemo
();
void
create
(
string
filename
);
void
create
(
string
&
filename
);
int
solve
(
SolutionInformation
&
);
};
#endif
AMDiS/test/datacreation/src/VecelliptProject.cpp
View file @
7d472011
...
...
@@ -53,10 +53,9 @@ Vecelliptdemo::~Vecelliptdemo() {
delete
adaptInfo
;
}
void
Vecelliptdemo
::
create
(
string
filename
)
{
void
Vecelliptdemo
::
create
(
string
&
filename
)
{
// ===== init parameters =====
Parameters
::
init
(
false
,
filename
);
Parameters
::
init
(
true
,
filename
);
// ===== create and init the scalar problem =====
vecellipt
.
initialize
(
INIT_ALL
);
...
...
@@ -100,6 +99,3 @@ int Vecelliptdemo::solve(SolutionInformation& info) {
info
.
sysVec
=
vecellipt
.
getSolution
();
return
retCode
;
}
void
createProjectList
(
ProjectList
&
list
)
{
}
AMDiS/test/datacreation/src/VecelliptProject.h
View file @
7d472011
...
...
@@ -17,7 +17,7 @@ class Vecelliptdemo : public Project {
Vecelliptdemo
();
~
Vecelliptdemo
();
void
create
(
string
filename
);
void
create
(
string
&
filename
);
int
solve
(
SolutionInformation
&
);
};
...
...
AMDiS/test/datacreation/src/creator_base.cpp
View file @
7d472011
#include "Parameters.h"
#include "Project.h"
#include "@PROJECTINCLUDE@"
typedef
@
CURRENTPROJECTTYPE
@
ProjectType
;
std
::
string
basename
=
"@BASENAME@"
;
int
main
(
int
argc
,
char
**
argv
)
{
ProjectList
list
;
createProjectList
(
list
);
for
(
ProjectList
::
iterator
it
=
list
.
begin
()
;
it
!=
list
.
end
();
++
it
)
{
it
->
create
();
SolutionInformation
info
;
it
->
solve
(
info
);
write
(
info
,
it
->
getFilename
());
if
(
argc
<
2
)
{
std
::
cout
<<
" need initfile "
<<
basename
<<
"*
\n
"
;
return
1
;
}
if
(
argc
<
3
)
{
std
::
cout
<<
" also need a destination file "
<<
basename
<<
"*
\n
"
;
return
2
;
}
std
::
string
initfile
(
argv
[
1
]);
std
::
string
destinationfile
(
argv
[
2
]);
AMDiS
::
Parameters
::
init
(
false
,
initfile
);
ProjectType
project
;
ProjectInfo
info
(
&
project
,
initfile
,
destinationfile
);
info
.
create
();
SolutionInformation
solinfo
;
info
.
solve
(
solinfo
);
write
(
solinfo
,
info
.
getFilename
());
return
0
;
}
AMDiS/test/testdata/init/_periodic.dat.1d
0 → 100644
View file @
7d472011
dimension of world: 1
periodicMesh->macro file name: ./macro/periodic.macro.1d
periodicMesh->global refinements: 0
periodicMesh->periodic file: ./init/periodic.per.1d
periodicMesh->preserve coarse dofs: 0
periodic->mesh: periodicMesh
periodic->dim: 1
periodic->polynomial degree: 1
periodic->solver: cg
periodic->solver->max iteration: 1000
periodic->solver->tolerance: 1.e-8
periodic->solver->info: 2
periodic->solver->left precon: diag
periodic->solver->right precon: no
periodic->estimator: residual
periodic->estimator->error norm: 1 % 1: H1_NORM, 2: L2_NORM
periodic->estimator->C0: 0.1 % constant of element residual
periodic->estimator->C1: 0.0 % constant of jump residual
periodic->marker->strategy: 2 % 0: no adaption 1: GR 2: MS 3: ES 4:GERS
periodic->marker->MSGamma: 0.5
periodic->adapt->tolerance: 1e-6
periodic->adapt->max iteration: 14
periodic->adapt->refine bisections: 2
periodic->adapt->coarsen allowed: 0
periodic->output->filename: periodic
periodic->output->ParaView format: 1
periodic->output->TecPlot format: 0
periodic->output->TecPlot ext: .tec
periodic->output->AMDiS format: 0
periodic->output->AMDiS mesh ext: .mesh
periodic->output->AMDiS data ext: .dat
periodic->output->append index: 0
periodic->output->index length: 6
periodic->output->index decimals: 3
WAIT: 1
AMDiS/test/testdata/init/ball.dat.2d
0 → 100644
View file @
7d472011
dimension of world: 2
ballMesh->macro file name: ./macro/macro.ball.2d
ballMesh->global refinements: 3
ball->mesh: ballMesh
ball->dim: 2
ball->polynomial degree: 1
ball->solver: cg
ball->solver->max iteration: 1000
ball->solver->tolerance: 1.e-8
ball->solver->info: 2
ball->solver->left precon: diag
ball->solver->right precon: no
ball->estimator: residual % residual, recovery
ball->estimator->error norm: 1 % 1: H1_NORM, 2: L2_NORM
ball->estimator->C1: 0.1 % constant of jump residual
ball->marker->strategy: 0 % 0: no adaption 1: GR 2: MS 3: ES 4:GERS
ball->marker->MSGamma: 0.5
ball->adapt->tolerance: 1e-8
ball->adapt->max iteration: 4
ball->adapt->info: 8
ball->output->filename: ball
ball->output->ParaView format: 1
ball->output->TecPlot format: 0
ball->output->TecPlot ext: .tec
ball->output->AMDiS format: 0
ball->output->AMDiS mesh ext: .mesh
ball->output->AMDiS data ext: .dat
ball->output->append index: 0
ball->output->index length: 6
ball->output->index decimals: 3
WAIT: 1
AMDiS/test/testdata/init/ball.dat.3d
0 → 100644
View file @
7d472011
dimension of world: 3
ballMesh->macro file name: ./macro/macro.ball.3d
ballMesh->global refinements: 15
ball->mesh: ballMesh
ball->dim: 3
ball->polynomial degree: 1
ball->solver: cg
ball->solver->max iteration: 1000
ball->solver->tolerance: 1.e-8
ball->solver->left precon: diag
ball->estimator: 0
ball->marker->strategy: 0 % 0: no adaption 1: GR 2: MS 3: ES 4:GERS
ball->output->filename: output/ball
ball->output->ParaView format: 1
ball->output->AMDiS format: 0
ball->output->AMDiS mesh ext: .mesh
ball->output->AMDiS data ext: .dat
AMDiS/test/testdata/init/bunny.init
0 → 100644
View file @
7d472011
dimension of world: 3
bunnyMesh->macro file name: ./macro/bunny_fixed.macro
bunnyMesh->check: 0
bunnyMesh->global refinements: 0
bunny->mesh: bunnyMesh
bunny->dim: 2
bunny->polynomial degree: 1
bunny->solver: cg
bunny->solver->max iteration: 100
bunny->solver->tolerance: 1.e-8
bunny->solver->info: 5
bunny->solver->left precon: diag
bunny->solver->right precon: no
bunny->estimator: residual % residual, recovery
bunny->estimator->error norm: 1 % 1: H1_NORM, 2: L2_NORM
bunny->estimator->C1: 0.1 % constant of jump residual
bunny->marker->strategy: 0 % 0: no adaption 1: GR 2: MS 3: ES 4:GERS
bunny->marker->MSGamma: 0.5
bunny->adapt->tolerance: 1e-8
bunny->adapt->refine bisections: 1
bunny->adapt->max iteration: 0
bunny->adapt->info: 8
bunny->output->filename: bunny_fixed
bunny->output->ParaView format: 1
bunny->output->TecPlot format: 0
bunny->output->TecPlot ext: .tec
bunny->output->AMDiS format: 0
bunny->output->AMDiS mesh ext: .mesh
bunny->output->AMDiS data ext: .dat
bunny->output->append index: 0
bunny->output->index length: 6
bunny->output->index decimals: 3
WAIT: 1
AMDiS/test/testdata/init/couple.dat.2d
0 → 100644
View file @
7d472011
dimension of world: 2
couple->adapt->tolerance: 1e-8
couple->adapt->max iteration: 10
couple->adapt->refine bisections: 2
coupleMesh->macro file name: ./macro/macro.stand.2d
coupleMesh->global refinements: 0
problem1->mesh: coupleMesh
problem1->dim: 2
problem1->polynomial degree: 1
problem1->solver: cg
problem1->solver->max iteration: 1000
problem1->solver->tolerance: 1.e-8
problem1->solver->left precon: diag
problem1->estimator: residual
problem1->estimator->C0: 0.1 % constant of element residual
problem1->estimator->C1: 0.1 % constant of jump residual
problem1->marker->strategy: 2 % 0: no adaption 1: GR 2: MS 3: ES 4:GERS
problem1->marker->MSGamma: 0.5
problem1->output->filename: output/problem1
problem1->output->ParaView format: 1
problem1->output->AMDiS format: 0
problem1->output->AMDiS mesh ext: .mesh
problem1->output->AMDiS data ext: .dat
problem2->dim: 2
problem2->polynomial degree: 1
problem2->solver: cg
problem2->solver->max iteration: 1000
problem2->solver->tolerance: 1.e-8
problem2->solver->left precon: diag
problem2->estimator: 0
problem2->marker->strategy: 0
problem2->output->filename: output/problem2
problem2->output->ParaView format: 1
problem2->output->AMDiS format: 0
problem2->output->AMDiS mesh ext: .mesh
problem2->output->AMDiS data ext: .dat
AMDiS/test/testdata/init/ellipt.dat.1d
0 → 100644
View file @
7d472011
dimension of world: 1