File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ mgis_header(MGIS/MaterialProperty OutOfBoundsPolicy.hxx)
3131mgis_header (MGIS/MaterialProperty MaterialPropertyFctPtr.hxx )
3232mgis_header (MGIS/MaterialProperty MaterialProperty.hxx )
3333mgis_header (MGIS/Behaviour Hypothesis.hxx )
34+ mgis_header (MGIS/Behaviour TimeStepStage.hxx )
3435mgis_header (MGIS/Behaviour RotationMatrix.hxx )
3536mgis_header (MGIS/Behaviour RotationMatrix.ixx )
3637mgis_header (MGIS/Behaviour Variable .hxx )
Original file line number Diff line number Diff line change 1616#include " MGIS/Function/SpaceConcept.hxx"
1717#include " MGIS/Function/SharedSpace.hxx"
1818#include " MGIS/Function/Function.hxx"
19+ #include " MGIS/Behaviour/TimeStepStage.hxx"
1920#include " MGIS/Behaviour/MaterialDataManager.hxx"
2021
2122namespace mgis ::behaviour {
@@ -95,14 +96,6 @@ namespace mgis::behaviour {
9596 std::shared_ptr<const Behaviour> behaviour_ptr;
9697 };
9798
98- enum TimeStepStage {
99- BEGINNING_OF_TIME_STEP,
100- END_OF_TIME_STEP,
101- };
102-
103- inline constexpr auto bts = TimeStepStage::BEGINNING_OF_TIME_STEP;
104- inline constexpr auto ets = TimeStepStage::END_OF_TIME_STEP;
105-
10699 // this variable is a workaround Visual Studio 2022 limitation
107100 // on defining default value for non-type template argument
108101 template <size_type N>
Original file line number Diff line number Diff line change 1+ /* !
2+ * \file MGIS/Behaviour/TimeStepStage.hxx
3+ * \brief
4+ * \author Thomas Helfer
5+ * \date 24/01/2026
6+ */
7+
8+ #ifndef LIB_MGIS_BEHAVIOUR_TIMESTEPSTAGE_HXX
9+ #define LIB_MGIS_BEHAVIOUR_TIMESTEPSTAGE_HXX
10+
11+ namespace mgis ::behaviour {
12+
13+ /* !
14+ * \brief an enumeration describing either the beginning of the time step or
15+ * the end of the time step
16+ */
17+ enum struct TimeStepStage { BEGINNING_OF_TIME_STEP, END_OF_TIME_STEP };
18+ // ! \brief variable associated with the beginning of the time step
19+ inline constexpr auto bts = TimeStepStage::BEGINNING_OF_TIME_STEP;
20+ // ! \brief variable associated with the end of the time step
21+ inline constexpr auto ets = TimeStepStage::END_OF_TIME_STEP;
22+
23+ } // end of namespace mgis::behaviour
24+
25+ #endif /* LIB_MGIS_BEHAVIOUR_TIMESTEPSTAGE_HXX */
You can’t perform that action at this time.
0 commit comments