Skip to content
Snippets Groups Projects
Commit bae01997 authored by Tom Fischer's avatar Tom Fischer
Browse files

[Material] Remove member of Permeability class.

parent f003c3c0
No related branches found
No related tags found
No related merge requests found
...@@ -37,8 +37,6 @@ public: ...@@ -37,8 +37,6 @@ public:
"tensor is defined for a %d dimensional problem.", "tensor is defined for a %d dimensional problem.",
permeability_parameter.getNumberOfComponents(), _dimension); permeability_parameter.getNumberOfComponents(), _dimension);
} }
_intrinsic_permeability_tensor =
Eigen::MatrixXd(_dimension, _dimension);
} }
~Permeability() = default; ~Permeability() = default;
...@@ -58,20 +56,14 @@ public: ...@@ -58,20 +56,14 @@ public:
(void)variable; (void)variable;
(void)temperature; (void)temperature;
_intrinsic_permeability_tensor = return Eigen::Map<Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic,
Eigen::Map<Eigen::Matrix<double, Eigen::RowMajor> const>(
Eigen::Dynamic, _permeability_parameter(t, pos).data(), _dimension, _dimension);
Eigen::Dynamic,
Eigen::RowMajor> const>(
_permeability_parameter(t, pos).data(), _dimension, _dimension);
return _intrinsic_permeability_tensor;
} }
private: private:
ParameterLib::Parameter<double> const& _permeability_parameter; ParameterLib::Parameter<double> const& _permeability_parameter;
int const _dimension; int const _dimension;
mutable Eigen::MatrixXd _intrinsic_permeability_tensor;
}; };
} // namespace PorousMedium } // namespace PorousMedium
......
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