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++)
...@@ -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,12 +330,14 @@ int main(int argc, char *argv[]) ...@@ -331,12 +330,14 @@ 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], name[i],
size[i], size[i],
start[i], start[i],
0, 0,
polyBoundaryMesh( polyBoundaryMesh
(
IOobject IOobject
( (
regionName, regionName,
...@@ -347,8 +348,6 @@ int main(int argc, char *argv[]) ...@@ -347,8 +348,6 @@ int main(int argc, char *argv[])
), ),
"test" "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