mirror of
https://github.com/ParticulateFlow/CFDEMcoupling-PFM.git
synced 2025-12-08 06:37:44 +00:00
fix incompatible dimensions in volWeightedAverage
ref() gives access to dimensioned field reference primitiveFieldRef() gives access to primitive type field reference (both actually return a 'this'-pointer reference)
This commit is contained in:
@ -171,7 +171,7 @@ void volWeightedAverage::setForce() const
|
||||
MPI_Allreduce(&totVol, &totVol_all, 3, MPI_DOUBLE, MPI_SUM, MPI_COMM_WORLD);
|
||||
integralValue = gSum(scalarFields_[i]);
|
||||
volWeightedAverage = integralValue / (totVol_all+SMALL);
|
||||
scalarFields_[i].ref() = volWeightedAverage;
|
||||
scalarFields_[i].primitiveFieldRef() = volWeightedAverage;
|
||||
|
||||
if(verbose_)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user