Block-Structured AMR Software Framework
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches
AMReX_Sundials_Core.H
Go to the documentation of this file.
1#ifndef AMREX_SUNDIALS_CORE_H_
2#define AMREX_SUNDIALS_CORE_H_
3
4#include <AMReX.H>
5#include <AMReX_OpenMP.H>
6
7#include <sundials/sundials_config.h>
8#if defined(SUNDIALS_VERSION_MAJOR) && (SUNDIALS_VERSION_MAJOR < 7)
9# include <sundials/sundials_context.h>
10#else
11# include <sundials/sundials_context.hpp>
12#endif
13
14namespace amrex::sundials {
15
24void Initialize(int nthreads);
25
31void Finalize();
32
40::sundials::Context* The_Sundials_Context(int i = amrex::OpenMP::get_thread_num());
41
42}
43
44#endif
constexpr int get_thread_num()
Definition AMReX_OpenMP.H:37
Definition AMReX_NVector_MultiFab.cpp:15
::sundials::Context * The_Sundials_Context(int i)
Get the i-th SUNDIALS context instance.
Definition AMReX_Sundials_Core.cpp:50
void Initialize(int nthreads)
Initialize the AMReX-SUNDIALS interface.
Definition AMReX_Sundials_Core.cpp:13
void Finalize()
Cleanup everything allocated for the AMReX-SUNDIALS interface.
Definition AMReX_Sundials_Core.cpp:37