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
71fc4a3a
Commit
71fc4a3a
authored
20 years ago
by
Robert Klöfkorn
Browse files
Options
Downloads
Patches
Plain Diff
all from albert to alberta.
[[Imported from SVN: r1281]]
parent
2b7e5f50
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
grid/test/alberta-testgrid-2-2.al
+0
-0
0 additions, 0 deletions
grid/test/alberta-testgrid-2-2.al
grid/test/alberta-testgrid-3-3.al
+0
-0
0 additions, 0 deletions
grid/test/alberta-testgrid-3-3.al
grid/test/test-alberta.cc
+47
-0
47 additions, 0 deletions
grid/test/test-alberta.cc
with
47 additions
and
0 deletions
grid/test/albert-testgrid-2-2.al
→
grid/test/albert
a
-testgrid-2-2.al
+
0
−
0
View file @
71fc4a3a
File moved
This diff is collapsed.
Click to expand it.
grid/test/albert-testgrid-3-3.al
→
grid/test/albert
a
-testgrid-3-3.al
+
0
−
0
View file @
71fc4a3a
File moved
This diff is collapsed.
Click to expand it.
grid/test/test-alberta.cc
0 → 100644
+
47
−
0
View file @
71fc4a3a
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
#include
<config.h>
/*
Instantiate Alberta-Grid and feed it to the generic gridcheck()
Note: Albert needs the defines DIM and DIM_OF_WORLD on the
commandline anyway thus we can use them to select the correct class
*/
#include
<iostream>
#include
<sstream>
#include
<dune/grid/albertagrid.hh>
#include
"gridcheck.cc"
int
main
()
{
try
{
/* use grid-file appropriate for dimensions */
std
::
ostringstream
filename
;
filename
<<
"alberta-testgrid-"
<<
DIM
<<
"-"
<<
DIM_OF_WORLD
<<
".al"
;
std
::
cout
<<
std
::
endl
<<
"AlbertaGrid<"
<<
DIM
<<
","
<<
DIM_OF_WORLD
<<
"> 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
());
gridcheck
(
grid
);
};
}
catch
(
Dune
::
Exception
&
e
)
{
std
::
cerr
<<
e
<<
std
::
endl
;
return
1
;
}
catch
(...)
{
std
::
cerr
<<
"Generic exception!"
<<
std
::
endl
;
return
2
;
}
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