Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VTK
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package 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
Show more breadcrumbs
Mickael PHILIT
VTK
Commits
31b6014c
Commit
31b6014c
authored
2 weeks ago
by
Mickael PHILIT
Browse files
Options
Downloads
Patches
Plain Diff
Correct test
parent
8f3623ac
Loading
Loading
Loading
Pipeline
#441438
waiting for manual action
Stage: quick
Stage: build
Stage: test
Stage: test-ext
Stage: package
Stage: external
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
IO/CGNS/Testing/Cxx/TestCGNSReaderHOElements.cxx
+4
-28
4 additions, 28 deletions
IO/CGNS/Testing/Cxx/TestCGNSReaderHOElements.cxx
with
4 additions
and
28 deletions
IO/CGNS/Testing/Cxx/TestCGNSReaderHOElements.cxx
+
4
−
28
View file @
31b6014c
...
...
@@ -33,34 +33,20 @@ int TestCGNSReaderHOElements(int argc, char* argv[])
return
EXIT_FAILURE
;
}
if
(
dataset
->
GetNumberOfBlocks
()
!=
2
)
if
(
dataset
->
GetNumberOfBlocks
()
!=
1
)
{
std
::
cerr
<<
"Dataset should have
2
blocks but got "
<<
dataset
->
GetNumberOfBlocks
()
<<
"."
std
::
cerr
<<
"Dataset should have
1
blocks but got "
<<
dataset
->
GetNumberOfBlocks
()
<<
"."
<<
std
::
endl
;
return
EXIT_FAILURE
;
}
// Check main 3D mesh
vtk
MultiBlockDataSet
*
zone1
=
vtkMultiBlockDataSet
::
SafeDownCast
(
vtk
UnstructuredGrid
*
internal_hexa_125
=
vtkUnstructuredGrid
::
SafeDownCast
(
vtkMultiBlockDataSet
::
SafeDownCast
(
dataset
->
GetBlock
(
0
))
->
GetBlock
(
0
));
vtk
MultiBlockDataSet
*
zone2
=
vtkMultiBlockDataSet
::
SafeDownCast
(
vtk
UnstructuredGrid
*
internal_hexa_64
=
vtkUnstructuredGrid
::
SafeDownCast
(
vtkMultiBlockDataSet
::
SafeDownCast
(
dataset
->
GetBlock
(
0
))
->
GetBlock
(
1
));
if
(
!
zone1
)
{
std
::
cerr
<<
"Could not find zone block under base block."
<<
std
::
endl
;
return
EXIT_FAILURE
;
}
if
(
!
zone2
)
{
std
::
cerr
<<
"Could not find zone block under base block."
<<
std
::
endl
;
return
EXIT_FAILURE
;
}
vtkUnstructuredGrid
*
internal_hexa_125
=
vtkUnstructuredGrid
::
SafeDownCast
(
zone1
->
GetBlock
(
0
));
// Count number of cells and check cell types
if
(
internal_hexa_125
->
GetNumberOfCells
()
!=
1
)
{
...
...
@@ -78,16 +64,6 @@ int TestCGNSReaderHOElements(int argc, char* argv[])
return
EXIT_FAILURE
;
}
vtkUnstructuredGrid
*
internal_hexa_64
=
vtkUnstructuredGrid
::
SafeDownCast
(
zone2
->
GetBlock
(
0
));
// Count number of cells and check cell types
if
(
internal_hexa_64
->
GetNumberOfCells
()
!=
1
)
{
std
::
cerr
<<
"Wrong number of cells in main mesh. Expected 1 but got "
<<
internal_hexa_125
->
GetNumberOfCells
()
<<
"."
<<
std
::
endl
;
return
EXIT_FAILURE
;
}
if
(
internal_hexa_64
->
GetCellType
(
0
)
!=
VTK_LAGRANGE_HEXAHEDRON
)
{
std
::
cerr
...
...
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