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
168f017f
There was an error fetching the commit references. Please try again later.
Commit
168f017f
authored
6 years ago
by
Nina Džugasová
Committed by
Tomáš Oberhuber
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Started documentation of Grid1D.
parent
1112b76b
No related branches found
No related tags found
1 merge request
!19
Nina
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/TNL/Meshes/GridDetails/Grid1D.h
+57
-3
57 additions, 3 deletions
src/TNL/Meshes/GridDetails/Grid1D.h
with
57 additions
and
3 deletions
src/TNL/Meshes/GridDetails/Grid1D.h
+
57
−
3
View file @
168f017f
...
...
@@ -63,44 +63,95 @@ class Grid< 1, Real, Device, Index > : public Object
virtual
String
getSerializationTypeVirtual
()
const
;
/**
* \brief Sets the number of dimensions.
* \param xSize Number of dimensions.
*/
void
setDimensions
(
const
Index
xSize
);
/**
* \brief Sets the number of dimensions.
* \param xSize Number of dimensions.
*/
void
setDimensions
(
const
CoordinatesType
&
dimensions
);
/**
* \brief Returns number of dimensions of entities in this grid.
*/
__cuda_callable__
const
CoordinatesType
&
getDimensions
()
const
;
/**
* \brief Sets the origin.
* \param origin Starting point of this grid.
*/
void
setOrigin
(
const
PointType
&
origin
);
/**
* \brief Sets the origin and proportions of this grid.
* \param origin Point where this grid starts.
* \param proportions Total length of this grid.
*/
void
setDomain
(
const
PointType
&
origin
,
const
PointType
&
proportions
);
/**
* \brief Gets the origin.
* \param origin Starting point of this grid.
*/
__cuda_callable__
inline
const
PointType
&
getOrigin
()
const
;
/**
* \brief Gets length of one entity of this grid.
*/
__cuda_callable__
inline
const
PointType
&
getProportions
()
const
;
/**
* \brief Gets number of entities in this grid.
* \tparam EntityDimension Integer specifying dimension of the entity.
*/
template
<
int
EntityDimension
>
__cuda_callable__
IndexType
getEntitiesCount
()
const
;
/**
* \brief Gets number of entities in this grid.
* \tparam Entity Type of the entity.
*/
template
<
typename
Entity
>
__cuda_callable__
IndexType
getEntitiesCount
()
const
;
/**
* \brief Gets entity type using entity index.
* \param entityIndex Index of entity.
* \tparam Entity Type of the entity.
*/
template
<
typename
Entity
>
__cuda_callable__
inline
Entity
getEntity
(
const
IndexType
&
entityIndex
)
const
;
/**
* \brief Gets entity index using entity type.
* \param entity Type of entity.
* \tparam Entity Type of the entity.
*/
template
<
typename
Entity
>
__cuda_callable__
inline
Index
getEntityIndex
(
const
Entity
&
entity
)
const
;
/**
* \brief Gets length of one step.
*/
__cuda_callable__
inline
const
PointType
&
getSpaceSteps
()
const
;
/**
* \brief Sets the lenght of steps.
* \param steps Length of one step.
*/
inline
void
setSpaceSteps
(
const
PointType
&
steps
);
template
<
int
xPow
>
...
...
@@ -110,6 +161,9 @@ class Grid< 1, Real, Device, Index > : public Object
__cuda_callable__
inline
const
RealType
&
getCellMeasure
()
const
;
/**
* \brief Gets the smallest length of step out of all coordinates.
*/
__cuda_callable__
inline
RealType
getSmallestSpaceStep
()
const
;
...
...
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