Skip to content
GitLab
Explore
Sign in
Register
This is an archived project. Repository and other project resources are read-only.
Commits on Source (1)
COMP: update mesh generation for 1803 development API
· e34985f2
Mark OLESEN
authored
Mar 07, 2018
- using movable references instead of Xfer.
e34985f2
Hide whitespace changes
Inline
Side-by-side
applications/utilities/slopeMesh/slopeMesh.C
View file @
e34985f2
...
...
@@ -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
++
)
{
p
olyPatch
*
patch
=
new
polyPatch
(
name
[
i
],
siz
e
[
i
],
s
tart
[
i
],
0
,
polyBoundaryMesh
(
IOobject
(
regionName
,
runTime
.
constant
(),
runTi
me
),
mesh
),
"test"
)
;
patches
[
i
]
=
patch
;
p
atches
[
i
]
=
new
polyPatch
(
nam
e
[
i
],
s
ize
[
i
],
start
[
i
]
,
0
,
polyBoundaryMesh
(
IOobject
(
regionNa
me
,
runTime
.
constant
(
),
runTime
),
mesh
)
,
"test"
)
;
}
mesh
.
addPatches
(
patches
);
...
...