Skip to content
Snippets Groups Projects
Commit 8170fb10 authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[PL/TH2M] Default initialize scalars to NaN.

parent 2b00d20e
No related branches found
No related tags found
No related merge requests found
...@@ -47,8 +47,8 @@ struct MediaData ...@@ -47,8 +47,8 @@ struct MediaData
struct TemperatureData struct TemperatureData
{ {
double T; double T = nan;
double T_prev; double T_prev = nan;
}; };
using ReferenceTemperatureData = using ReferenceTemperatureData =
......
...@@ -19,10 +19,10 @@ namespace ConstitutiveRelations ...@@ -19,10 +19,10 @@ namespace ConstitutiveRelations
struct FluidDensityData struct FluidDensityData
{ {
// gas phase density // gas phase density
double rho_GR = 0.; double rho_GR = nan;
// liquid phase density // liquid phase density
double rho_LR = 0.; double rho_LR = nan;
static auto reflect() static auto reflect()
{ {
......
...@@ -18,10 +18,10 @@ namespace ConstitutiveRelations ...@@ -18,10 +18,10 @@ namespace ConstitutiveRelations
{ {
struct MassMoleFractionsData struct MassMoleFractionsData
{ {
double xnCG = 0.; double xnCG = nan;
double xmCG = 0.; double xmCG = nan;
double xnWL = 0.; double xnWL = nan;
double xmWL = 0.; double xmWL = nan;
static auto reflect() static auto reflect()
{ {
......
...@@ -19,8 +19,8 @@ template <int DisplacementDim> ...@@ -19,8 +19,8 @@ template <int DisplacementDim>
struct SolidThermalExpansionData struct SolidThermalExpansionData
{ {
KelvinVector<DisplacementDim> solid_linear_thermal_expansivity_vector; KelvinVector<DisplacementDim> solid_linear_thermal_expansivity_vector;
double beta_T_SR; /// Isotropic solid phase volumetric thermal expansion double beta_T_SR = nan; /// Isotropic solid phase volumetric thermal
/// coefficient. /// expansion coefficient.
double thermal_volume_strain = nan; double thermal_volume_strain = nan;
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment