Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tnl-dev
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor 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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
TNL
tnl-dev
Commits
7bbffa66
There was an error fetching the commit references. Please try again later.
Commit
7bbffa66
authored
8 years ago
by
Jakub Klinkovský
Browse files
Options
Downloads
Patches
Plain Diff
Capitalized 'Superdimensions' parameter like 'Subdimensions' for consistency
parent
bedc9346
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/TNL/Meshes/MeshDetails/layers/MeshSuperentityAccess.h
+24
-24
24 additions, 24 deletions
src/TNL/Meshes/MeshDetails/layers/MeshSuperentityAccess.h
with
24 additions
and
24 deletions
src/TNL/Meshes/MeshDetails/layers/MeshSuperentityAccess.h
+
24
−
24
View file @
7bbffa66
...
@@ -43,8 +43,8 @@ class MeshSuperentityAccess
...
@@ -43,8 +43,8 @@ class MeshSuperentityAccess
static
const
int
Dimensions
=
MeshTraits
<
MeshConfig
>::
meshDimensions
;
static
const
int
Dimensions
=
MeshTraits
<
MeshConfig
>::
meshDimensions
;
typedef
MeshTraits
<
MeshConfig
>
MeshTraitsType
;
typedef
MeshTraits
<
MeshConfig
>
MeshTraitsType
;
template
<
int
Super
D
imensions
>
template
<
int
Super
d
imensions
>
using
SuperentityTraits
=
typename
MeshTraitsType
::
template
SuperentityTraits
<
EntityTopology
,
Super
D
imensions
>;
using
SuperentityTraits
=
typename
MeshTraitsType
::
template
SuperentityTraits
<
EntityTopology
,
Super
d
imensions
>;
public:
public:
bool
operator
==
(
const
MeshSuperentityAccess
<
MeshConfig
,
EntityTopology
>&
a
)
const
{
return
true
;
}
// TODO: fix
bool
operator
==
(
const
MeshSuperentityAccess
<
MeshConfig
,
EntityTopology
>&
a
)
const
{
return
true
;
}
// TODO: fix
...
@@ -54,47 +54,47 @@ public:
...
@@ -54,47 +54,47 @@ public:
BaseType
::
print
(
str
);
BaseType
::
print
(
str
);
}
}
template
<
int
Super
D
imensions
>
template
<
int
Super
d
imensions
>
void
bindSuperentitiesStorageNetwork
(
const
typename
SuperentityTraits
<
Super
D
imensions
>::
SuperentityAccessorType
&
storage
)
void
bindSuperentitiesStorageNetwork
(
const
typename
SuperentityTraits
<
Super
d
imensions
>::
SuperentityAccessorType
&
storage
)
{
{
static_assert
(
SuperentityTraits
<
Super
D
imensions
>::
storageEnabled
,
"You try to bind superentities which are not configured for storage."
);
static_assert
(
SuperentityTraits
<
Super
d
imensions
>::
storageEnabled
,
"You try to bind superentities which are not configured for storage."
);
BaseType
::
bindSuperentitiesStorageNetwork
(
MeshDimensionsTag
<
Super
D
imensions
>
(),
BaseType
::
bindSuperentitiesStorageNetwork
(
MeshDimensionsTag
<
Super
d
imensions
>
(),
storage
);
storage
);
}
}
template
<
int
Super
D
imensions
>
template
<
int
Super
d
imensions
>
bool
setNumberOfSuperentities
(
const
typename
SuperentityTraits
<
Super
D
imensions
>::
LocalIndexType
size
)
bool
setNumberOfSuperentities
(
const
typename
SuperentityTraits
<
Super
d
imensions
>::
LocalIndexType
size
)
{
{
static_assert
(
SuperentityTraits
<
Super
D
imensions
>::
storageEnabled
,
"You try to set number of superentities which are not configured for storage."
);
static_assert
(
SuperentityTraits
<
Super
d
imensions
>::
storageEnabled
,
"You try to set number of superentities which are not configured for storage."
);
return
BaseType
::
setNumberOfSuperentities
(
MeshDimensionsTag
<
Super
D
imensions
>
(),
return
BaseType
::
setNumberOfSuperentities
(
MeshDimensionsTag
<
Super
d
imensions
>
(),
size
);
size
);
}
}
template
<
int
Super
D
imensions
>
template
<
int
Super
d
imensions
>
typename
SuperentityTraits
<
Super
D
imensions
>::
LocalIndexType
typename
SuperentityTraits
<
Super
d
imensions
>::
LocalIndexType
getNumberOfSuperentities
()
const
getNumberOfSuperentities
()
const
{
{
static_assert
(
SuperentityTraits
<
Super
D
imensions
>::
storageEnabled
,
"You try to get number of superentities which are not configured for storage."
);
static_assert
(
SuperentityTraits
<
Super
d
imensions
>::
storageEnabled
,
"You try to get number of superentities which are not configured for storage."
);
return
BaseType
::
getNumberOfSuperentities
(
MeshDimensionsTag
<
Super
D
imensions
>
()
);
return
BaseType
::
getNumberOfSuperentities
(
MeshDimensionsTag
<
Super
d
imensions
>
()
);
}
}
template
<
int
Super
D
imensions
>
template
<
int
Super
d
imensions
>
void
void
setSuperentityIndex
(
const
typename
SuperentityTraits
<
Super
D
imensions
>::
LocalIndexType
&
localIndex
,
setSuperentityIndex
(
const
typename
SuperentityTraits
<
Super
d
imensions
>::
LocalIndexType
&
localIndex
,
const
typename
SuperentityTraits
<
Super
D
imensions
>::
GlobalIndexType
&
globalIndex
)
const
typename
SuperentityTraits
<
Super
d
imensions
>::
GlobalIndexType
&
globalIndex
)
{
{
static_assert
(
SuperentityTraits
<
Super
D
imensions
>::
storageEnabled
,
"You try to set superentities which are not configured for storage."
);
static_assert
(
SuperentityTraits
<
Super
d
imensions
>::
storageEnabled
,
"You try to set superentities which are not configured for storage."
);
BaseType
::
setSuperentityIndex
(
MeshDimensionsTag
<
Super
D
imensions
>
(),
BaseType
::
setSuperentityIndex
(
MeshDimensionsTag
<
Super
d
imensions
>
(),
localIndex
,
localIndex
,
globalIndex
);
globalIndex
);
}
}
template
<
int
Super
D
imensions
>
template
<
int
Super
d
imensions
>
typename
SuperentityTraits
<
Super
D
imensions
>::
GlobalIndexType
typename
SuperentityTraits
<
Super
d
imensions
>::
GlobalIndexType
getSuperentityIndex
(
const
typename
SuperentityTraits
<
Super
D
imensions
>::
LocalIndexType
localIndex
)
const
getSuperentityIndex
(
const
typename
SuperentityTraits
<
Super
d
imensions
>::
LocalIndexType
localIndex
)
const
{
{
static_assert
(
SuperentityTraits
<
Super
D
imensions
>::
storageEnabled
,
"You try to get superentities which are not configured for storage."
);
static_assert
(
SuperentityTraits
<
Super
d
imensions
>::
storageEnabled
,
"You try to get superentities which are not configured for storage."
);
return
BaseType
::
getSuperentityIndex
(
MeshDimensionsTag
<
Super
D
imensions
>
(),
return
BaseType
::
getSuperentityIndex
(
MeshDimensionsTag
<
Super
d
imensions
>
(),
localIndex
);
localIndex
);
}
}
};
};
...
...
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