GCC Code Coverage Report


Directory: ./
File: Solver/schafSolver.hpp
Date: 2024-04-14 07:32:34
Exec Total Coverage
Lines: 0 12 0.0%
Branches: 0 0 -%

Line Branch Exec Source
1 // ______ ______ _ _ _____ ______
2 // | ____| ____| | (_)/ ____| | ____|
3 // | |__ | |__ | | _| (___ ___| |__
4 // | __| | __| | | | |\___ \ / __| __|
5 // | | | |____| |____| |____) | (__| |____
6 // |_| |______|______|_|_____/ \___|______|
7 // Finite Elements for Life Sciences and Engineering
8 //
9 // License: LGL2.1 License
10 // FELiScE default license: LICENSE in root folder
11 //
12 // Main authors: A. Collin
13 //
14
15 #ifndef _SCHAFSOLVER_HPP
16 #define _SCHAFSOLVER_HPP
17
18 // System includes
19
20 // External includes
21
22 // Project includes
23 #include "Solver/ionicSolver.hpp"
24
25 namespace felisce {
26 class SchafSolver:
27 public IonicSolver {
28 public:
29 ///Constructor.
30 SchafSolver(FelisceTransient::Pointer fstransient);
31 ///Destructor.
32 ~SchafSolver() override;
33
34 ///Compute RHS in EDO.
35 void computeRHS() override;
36 ///Solve the EDO.
37 void solveEDO() override;
38 ///Computation of ionic current from EDO solution.
39 void computeIon() override;
40
41
42 /// Access functions.
43 virtual inline const HeteroTauClose& fctTauClose() const {
44 return m_heteroTauClose;
45 }
46 virtual inline HeteroTauClose& fctTauClose() {
47 return m_heteroTauClose;
48 }
49
50 inline const std::vector<double>& tauClose() const {
51 return m_tauClose;
52 }
53 inline std::vector<double>& tauClose() {
54 return m_tauClose;
55 }
56
57 virtual inline const HeteroTauOut& fctTauOut() const {
58 return m_heteroTauOut;
59 }
60 virtual inline HeteroTauOut& fctTauOut() {
61 return m_heteroTauOut;
62 }
63
64 inline const std::vector<double>& tauOut() const {
65 return m_tauOut;
66 }
67 inline std::vector<double>& tauOut() {
68 return m_tauOut;
69 }
70
71 inline const HeteroTauIn& fctTauIn() const {
72 return m_heteroTauIn;
73 }
74 inline HeteroTauIn& fctTauIn() {
75 return m_heteroTauIn;
76 }
77
78 inline const std::vector<double>& tauIn() const {
79 return m_tauIn;
80 }
81 inline std::vector<double>& tauIn() {
82 return m_tauIn;
83 }
84 protected:
85 HeteroTauClose m_heteroTauClose;
86 std::vector<double> m_tauClose;
87 ///To simulate infarction.
88 HeteroTauOut m_heteroTauOut;
89 std::vector<double> m_tauOut;
90 HeteroTauIn m_heteroTauIn;
91 std::vector<double> m_tauIn;
92 };
93 }
94
95 #endif
96