Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VTK-m
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
VTK
VTK-m
Commits
866b0798
Commit
866b0798
authored
6 years ago
by
ayenpure
Browse files
Options
Downloads
Patches
Plain Diff
Resolving type warnings
parent
c062f2e2
No related branches found
No related tags found
1 merge request
!1395
Uniform Grid Cell Locator and minor Fixes
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vtkm/cont/CellLocatorUniformGrid.h
+9
-3
9 additions, 3 deletions
vtkm/cont/CellLocatorUniformGrid.h
with
9 additions
and
3 deletions
vtkm/cont/CellLocatorUniformGrid.h
+
9
−
3
View file @
866b0798
...
...
@@ -36,6 +36,9 @@ namespace cont
class
CellLocatorUniformGrid
:
public
vtkm
::
cont
::
CellLocator
{
public:
VTKM_EXEC_CONT
CellLocatorUniformGrid
()
=
default
;
VTKM_CONT
void
Build
()
override
{
...
...
@@ -51,9 +54,12 @@ public:
vtkm
::
Vec
<
vtkm
::
Id
,
3
>
celldims
=
cellSet
.
Cast
<
StructuredType
>
().
GetSchedulingRange
(
vtkm
::
TopologyElementTagCell
());
RangeTransform
[
0
]
=
static_cast
<
vtkm
::
FloatDefault
>
(
celldims
[
0
]
/
Bounds
.
X
.
Length
());
RangeTransform
[
1
]
=
static_cast
<
vtkm
::
FloatDefault
>
(
celldims
[
1
]
/
Bounds
.
Y
.
Length
());
RangeTransform
[
2
]
=
static_cast
<
vtkm
::
FloatDefault
>
(
celldims
[
2
]
/
Bounds
.
Z
.
Length
());
RangeTransform
[
0
]
=
static_cast
<
vtkm
::
FloatDefault
>
(
celldims
[
0
])
/
static_cast
<
vtkm
::
FloatDefault
>
(
Bounds
.
X
.
Length
());
RangeTransform
[
1
]
=
static_cast
<
vtkm
::
FloatDefault
>
(
celldims
[
1
])
/
static_cast
<
vtkm
::
FloatDefault
>
(
Bounds
.
Y
.
Length
());
RangeTransform
[
2
]
=
static_cast
<
vtkm
::
FloatDefault
>
(
celldims
[
2
])
/
static_cast
<
vtkm
::
FloatDefault
>
(
Bounds
.
Z
.
Length
());
// Since we are calculating the cell Id, and the number of cells is
// 1 less than the number of points in each direction, the -1 from dims
...
...
This diff is collapsed.
Click to expand it.
Abhishek Yenpure
@ayenpure
mentioned in commit
afd04091
·
6 years ago
mentioned in commit
afd04091
mentioned in commit afd0409189689da48dcb6530e98d19d45c332be6
Toggle commit list
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