Skip to content
Snippets Groups Projects
Commit b82dbd6b authored by Tomáš Oberhuber's avatar Tomáš Oberhuber
Browse files

Refactoring of MeshFunction.

parent b111db97
No related branches found
No related tags found
No related merge requests found
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
/* See Copyright Notice in tnl/Copyright */ /* See Copyright Notice in tnl/Copyright */
#pragma once
#include <TNL/Object.h> #include <TNL/Object.h>
#include <TNL/Functions/Domain.h> #include <TNL/Functions/Domain.h>
#include <TNL/Functions/MeshFunctionGnuplotWriter.h> #include <TNL/Functions/MeshFunctionGnuplotWriter.h>
...@@ -16,8 +18,6 @@ ...@@ -16,8 +18,6 @@
#include <TNL/Meshes/DistributedMeshes/DistributedMesh.h> #include <TNL/Meshes/DistributedMeshes/DistributedMesh.h>
#include <TNL/Meshes/DistributedMeshes/DistributedMeshSynchronizer.h> #include <TNL/Meshes/DistributedMeshes/DistributedMeshSynchronizer.h>
#pragma once
namespace TNL { namespace TNL {
namespace Functions { namespace Functions {
...@@ -32,15 +32,15 @@ class MeshFunction : ...@@ -32,15 +32,15 @@ class MeshFunction :
// "Both mesh and vector of a mesh function must reside on the same device."); // "Both mesh and vector of a mesh function must reside on the same device.");
public: public:
typedef Mesh MeshType; using MeshType = Mesh;
typedef typename MeshType::DeviceType DeviceType; using DeviceType = typename MeshType::DeviceType;
typedef typename MeshType::GlobalIndexType IndexType; using IndexType = typename MeshType::GlobalIndexType;
typedef SharedPointer< MeshType > MeshPointer; using MeshPointer = SharedPointer< MeshType >;
typedef Real RealType; using RealType = Real;
typedef Containers::Vector< RealType, DeviceType, IndexType > VectorType; using VectorType = Containers::Vector< RealType, DeviceType, IndexType >;
typedef Functions::MeshFunction< MeshType, MeshEntityDimension, RealType > ThisType; using ThisType = Functions::MeshFunction< MeshType, MeshEntityDimension, RealType >;
typedef Meshes::DistributedMeshes::DistributedMesh<MeshType> DistributedMeshType; using DistributedMeshType = Meshes::DistributedMeshes::DistributedMesh<MeshType>;
typedef Meshes::DistributedMeshes::DistributedMeshSynchronizer<ThisType> DistributedMeshSynchronizerType; using DistributedMeshSynchronizerType = Meshes::DistributedMeshes::DistributedMeshSynchronizer<ThisType>;
static constexpr int getEntitiesDimension() { return MeshEntityDimension; } static constexpr int getEntitiesDimension() { return MeshEntityDimension; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment