Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
amdis-core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
amdis
amdis-core
Commits
c5c62221
Commit
c5c62221
authored
5 years ago
by
Praetorius, Simon
Browse files
Options
Downloads
Patches
Plain Diff
improved documentation and add header files to CMakeLists.txt
parent
27c9ec6b
No related branches found
Branches containing commit
No related tags found
1 merge request
!45
Provide access function for vectors and matrices
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/amdis/common/Access.hpp
+4
-1
4 additions, 1 deletion
src/amdis/common/Access.hpp
src/amdis/common/CMakeLists.txt
+2
-0
2 additions, 0 deletions
src/amdis/common/CMakeLists.txt
src/amdis/common/HybridSize.hpp
+2
-0
2 additions, 0 deletions
src/amdis/common/HybridSize.hpp
with
8 additions
and
1 deletion
src/amdis/common/Access.hpp
+
4
−
1
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
)
{
...
...
This diff is collapsed.
Click to expand it.
src/amdis/common/CMakeLists.txt
+
2
−
0
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
...
...
This diff is collapsed.
Click to expand it.
src/amdis/common/HybridSize.hpp
+
2
−
0
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
>
;
...
...
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