BELFEM 0.9.3
Berkeley Lab Finite Element Framework
Loading...
Searching...
No Matches
strumpacktools.hpp
Go to the documentation of this file.
1/*
2 * BELFEM -- The Berkeley Lab Finite Element Framework
3 * Copyright (c) 2026, The Regents of the University of California,
4 * through Lawrence Berkeley National Laboratory (subject to receipt of any required
5 * approvals from the U.S. Dept. of Energy). All rights reserved.
6 *
7 * Developers: Christian Messe, Gregory Giard
8 *
9 * See the top-level LICENSE file for the complete license and disclaimer.
10 */
11
12#include "typedefs.hpp"
13
15
16#ifdef BELFEM_STRUMPACK
17#ifdef BELFEM_GCC
18#pragma GCC diagnostic push
19#pragma GCC diagnostic ignored "-Wunknown-pragmas"
20#elif BELFEM_CLANG
21#pragma clang diagnostic push
22#pragma clang diagnostic ignored "-Wunknown-pragmas"
23#endif
24
25#include <StrumpackSparseSolver.hpp>
26#include <StrumpackSparseSolverMPIDist.hpp>
27
28namespace belfem
29{
30 namespace sparse
31 {
32 typedef strumpack::SPOptions< real > StrumpackOptions;
33 typedef strumpack::ReturnCode StrumpackReturnCode;
34
35 typedef DistMatrixCSR< int_t > StrumpackCSR ;
36 typedef DistMatrixAIJ< int_t > StrumpackAIJ ;
37 }
38}
39
40#ifdef BELFEM_GCC
41#pragma GCC diagnostic pop
42#elif BELFEM_CLANG
43#pragma clang diagnostic pop
44#endif
45#else
46namespace belfem
47{
48 namespace sparse
49 {
50 typedef int StrumpackOptions ;
51 typedef int StrumpackReturnCode ;
52 }
53}
54#endif
55
57
58namespace belfem
59{
60 namespace sparse
61 {
62 string
64
65 void
66 set_strumpack_options( const SolverParameters & aParams,
67 StrumpackOptions & aOpts,
68 const index_t aNumRows );
69 }
70}
Definition cl_SolverDistMatrix.hpp:324
Definition cl_SolverDistMatrix.hpp:147
Definition cl_SolverDistMatrix.cpp:21
int StrumpackOptions
Definition strumpacktools.hpp:50
int StrumpackReturnCode
Definition strumpacktools.hpp:51
string strumpack_message(StrumpackReturnCode aCode)
Definition strumpacktools.cpp:18
void set_strumpack_options(const SolverParameters &aParams, StrumpackOptions &aOpts, const index_t aNumRows)
Definition strumpacktools.cpp:37
USER GUIDES:
Definition cl_Capacitor.cpp:16
uint32_t index_t
Definition typedefs.hpp:52