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
8bc40880
Commit
8bc40880
authored
9 years ago
by
Robert Maynard
Browse files
Options
Downloads
Patches
Plain Diff
Add a test for CellSetExplicit::GetIndices
parent
fa81d1de
No related branches found
No related tags found
1 merge request
!227
Cleanup cellset explicit
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vtkm/cont/testing/UnitTestDataSetExplicit.cxx
+12
-0
12 additions, 0 deletions
vtkm/cont/testing/UnitTestDataSetExplicit.cxx
with
12 additions
and
0 deletions
vtkm/cont/testing/UnitTestDataSetExplicit.cxx
+
12
−
0
View file @
8bc40880
...
...
@@ -122,6 +122,18 @@ void TestDataSet_Explicit()
correctConnectivity
,
connectivitySize
),
"Got incorrect conectivity"
);
//verify that GetIndices works properly
vtkm
::
Id
expectedPointIds
[
4
]
=
{
2
,
1
,
3
,
4
};
vtkm
::
Vec
<
vtkm
::
Id
,
4
>
retrievedPointIds
;
cellset
.
GetIndices
(
1
,
retrievedPointIds
);
for
(
vtkm
::
IdComponent
i
=
0
;
i
<
4
;
i
++
)
{
VTKM_TEST_ASSERT
(
retrievedPointIds
[
i
]
==
expectedPointIds
[
i
],
"Incorrect point ID for quad cell"
);
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Robert Maynard
@robertmaynard
mentioned in commit
ac48e13c
·
9 years ago
mentioned in commit
ac48e13c
mentioned in commit ac48e13c3a032d7ec408fb2f96f9e48177ce579e
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