1 #ifndef linear_algebra_h
2 #define linear_algebra_h
11 #pragma GCC diagnostic push
12 #pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
14 #pragma GCC diagnostic pop
21 #include "meshUtils.h"
48 my_msh, s.paramTetra, s.paramFacette,
"bicg_dir", s.TOL, s.
verbose, s.MAXITER,
59 {
idx_dir = s.recentering_direction; }
61 for (
int i=0;i<
NOD;i++)
63 if(!my_msh.magNode[i])
120 std::vector<double>
Xw;
132 const std::vector< Eigen::Matrix<double,Nodes::DIM,Tetra::NPI> >&
extSpaceField;
set of class to handle sparse matrix operations for gradient conjugate algorithms a sparse vector cla...
Definition: linear_algebra.h:41
LinAlgebra(Settings &s, Mesh::mesh &my_msh)
Definition: linear_algebra.h:46
double DW_vz
Definition: linear_algebra.h:126
double get_v_max(void)
Definition: linear_algebra.h:106
void setExtSpaceField(Settings &s)
Nodes::index idx_dir
Definition: linear_algebra.h:117
double v_max
Definition: linear_algebra.h:129
void prepareElements(Eigen::Vector3d const &Hext, timing const &t_prm)
Definition: linear_algebra.cpp:26
void set_DW_vz(double vz)
Definition: linear_algebra.h:103
void buildInitGuess(std::vector< double > &G) const
Definition: linear_algebra.cpp:13
std::vector< int > lvd
Definition: linear_algebra.h:135
std::vector< double > Xw
Definition: linear_algebra.h:120
void checkBoundaryConditions(void) const
Definition: linear_algebra.h:73
const std::vector< Eigen::Matrix< double, Nodes::DIM, Tetra::NPI > > & extSpaceField
Definition: linear_algebra.h:132
void base_projection()
Definition: linear_algebra.cpp:3
bool solve(timing const &t_prm)
Definition: solver.cpp:6
const int verbose
Definition: linear_algebra.h:123
std::vector< bool > magNode
Definition: mesh.h:334
Container for all the settings provided by the user, with conversions to/from YAML.
Definition: settings.h:73
template class for the different solvers template parameter DIM_PROBLEM: dimensionnality of the probl...
Definition: solver.h:25
Mesh::mesh * msh
Definition: solver.h:51
const int NOD
Definition: solver.h:54
Definition: time_integration.h:7
contains namespace Facette header containing Fac class, and some constants and a less_than operator t...
const int DIM_PB_MAG
Definition: linear_algebra.h:28
index
Definition: node.h:34
header to define struct Node
many settings to give some parameters to the solver, boundary conditions for the problem,...
two templates to fill matrix and vectors in various dimensionnality situations. DIM_PROBLEM = 1 is us...
namespace Tetra header containing Tet class, some constants, and integrales