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