Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Core Modules
dune-common
Commits
60b50a65
Commit
60b50a65
authored
19 years ago
by
Christian Engwer
Browse files
Options
Downloads
Patches
Plain Diff
Don't use DIM and DIM_OF_WORLD
[[Imported from SVN: r2996]]
parent
709d7813
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
fem/test/test-fem-alberta.cc
+7
-4
7 additions, 4 deletions
fem/test/test-fem-alberta.cc
grid/test/test-alberta.cc
+6
-3
6 additions, 3 deletions
grid/test/test-alberta.cc
with
13 additions
and
7 deletions
fem/test/test-fem-alberta.cc
+
7
−
4
View file @
60b50a65
...
...
@@ -6,7 +6,7 @@
Instantiate Alberta-Grid and feed it to the generic femcheck()
Note: Albert needs the defines DIM and D
IM_OF
_WORLD on the
Note: Albert needs the defines
DUNE_PROBLEM_
DIM and D
UNE
_WORLD
_DUNE_PROBLEM_DIM
on the
commandline anyway thus we can use them to select the correct class
*/
...
...
@@ -22,15 +22,18 @@ int main () {
try
{
/* use grid-file appropriate for dimensions */
std
::
ostringstream
filename
;
filename
<<
"alberta-testgrid-"
<<
DIM
<<
"-"
<<
DIM_OF_WORLD
<<
".al"
;
filename
<<
"alberta-testgrid-"
<<
DUNE_PROBLEM_DIM
<<
"-"
<<
DUNE_WORLD_DUNE_PROBLEM_DIM
<<
".al"
;
std
::
cout
<<
std
::
endl
<<
"AlbertaGrid<"
<<
DIM
<<
","
<<
DIM_OF_WORLD
std
::
cout
<<
std
::
endl
<<
"AlbertaGrid<"
<<
DUNE_PROBLEM_DIM
<<
","
<<
DUNE_WORLD_DUNE_PROBLEM_DIM
<<
"> with grid file: "
<<
filename
.
str
()
<<
std
::
endl
<<
std
::
endl
;
// extra-environment to check destruction
{
Dune
::
AlbertaGrid
<
DIM
,
DIM_OF_WORLD
>
grid
(
filename
.
str
().
c_str
());
Dune
::
AlbertaGrid
<
DUNE_PROBLEM_DIM
,
DUNE_WORLD_DUNE_PROBLEM_DIM
>
grid
(
filename
.
str
().
c_str
());
for
(
int
i
=
0
;
i
<
3
;
i
++
)
{
grid
.
globalRefine
(
1
);
...
...
This diff is collapsed.
Click to expand it.
grid/test/test-alberta.cc
+
6
−
3
View file @
60b50a65
...
...
@@ -22,16 +22,19 @@ int main () {
try
{
/* use grid-file appropriate for dimensions */
std
::
ostringstream
filename
;
filename
<<
"alberta-testgrid-"
<<
DIM
<<
"-"
<<
DIM_OF_WORLD
<<
".al"
;
filename
<<
"alberta-testgrid-"
<<
DUNE_PROBLEM_DIM
<<
"-"
<<
DUNE_WORLD_DIM
<<
".al"
;
std
::
cout
<<
std
::
endl
<<
"AlbertaGrid<"
<<
DIM
<<
","
<<
DIM_OF_WORLD
std
::
cout
<<
std
::
endl
<<
"AlbertaGrid<"
<<
DUNE_PROBLEM_DIM
<<
","
<<
DUNE_WORLD_DIM
<<
"> with grid file: "
<<
filename
.
str
()
<<
std
::
endl
<<
std
::
endl
;
// extra-environment to check destruction
{
factorEpsilon
=
500.0
;
Dune
::
AlbertaGrid
<
DIM
,
DIM_OF_WORLD
>
grid
(
filename
.
str
().
c_str
());
Dune
::
AlbertaGrid
<
DUNE_PROBLEM_DIM
,
DUNE_WORLD_DIM
>
grid
(
filename
.
str
().
c_str
());
for
(
int
i
=
0
;
i
<
3
;
i
++
)
{
grid
.
globalRefine
(
1
);
...
...
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