Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pugs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
code
pugs
Commits
37d7f94d
Commit
37d7f94d
authored
4 years ago
by
Stéphane Del Pino
Browse files
Options
Downloads
Patches
Plain Diff
Plug PETScWrapper into unit tests
parent
6b0d0f5c
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!64
Feature/algebra coverage
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/mpi_test_main.cpp
+5
-0
5 additions, 0 deletions
tests/mpi_test_main.cpp
tests/test_main.cpp
+5
-0
5 additions, 0 deletions
tests/test_main.cpp
with
10 additions
and
0 deletions
tests/mpi_test_main.cpp
+
5
−
0
View file @
37d7f94d
...
...
@@ -3,6 +3,7 @@
#include
<Kokkos_Core.hpp>
#include
<algebra/PETScWrapper.hpp>
#include
<mesh/DiamondDualConnectivityManager.hpp>
#include
<mesh/DiamondDualMeshManager.hpp>
#include
<mesh/MeshDataManager.hpp>
...
...
@@ -21,6 +22,8 @@ main(int argc, char* argv[])
parallel
::
Messenger
::
create
(
argc
,
argv
);
Kokkos
::
initialize
({
4
,
-
1
,
-
1
,
true
});
PETScWrapper
::
initialize
(
argc
,
argv
);
const
std
::
string
output_base_name
{
"mpi_test_rank_"
};
std
::
filesystem
::
path
parallel_output
(
std
::
string
{
PUGS_BINARY_DIR
});
...
...
@@ -86,6 +89,8 @@ main(int argc, char* argv[])
}
}
PETScWrapper
::
finalize
();
Kokkos
::
finalize
();
parallel
::
Messenger
::
destroy
();
...
...
This diff is collapsed.
Click to expand it.
tests/test_main.cpp
+
5
−
0
View file @
37d7f94d
...
...
@@ -3,6 +3,7 @@
#include
<Kokkos_Core.hpp>
#include
<algebra/PETScWrapper.hpp>
#include
<mesh/DiamondDualConnectivityManager.hpp>
#include
<mesh/DiamondDualMeshManager.hpp>
#include
<mesh/MeshDataManager.hpp>
...
...
@@ -17,6 +18,8 @@ main(int argc, char* argv[])
parallel
::
Messenger
::
create
(
argc
,
argv
);
Kokkos
::
initialize
({
4
,
-
1
,
-
1
,
true
});
PETScWrapper
::
initialize
(
argc
,
argv
);
Catch
::
Session
session
;
int
result
=
session
.
applyCommandLine
(
argc
,
argv
);
...
...
@@ -46,6 +49,8 @@ main(int argc, char* argv[])
}
}
PETScWrapper
::
finalize
();
Kokkos
::
finalize
();
parallel
::
Messenger
::
destroy
();
...
...
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