ENH: forces FO - porosity calc updated for mesh changes
This commit is contained in:
parent
0a52f10feb
commit
5e5cdc252b
1 changed files with 2 additions and 1 deletions
|
|
@ -922,7 +922,8 @@ void Foam::forces::calcForcesMoment()
|
|||
|
||||
forAllConstIter(HashTable<const porosityModel*>, models, iter)
|
||||
{
|
||||
const porosityModel& pm = *iter();
|
||||
// non-const access required if mesh is changing
|
||||
porosityModel& pm = const_cast<porosityModel&>(*iter());
|
||||
|
||||
vectorField fPTot(pm.force(U, rho, mu));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue