mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: update MinMax to accept multiple values for add()
- now also provide its own member data (previously inherited from Tuple2) to provide better isolation from future changes
This commit is contained in:
@ -58,9 +58,7 @@ void Foam::binModels::uniformBin::initialise()
|
||||
);
|
||||
|
||||
MinMax<vector> limits(pts);
|
||||
|
||||
geomLimits.add(limits.min());
|
||||
geomLimits.add(limits.max());
|
||||
geomLimits.add(limits.min(), limits.max());
|
||||
}
|
||||
|
||||
for (const label zonei : cellZoneIDs_)
|
||||
@ -72,9 +70,7 @@ void Foam::binModels::uniformBin::initialise()
|
||||
);
|
||||
|
||||
MinMax<vector> limits(pts);
|
||||
|
||||
geomLimits.add(limits.min());
|
||||
geomLimits.add(limits.max());
|
||||
geomLimits.add(limits.min(), limits.max());
|
||||
}
|
||||
|
||||
// Globally consistent
|
||||
|
||||
Reference in New Issue
Block a user