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
ef936e75
Commit
ef936e75
authored
20 years ago
by
Oliver Sander
Browse files
Options
Downloads
Patches
Plain Diff
compiles (but doesn't link) the grid-test for 3d
[[Imported from SVN: r1091]]
parent
be06e83a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
grid/uggrid/ugfunctions.hh
+40
-0
40 additions, 0 deletions
grid/uggrid/ugfunctions.hh
grid/uggrid/uggridelement.hh
+11
-5
11 additions, 5 deletions
grid/uggrid/uggridelement.hh
with
51 additions
and
5 deletions
grid/uggrid/ugfunctions.hh
+
40
−
0
View file @
ef936e75
...
...
@@ -188,6 +188,7 @@ namespace Dune {
// }
};
#ifdef _2
template
<
>
class
UGGridSubEntityFactory
<
0
,
2
>
{
public:
...
...
@@ -205,12 +206,51 @@ namespace Dune {
};
template
<
>
/** \todo Method not implemented! */
class
UGGridSubEntityFactory
<
1
,
2
>
{
public:
static
TargetType
<
1
,
2
>::
T
*
get
(
TargetType
<
0
,
2
>::
T
*
c
,
int
i
){
DUNE_THROW
(
GridError
,
"UGGridSubEntityFactory<1,2>::get() not implemented!"
);
}
};
#endif
#ifdef _3
// Specializations for dimworld==3
template
<
>
class
UGGridSubEntityFactory
<
0
,
3
>
{
public:
static
TargetType
<
0
,
3
>::
T
*
get
(
TargetType
<
0
,
3
>::
T
*
c
,
int
i
){
return
c
;
}
};
template
<
>
class
UGGridSubEntityFactory
<
3
,
3
>
{
public:
static
TargetType
<
3
,
3
>::
T
*
get
(
TargetType
<
0
,
3
>::
T
*
c
,
int
i
){
return
UG_NS
<
3
>::
Corner
(
c
,
i
);
}
};
template
<
>
/** \todo Method not implemented! */
class
UGGridSubEntityFactory
<
1
,
3
>
{
public:
static
TargetType
<
1
,
3
>::
T
*
get
(
TargetType
<
0
,
3
>::
T
*
c
,
int
i
){
DUNE_THROW
(
GridError
,
"UGGridSubEntityFactory<1,3>::get() not implemented!"
);
}
};
template
<
>
/** \todo Method not implemented! */
class
UGGridSubEntityFactory
<
2
,
3
>
{
public:
static
TargetType
<
2
,
3
>::
T
*
get
(
TargetType
<
0
,
3
>::
T
*
c
,
int
i
){
DUNE_THROW
(
GridError
,
"UGGridSubEntityFactory<2,3>::get() not implemented!"
);
}
};
#endif
}
// namespace Dune
...
...
This diff is collapsed.
Click to expand it.
grid/uggrid/uggridelement.hh
+
11
−
5
View file @
ef936e75
...
...
@@ -29,12 +29,14 @@ namespace Dune {
class
UGGridElement
:
public
ElementDefault
<
dim
,
dimworld
,
UGCtype
,
UGGridElement
>
{
template
<
int
codim_
,
int
dim_
,
int
dimworld_
>
friend
class
UGGridEntity
;
friend
class
UGGridEntity
<
0
,
dim
,
dimworld
>
;
friend
class
UGGridEntity
<
2
,
dim
,
dimworld
>
;
friend
class
UGGridEntity
<
2
,
2
,
dimworld
>
;
friend
class
UGGridEntity
<
3
,
dim
,
dimworld
>
;
friend
class
UGGridEntity
<
3
,
3
,
dimworld
>
;
//
friend class UGGridEntity<0,dim,dimworld>;
//
friend class UGGridEntity<2,dim,dimworld>;
//
friend class UGGridEntity<2,2,dimworld>;
//
friend class UGGridEntity<3,dim,dimworld>;
//
friend class UGGridEntity<3,3,dimworld>;
public:
...
...
@@ -136,6 +138,10 @@ namespace Dune {
class
UGGridElement
<
2
,
3
>
:
public
ElementDefault
<
2
,
3
,
UGCtype
,
UGGridElement
>
{
template
<
int
codim_
,
int
dim_
,
int
dimworld_
>
friend
class
UGGridEntity
;
public:
//! for makeRefElement == true a Element with the coordinates of the
...
...
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