GCC Code Coverage Report


Directory: ./
File: Model/initialCondition.hpp
Date: 2024-04-14 07:32:34
Exec Total Coverage
Lines: 1 3 33.3%
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: J-F. Gerbeau, E. Schenone
13 //
14
15 #ifndef _INITIALCONDITION_HPP
16 #define _INITIALCONDITION_HPP
17
18 // System includes
19
20 // External includes
21
22 // Project includes
23 #include "Core/felisce.hpp"
24 #include "DegreeOfFreedom/listVariable.hpp"
25 #include "InputOutput/ensight.hpp"
26
27 namespace felisce {
28 class InitialCondition {
29 /*!
30 \class Initial Condition
31 \authors J-F. Gerbeau, E. Schenone
32 \date July 2012
33 \brief Initial condition (to restart a model from an arbitrary time step)
34
35 */
36 ListVariable m_listVariable;
37 //! Case of the observation
38 EnsightCase* m_initialSolutionCase;
39 public:
40 467 InitialCondition() = default;
41 void initializeFromFile(std::string inputDirectory, std::string inputCaseFile);
42 void addVariable(const Variable& var);
43 void readVariable(int iVariable, int indexTime, double* variableValue, felInt sizeVar);
44 void print(int verbose, std::ostream& outstr) const;
45 inline const ListVariable & listVariable() const {
46 return m_listVariable;
47 }
48 inline ListVariable & listVariable() {
49 return m_listVariable;
50 }
51 };
52 }
53
54 #endif
55