Commit e34985f2 authored by Mark Olesen's avatar Mark Olesen

COMP: update mesh generation for 1803 development API

- using movable references instead of Xfer.
parent 9b506551
......@@ -285,7 +285,6 @@ int main(int argc, char *argv[])
maxZboundary=lf-cellCountX*cellCountY;
for (int i=0; i<cellCountX; i++)
{
for (int j=0; j<cellCountY; j++)
......@@ -302,7 +301,7 @@ int main(int argc, char *argv[])
word regionName = polyMesh::defaultRegion;
word regionName = polyMesh::defaultRegion;
polyMesh mesh
(
......@@ -312,9 +311,9 @@ int main(int argc, char *argv[])
runTime.constant(),
runTime
),
xferCopy(points),
xferCopy(faces),
xferCopy(cells)
std::move(points),
std::move(faces),
std::move(cells)
);
label start[6] = {minXboundary, maxXboundary,
......@@ -331,24 +330,24 @@ int main(int argc, char *argv[])
for (int i=0; i<6;i++)
{
polyPatch *patch = new polyPatch(
name[i],
size[i],
start[i],
0,
polyBoundaryMesh(
IOobject
(
regionName,
runTime.constant(),
runTime
),
mesh
),
"test"
);
patches[i] = patch;
patches[i] = new polyPatch
(
name[i],
size[i],
start[i],
0,
polyBoundaryMesh
(
IOobject
(
regionName,
runTime.constant(),
runTime
),
mesh
),
"test"
);
}
mesh.addPatches(patches);
......
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