Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
amdis
amdis-core
Commits
c5c62221
Commit
c5c62221
authored
May 03, 2019
by
Praetorius, Simon
Browse files
improved documentation and add header files to CMakeLists.txt
parent
27c9ec6b
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/amdis/common/Access.hpp
View file @
c5c62221
...
...
@@ -32,9 +32,11 @@ namespace AMDiS
}
// end namespace Definition
/// Vector component can be accessed either with [.] or (.)
template
<
class
V
,
class
I
>
using
VectorAccessible_t
=
bool_t
<
models
<
Definition
::
HasVectorAccess
(
V
,
I
,
Dune
::
PriorityTag
<
42
>
)
>>
;
/// Matrix component can be accessed either with [.][.] or (.,.)
template
<
class
M
,
class
I
,
class
J
>
using
MatrixAccessible_t
=
bool_t
<
models
<
Definition
::
HasMatrixAccess
(
M
,
I
,
J
,
Dune
::
PriorityTag
<
42
>
)
>>
;
...
...
@@ -42,7 +44,7 @@ namespace AMDiS
#ifdef DOXYGEN
/// \brief Uniform vector access using [.]
/// \brief Uniform vector access using [.]
or (.)
template
<
class
Vector
,
class
I
>
decltype
(
auto
)
access
(
Vector
&&
vec
,
I
const
&
i
);
...
...
@@ -77,6 +79,7 @@ namespace AMDiS
}
}
// access i'th component of a vector
template
<
class
Vector
,
class
I
>
decltype
(
auto
)
access
(
Vector
&&
vec
,
I
const
&
i
)
{
...
...
src/amdis/common/CMakeLists.txt
View file @
c5c62221
...
...
@@ -4,6 +4,7 @@ dune_library_add_sources(amdis SOURCES
)
install
(
FILES
Access.hpp
Algorithm.hpp
Apply.hpp
Concepts.hpp
...
...
@@ -13,6 +14,7 @@ install(FILES
FieldMatVec.inc.hpp
Filesystem.hpp
ForEach.hpp
HybridSize.hpp
Index.hpp
Literals.hpp
Logical.hpp
...
...
src/amdis/common/HybridSize.hpp
View file @
c5c62221
...
...
@@ -15,9 +15,11 @@ namespace AMDiS
{
namespace
Concepts
{
/// Vector can be accessed with dynamic indices. See \ref VectorAccessible_t
template
<
class
V
>
using
DynamicVectorAccessible_t
=
VectorAccessible_t
<
V
,
std
::
size_t
>
;
/// Matrix can be accessed with dynamic indices. See \ref MatrixAccessible_t
template
<
class
M
>
using
DynamicMatrixAccessible_t
=
MatrixAccessible_t
<
M
,
std
::
size_t
,
std
::
size_t
>
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment