move assignment of zFraction into ExtboContainer

This commit is contained in:
Arne Morten Kvarving 2025-02-07 14:19:00 +01:00
parent 6024f10527
commit 66ad8bc10a
3 changed files with 13 additions and 4 deletions

View File

@ -58,6 +58,14 @@ assignVolumes(const unsigned globalDofIdx,
Y_volume_[globalDofIdx] = yVolume;
}
template<class Scalar>
void ExtboContainer<Scalar>::
assignZFraction(const unsigned globalDofIdx,
const Scalar zFraction)
{
Z_fraction_[globalDofIdx] = zFraction;
}
template<class Scalar>
void ExtboContainer<Scalar>::
outputRestart(data::Solution& sol)

View File

@ -44,6 +44,9 @@ public:
const Scalar xVolume,
const Scalar yVolume);
void assignZFraction(const unsigned globalDofIdx,
const Scalar zFraction);
void outputRestart(data::Solution& sol);
bool allocated() const

View File

@ -447,10 +447,8 @@ public:
this->extboC_.assignVolumes(globalDofIdx,
intQuants.xVolume().value(),
intQuants.yVolume().value());
}
if (!this->extboC_.Z_fraction_.empty()) {
this->extboC_.Z_fraction_[globalDofIdx] = intQuants.zFraction().value();
this->extboC_.assignZFraction(globalDofIdx,
intQuants.zFraction().value());
}
if (!this->extboC_.mFracCo2_.empty()) {