Commit d894273a authored by Mark Olesen's avatar Mark Olesen

COMP: downgrade a few methods to compile with 1706

parent 0c893278
...@@ -1916,8 +1916,8 @@ inline label numberOfEdgeGroups ...@@ -1916,8 +1916,8 @@ inline label numberOfEdgeGroups
for (const label edgei : containedEdges) for (const label edgei : containedEdges)
{ {
const edge& e = edges[edgei]; const edge& e = edges[edgei];
const point& sp = points[e.first()]; const point& sp = points[e.start()];
const point& ep = points[e.second()]; const point& ep = points[e.end()];
const point p = nearestPointOnTheEdgeExact(sp, ep, centre); const point p = nearestPointOnTheEdgeExact(sp, ep, centre);
if (magSqr(p - centre) < rangeSq) if (magSqr(p - centre) < rangeSq)
......
...@@ -276,7 +276,13 @@ void exchangeMap ...@@ -276,7 +276,13 @@ void exchangeMap
} }
// receive data from processors with greater ids // receive data from processors with greater ids
forAllConstReverseIters(m, riter) // forAllConstReverseIters(m, riter)
for
(
auto riter = m.rbegin();
riter != m.rend();
++riter
)
{ {
if (riter->first <= Pstream::myProcNo()) if (riter->first <= Pstream::myProcNo())
{ {
...@@ -297,7 +303,13 @@ void exchangeMap ...@@ -297,7 +303,13 @@ void exchangeMap
} }
// send data to processors with lower ids // send data to processors with lower ids
forAllConstReverseIters(m, riter) // forAllConstReverseIters(m, riter)
for
(
auto riter = m.rbegin();
riter != m.rend();
++riter
)
{ {
if (riter->first >= Pstream::myProcNo()) if (riter->first >= Pstream::myProcNo())
{ {
......
...@@ -42,7 +42,8 @@ int main(int argc, char *argv[]) ...@@ -42,7 +42,8 @@ int main(int argc, char *argv[])
# include "setRootCase.H" # include "setRootCase.H"
# include "createTime.H" # include "createTime.H"
const scalar scalingFactor(readScalar(args[1])); // const scalar scalingFactor(readScalar(args[1]));
const scalar scalingFactor(args.argRead<scalar>(1));
Info<< "Scaling mesh vertices by a factor " << scalingFactor << endl; Info<< "Scaling mesh vertices by a factor " << scalingFactor << endl;
......
...@@ -49,7 +49,8 @@ int main(int argc, char *argv[]) ...@@ -49,7 +49,8 @@ int main(int argc, char *argv[])
const fileName inFileName(args[1]); const fileName inFileName(args[1]);
const fileName outFileName(args[2]); const fileName outFileName(args[2]);
const scalar scalingFactor(readScalar(args[3])); // const scalar scalingFactor(readScalar(args[3]));
const scalar scalingFactor(args.argRead<scalar>(3));
// read the surface mesh // read the surface mesh
triSurf surface(inFileName); triSurf surface(inFileName);
......
Markdown is supported
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