Skip to content

Commit

Permalink
add serializer in AITS
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroCornejo committed Oct 28, 2024
1 parent 6b4cc1d commit 9b19c27
Showing 1 changed file with 19 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ class KRATOS_API(CONSTITUTIVE_LAWS_APPLICATION)AdvanceInTimeHighCycleFatigueProc
///@name Enum's
///@{

protected:


public:
static constexpr double tolerance = std::numeric_limits<double>::epsilon();
Expand Down Expand Up @@ -98,10 +96,26 @@ class KRATOS_API(CONSTITUTIVE_LAWS_APPLICATION)AdvanceInTimeHighCycleFatigueProc
*/
void TimeAndCyclesUpdate(const double Increment);

protected:
private:
// Member Variables
ModelPart& mrModelPart; // The model part to compute
Parameters mThisParameters;
ModelPart& mrModelPart; // The model part to compute
Parameters mThisParameters; // The project parameters

friend class Serializer;

void save(Serializer &rSerializer) const override
{
KRATOS_SERIALIZE_SAVE_BASE_CLASS(rSerializer, Process)
rSerializer.save("ModelPart", mrModelPart);
rSerializer.save("ThisParameters", mThisParameters);
}

void load(Serializer &rSerializer) override
{
KRATOS_SERIALIZE_LOAD_BASE_CLASS(rSerializer, Process)
rSerializer.load("ModelPart", mrModelPart);
rSerializer.load("ThisParameters", mThisParameters);
}

}; // Class AdvanceInTimeHighCycleFatigueProcess

Expand Down

0 comments on commit 9b19c27

Please sign in to comment.