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
85b6142e
Commit
85b6142e
authored
14 years ago
by
Naumann, Andreas
Browse files
Options
Downloads
Patches
Plain Diff
updated meshtest with dofadmins and checking the functionname pointer in addGlobalParameter now
parent
a0c32c71
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/Parameters.cc
+7
-1
7 additions, 1 deletion
AMDiS/src/Parameters.cc
AMDiS/test/Meshtest/src/Meshtest.cpp
+21
-15
21 additions, 15 deletions
AMDiS/test/Meshtest/src/Meshtest.cpp
with
28 additions
and
16 deletions
AMDiS/src/Parameters.cc
+
7
−
1
View file @
85b6142e
...
@@ -691,7 +691,13 @@ namespace AMDiS {
...
@@ -691,7 +691,13 @@ namespace AMDiS {
if
(
key
.
size
()
==
0
||
par
.
size
()
==
0
)
if
(
key
.
size
()
==
0
||
par
.
size
()
==
0
)
return
;
return
;
singlett
->
addParam
(
key
,
par
,
std
::
string
(
file
),
line
,
fname
);
std
::
string
file_str
;
if
(
file
!=
NULL
)
file_str
=
std
::
string
(
file
);
std
::
string
fname_str
;
if
(
fname
!=
NULL
)
fname_str
=
std
::
string
(
fname
);
singlett
->
addParam
(
key
,
par
,
file_str
,
line
,
fname_str
);
int
val
=
10
;
// defualt for level of information
int
val
=
10
;
// defualt for level of information
getGlobalParameter
(
0
,
"level of information"
,
"%d"
,
&
val
);
getGlobalParameter
(
0
,
"level of information"
,
"%d"
,
&
val
);
...
...
This diff is collapsed.
Click to expand it.
AMDiS/test/Meshtest/src/Meshtest.cpp
+
21
−
15
View file @
85b6142e
#include
"Mesh.h"
#include
"Mesh.h"
#include
"Parameters.h"
#include
"Parameters.h"
#include
"ProblemScal.h"
#include
<sstream>
using
namespace
AMDiS
;
using
namespace
AMDiS
;
void
testMesh
(
int
dim
)
{
std
::
stringstream
ss
;
ss
<<
dim
;
Parameters
::
addGlobalParameter
(
0
,
"dimension of world"
,
ss
.
str
());
Global
::
init
();
Mesh
mesh
(
"testMesh"
,
dim
);
DimVec
<
int
>
ln_dof
(
dim
,
DEFAULT_VALUE
,
0
);
ln_dof
[
VERTEX
]
=
1
;
mesh
.
createDOFAdmin
(
"vertex_dofs"
,
ln_dof
);
mesh
.
initialize
();
}
int
main
(
int
argc
,
char
**
argv
)
{
int
main
(
int
argc
,
char
**
argv
)
{
FUNCNAME
(
"no function"
);
//cannot use Parameters::addGlobalParameter(...) because of some string errors
//cannot use Parameters::addGlobalParameter(...) because of some string errors
// ADD_PARAMETER(1,"dimension of world","1");
Parameters
::
addGlobalParameter
(
0
,
"testMesh1->macro file name"
,
"macro/macro.stand.1d"
);
// ADD_PARAMETER(1,"testMesh1->macro file name","macro/macro.stand.1d");
Parameters
::
addGlobalParameter
(
0
,
"testMesh2->macro file name"
,
"macro/macro.stand.2d"
);
// ADD_PARAMETER(1,"testMesh2->macro file name","macro/macro.stand.2d");
Parameters
::
addGlobalParameter
(
0
,
"testMesh3->macro file name"
,
"macro/macro.stand.3d"
);
// ADD_PARAMETER(1,"testMesh3->macro file name","macro/macro.stand.3d");
Parameters
::
init
(
1
,
"init/ball.dat.2d"
);
Global
::
init
();
M
es
h
mesh1
(
"ballMesh"
,
2
);
t
es
tMesh
(
1
);
Mesh
mesh2
(
"
testMesh
1"
,
2
);
testMesh
(
2
);
Mesh
mesh3
(
"
testMesh
1"
,
3
);
testMesh
(
3
);
mesh1
.
initialize
();
mesh2
.
initialize
();
mesh3
.
initialize
();
return
0
;
return
0
;
}
}
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