Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
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
Chaofan Chen
ogs
Commits
8cd81bb5
Commit
8cd81bb5
authored
3 years ago
by
wenqing
Committed by
Dmitri Naumov
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[Test/ConstructAdditionalMeshesFromGeoObjects] use NodePartitionedMesh under USE_PETSC
parent
93cee1e3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Tests/MeshGeoToolsLib/TestConstructAdditionalMeshesFromGeoObjects.cpp
+21
-0
21 additions, 0 deletions
...oToolsLib/TestConstructAdditionalMeshesFromGeoObjects.cpp
with
21 additions
and
0 deletions
Tests/MeshGeoToolsLib/TestConstructAdditionalMeshesFromGeoObjects.cpp
+
21
−
0
View file @
8cd81bb5
...
...
@@ -17,6 +17,11 @@
#include
"MeshGeoToolsLib/ConstructMeshesFromGeometries.h"
#include
"MeshGeoToolsLib/SearchLength.h"
#include
"MeshLib/Mesh.h"
#ifdef USE_PETSC
#include
"MeshLib/NodePartitionedMesh.h"
#endif
#include
"MeshLib/MeshGenerators/MeshGenerator.h"
#include
"Tests/GeoLib/CreateTestPoints.h"
...
...
@@ -25,8 +30,16 @@ TEST(ConstructAdditionalMeshesFromGeoObjects, PointMesh)
// create 10x10x10 mesh using 1000 hexahedra
const
double
length
=
10.0
;
const
std
::
size_t
n_subdivisions
=
10
;
#ifdef USE_PETSC
std
::
unique_ptr
<
MeshLib
::
NodePartitionedMesh
>
mesh
=
std
::
make_unique
<
MeshLib
::
NodePartitionedMesh
>
(
*
MeshLib
::
MeshGenerator
::
generateRegularHexMesh
(
length
,
n_subdivisions
));
#else
std
::
unique_ptr
<
MeshLib
::
Mesh
>
mesh
(
MeshLib
::
MeshGenerator
::
generateRegularHexMesh
(
length
,
n_subdivisions
));
#endif
// create geometry: for every mesh node exactly one point
GeoLib
::
GEOObjects
geometries
;
...
...
@@ -55,8 +68,16 @@ TEST(ConstructAdditionalMeshesFromGeoObjects, PointMeshLargeSearchRadius)
// create 10x10x10 mesh using 1000 hexahedra
const
double
length
=
10.0
;
const
std
::
size_t
n_subdivisions
=
10
;
#ifdef USE_PETSC
std
::
unique_ptr
<
MeshLib
::
NodePartitionedMesh
>
mesh
=
std
::
make_unique
<
MeshLib
::
NodePartitionedMesh
>
(
*
MeshLib
::
MeshGenerator
::
generateRegularHexMesh
(
length
,
n_subdivisions
));
#else
std
::
unique_ptr
<
MeshLib
::
Mesh
>
mesh
(
MeshLib
::
MeshGenerator
::
generateRegularHexMesh
(
length
,
n_subdivisions
));
#endif
// create geometry: for every mesh node exactly one point
GeoLib
::
GEOObjects
geometries
;
...
...
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