Stokhos Package Browser (Single Doxygen Collection)
Version of the Day
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
test
UnitTest
Stokhos_UnitTestBase.cpp
Go to the documentation of this file.
1
// @HEADER
2
// *****************************************************************************
3
// Stokhos Package
4
//
5
// Copyright 2009 NTESS and the Stokhos contributors.
6
// SPDX-License-Identifier: BSD-3-Clause
7
// *****************************************************************************
8
// @HEADER
9
10
#include "
Teuchos_GlobalMPISession.hpp
"
11
#include "Kokkos_Core.hpp"
12
#include "
Teuchos_UnitTestRepository.hpp
"
13
18
int
main
(
int
argc,
char
*
argv
[] )
19
{
20
Teuchos::GlobalMPISession
mpiSession(&argc, &argv);
21
22
// Initialize Kokkos
23
Kokkos::initialize(argc,argv);
24
25
// For unit tests to reduce the result when MPI is used
26
Teuchos::UnitTestRepository::setGloballyReduceTestResult
(
true
);
27
28
// Run all registered unit tests
29
int
res =
Teuchos::UnitTestRepository::runUnitTestsFromMain
(argc, argv);
30
31
// Finalize Kokkos
32
Kokkos::finalize();
33
34
return
res;
35
}
argv
char * argv[]
Definition:
Stokhos_HouseTriDiagUnitTest.cpp:252
Teuchos::GlobalMPISession
Teuchos_UnitTestRepository.hpp
Teuchos::UnitTestRepository::runUnitTestsFromMain
static int runUnitTestsFromMain(int argc, char *argv[])
Teuchos::UnitTestRepository::setGloballyReduceTestResult
static void setGloballyReduceTestResult(const bool globallyReduceUnitTestResult)
main
int main(int argc, char **argv)
Definition:
cijk_ltb_partition.cpp:25
Teuchos_GlobalMPISession.hpp
Generated on Fri Jun 13 2025 09:20:35 for Stokhos Package Browser (Single Doxygen Collection) by
1.8.5