hyper.deal
Loading...
Searching...
No Matches
include
hyper.deal
matrix_free
id.h
1
// ---------------------------------------------------------------------
2
//
3
// Copyright (C) 2020 by the hyper.deal authors
4
//
5
// This file is part of the hyper.deal library.
6
//
7
// The hyper.deal library is free software; you can use it, redistribute
8
// it, and/or modify it under the terms of the GNU Lesser General
9
// Public License as published by the Free Software Foundation; either
10
// version 3.0 of the License, or (at your option) any later version.
11
// The full text of the license can be found in the file LICENSE.MD at
12
// the top level directory of hyper.deal.
13
//
14
// ---------------------------------------------------------------------
15
16
#ifndef HYPERDEAL_NDIM_MATRIXFREE_ID
17
#define HYPERDEAL_NDIM_MATRIXFREE_ID
18
19
#include <hyper.deal/base/config.h>
20
21
namespace
hyperdeal
22
{
26
struct
TensorID
27
{
31
enum class
SpaceType
32
{
33
XV,
34
X,
35
V
36
};
37
41
TensorID
(
const
unsigned
int
x
,
42
const
unsigned
int
v
,
43
const
unsigned
int
macro
,
44
const
SpaceType
type
= SpaceType::XV)
45
:
x
(
x
)
46
,
v
(
v
)
47
,
macro
(
macro
)
48
,
type
(
type
)
49
{}
50
54
const
unsigned
int
x
;
55
59
const
unsigned
int
v
;
60
64
const
unsigned
int
macro
;
65
69
const
SpaceType
type
;
70
};
71
72
}
// namespace hyperdeal
73
74
#endif
hyperdeal::TensorID
Definition
id.h:27
hyperdeal::TensorID::SpaceType
SpaceType
Definition
id.h:32
hyperdeal::TensorID::macro
const unsigned int macro
Definition
id.h:64
hyperdeal::TensorID::v
const unsigned int v
Definition
id.h:59
hyperdeal::TensorID::x
const unsigned int x
Definition
id.h:54
hyperdeal::TensorID::TensorID
TensorID(const unsigned int x, const unsigned int v, const unsigned int macro, const SpaceType type=SpaceType::XV)
Definition
id.h:41
hyperdeal::TensorID::type
const SpaceType type
Definition
id.h:69
Generated by
1.12.0