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
b82dbd6b
There was an error fetching the commit references. Please try again later.
Commit
b82dbd6b
authored
6 years ago
by
Tomáš Oberhuber
Browse files
Options
Downloads
Patches
Plain Diff
Refactoring of MeshFunction.
parent
b111db97
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/Functions/MeshFunction.h
+11
-11
11 additions, 11 deletions
src/TNL/Functions/MeshFunction.h
with
11 additions
and
11 deletions
src/TNL/Functions/MeshFunction.h
+
11
−
11
View file @
b82dbd6b
...
...
@@ -8,6 +8,8 @@
/* See Copyright Notice in tnl/Copyright */
#pragma once
#include
<TNL/Object.h>
#include
<TNL/Functions/Domain.h>
#include
<TNL/Functions/MeshFunctionGnuplotWriter.h>
...
...
@@ -16,8 +18,6 @@
#include
<TNL/Meshes/DistributedMeshes/DistributedMesh.h>
#include
<TNL/Meshes/DistributedMeshes/DistributedMeshSynchronizer.h>
#pragma once
namespace
TNL
{
namespace
Functions
{
...
...
@@ -32,15 +32,15 @@ class MeshFunction :
// "Both mesh and vector of a mesh function must reside on the same device.");
public:
typedef
Mesh
MeshType
;
typedef
typename
MeshType
::
DeviceType
DeviceType
;
typedef
typename
MeshType
::
GlobalIndexType
IndexType
;
typedef
SharedPointer
<
MeshType
>
MeshPointer
;
typedef
Real
RealType
;
typedef
Containers
::
Vector
<
RealType
,
DeviceType
,
IndexType
>
VectorType
;
typedef
Functions
::
MeshFunction
<
MeshType
,
MeshEntityDimension
,
RealType
>
ThisType
;
typedef
Meshes
::
DistributedMeshes
::
DistributedMesh
<
MeshType
>
DistributedMeshType
;
typedef
Meshes
::
DistributedMeshes
::
DistributedMeshSynchronizer
<
ThisType
>
DistributedMeshSynchronizerType
;
using
MeshType
=
Mesh
;
using
DeviceType
=
typename
MeshType
::
DeviceType
;
using
IndexType
=
typename
MeshType
::
GlobalIndexType
;
using
MeshPointer
=
SharedPointer
<
MeshType
>
;
using
RealType
=
Real
;
using
VectorType
=
Containers
::
Vector
<
RealType
,
DeviceType
,
IndexType
>
;
using
ThisType
=
Functions
::
MeshFunction
<
MeshType
,
MeshEntityDimension
,
RealType
>
;
using
DistributedMeshType
=
Meshes
::
DistributedMeshes
::
DistributedMesh
<
MeshType
>
;
using
DistributedMeshSynchronizerType
=
Meshes
::
DistributedMeshes
::
DistributedMeshSynchronizer
<
ThisType
>
;
static
constexpr
int
getEntitiesDimension
()
{
return
MeshEntityDimension
;
}
...
...
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