Serac  0.1
Serac is an implicit thermal strucural mechanics simulation code.
initialize.hpp
Go to the documentation of this file.
1 // Copyright (c) 2019-2024, Lawrence Livermore National Security, LLC and
2 // other Serac Project Developers. See the top-level LICENSE file for
3 // details.
4 //
5 // SPDX-License-Identifier: (BSD-3-Clause)
6 
12 #pragma once
13 
14 #include <string>
15 #include <utility>
16 
17 #include "mpi.h"
18 
19 namespace serac {
20 
28 std::pair<int, int> getMPIInfo(MPI_Comm comm = MPI_COMM_WORLD);
29 
38 std::pair<int, int> initialize(int argc, char* argv[], MPI_Comm comm = MPI_COMM_WORLD);
39 
40 } // namespace serac
Accelerator functionality.
Definition: serac.cpp:38
std::pair< int, int > initialize(int argc, char *argv[], MPI_Comm comm)
Initializes MPI, signal handling, and logging.
Definition: initialize.cpp:40
std::pair< int, int > getMPIInfo(MPI_Comm comm)
Returns the number of processes and rank for an MPI communicator.
Definition: initialize.cpp:26