Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Phillip Lino Rall
UGBlocks_V3
Commits
f1c07123
Commit
f1c07123
authored
Jun 08, 2020
by
Christoph Pflaum
Browse files
ikleine Änderung
parent
5affe25d
Changes
1
Hide whitespace changes
Inline
Side-by-side
program2D/source/extemp/interpolateFrom3D.h
View file @
f1c07123
...
...
@@ -250,16 +250,16 @@ void Variable<DTyp>::interpolateSlizeZ(const Expr2D<A>& a_, IteratorZDirection*
assert
(
numberCorners2D
==
4
);
int
Nx
=
blockgrid2D
->
Give_Nx_rectangle
(
0
);
int
Ny
=
blockgrid2D
->
Give_Ny_rectangle
(
0
);
a
.
Update
<
rectangleEl
>
(
0
);
a
.
template
Update
<
rectangleEl
>(
0
);
int
k
=
iterZ
->
get_k_intern
();
int
id
=
iterZ
->
get_nummerBlock
();
Update
<
hexahedronEl
>
(
id
);
a
.
Update
<
rectangleEl
>
(
0
);
a
.
template
Update
<
rectangleEl
>(
0
);
for
(
int
j
=
0
;
j
<=
Ny
;
++
j
)
for
(
int
i
=
0
;
i
<=
Nx
;
++
i
)
{
data_hexahedra
[
id
][(
i
)
+
(
Nx
+
1
)
*
((
j
)
+
(
Ny
+
1
)
*
(
k
))]
=
a
.
Give_data
<
rectangleEl
>
(
0
,
i
,
j
,
Nx
);
data_hexahedra
[
id
][(
i
)
+
(
Nx
+
1
)
*
((
j
)
+
(
Ny
+
1
)
*
(
k
))]
=
a
.
template
Give_data
<
rectangleEl
>(
0
,
i
,
j
,
Nx
);
}
Update_back
(
id
);
}
...
...
@@ -276,10 +276,10 @@ void Variable<DTyp>::interpolateSlizeZ(const Expr2D<A>& a_, IteratorZDirection*
int
id
=
id_rec
*
num_blocks
+
id_block
;
Update
<
hexahedronEl
>
(
id
);
a
.
Update
<
rectangleEl
>
(
id_rec
);
a
.
template
Update
<
rectangleEl
>(
id_rec
);
for
(
int
j
=
0
;
j
<=
Ny
;
++
j
)
for
(
int
i
=
0
;
i
<=
Nx
;
++
i
)
{
data_hexahedra
[
id
][(
i
)
+
(
Nx
+
1
)
*
((
j
)
+
(
Ny
+
1
)
*
(
k
))]
=
a
.
Give_data
<
rectangleEl
>
(
id_rec
,
i
,
j
,
Nx
);
data_hexahedra
[
id
][(
i
)
+
(
Nx
+
1
)
*
((
j
)
+
(
Ny
+
1
)
*
(
k
))]
=
a
.
template
Give_data
<
rectangleEl
>(
id_rec
,
i
,
j
,
Nx
);
}
Update_back
(
id
);
}
...
...
@@ -300,10 +300,10 @@ void Variable<DTyp>::interpolateSlizeZ(const Expr2D<A>& a_, IteratorZDirection*
int
id
=
id_rec
*
num_blocks
+
id_block
;
Update
<
hexahedronEl
>
(
id
);
a
.
Update
<
rectangleEl
>
(
id_rec
);
a
.
template
Update
<
rectangleEl
>(
id_rec
);
for
(
int
j
=
0
;
j
<=
Ny
;
++
j
)
for
(
int
i
=
0
;
i
<=
Nx
;
++
i
)
{
data_hexahedra
[
id
][(
i
)
+
(
Nx
+
1
)
*
((
j
)
+
(
Ny
+
1
)
*
(
k
))]
=
a
.
Give_data
<
rectangleEl
>
(
id_rec
,
i
,
j
,
Nx
);
data_hexahedra
[
id
][(
i
)
+
(
Nx
+
1
)
*
((
j
)
+
(
Ny
+
1
)
*
(
k
))]
=
a
.
template
Give_data
<
rectangleEl
>(
id_rec
,
i
,
j
,
Nx
);
}
Update_back
(
id
);
}
...
...
@@ -324,10 +324,10 @@ void Variable<DTyp>::interpolateSlizeZ(const Expr2D<A>& a_, IteratorZDirection*
int
id
=
id_rec
*
num_blocks
+
id_block
;
Update
<
hexahedronEl
>
(
id
);
a
.
Update
<
rectangleEl
>
(
id_rec
);
a
.
template
Update
<
rectangleEl
>(
id_rec
);
for
(
int
j
=
0
;
j
<=
Ny
;
++
j
)
for
(
int
i
=
0
;
i
<=
Nx
;
++
i
)
{
data_hexahedra
[
id
][(
i
)
+
(
Nx
+
1
)
*
((
j
)
+
(
Ny
+
1
)
*
(
k
))]
=
a
.
Give_data
<
rectangleEl
>
(
id_rec
,
i
,
j
,
Nx
);
data_hexahedra
[
id
][(
i
)
+
(
Nx
+
1
)
*
((
j
)
+
(
Ny
+
1
)
*
(
k
))]
=
a
.
template
Give_data
<
rectangleEl
>(
id_rec
,
i
,
j
,
Nx
);
}
Update_back
(
id
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment