Skip to content
Snippets Groups Projects
Commit ee7bb045 authored by Mark OLESEN's avatar Mark OLESEN Committed by Andrew Heather
Browse files

ENH: dimensionSet::clear() - reset exponents to be dimensionless

parent 96d26071
Branches
Tags
No related merge requests found
...@@ -137,6 +137,12 @@ Foam::FixedList<Foam::scalar,7>& Foam::dimensionSet::values() ...@@ -137,6 +137,12 @@ Foam::FixedList<Foam::scalar,7>& Foam::dimensionSet::values()
} }
void Foam::dimensionSet::clear()
{
exponents_ = Zero;
}
void Foam::dimensionSet::reset(const dimensionSet& ds) void Foam::dimensionSet::reset(const dimensionSet& ds)
{ {
exponents_ = ds.exponents_; exponents_ = ds.exponents_;
......
...@@ -217,6 +217,9 @@ public: ...@@ -217,6 +217,9 @@ public:
//- Return non-const access to the exponents as a list //- Return non-const access to the exponents as a list
FixedList<scalar,7>& values(); FixedList<scalar,7>& values();
//- Reset exponents to be dimensionless
void clear();
//- Copy assign the exponents from the dimensionSet //- Copy assign the exponents from the dimensionSet
void reset(const dimensionSet& ds); void reset(const dimensionSet& ds);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment