Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Mpp
Mpp
Commits
216ea917
Commit
216ea917
authored
Jan 20, 2022
by
daniele.corallo
Browse files
[403-add-stdist-warnings] rmv if for stDist, fixed communication of Timesteps
parent
6a356742
Changes
2
Show whitespace changes
Inline
Side-by-side
src/lib2_mesh/distribution/Distribution.cpp
View file @
216ea917
...
...
@@ -1046,17 +1046,17 @@ void Distribution::DistributeSTMesh(Mesh &mesh) {
int
L0
=
rekDepth
;
for
(
int
i
=
0
;
i
<
rekDepth
;
++
i
)
{
if
(
L0
==
0
)
break
;
if
(
tL
<
Slice_Maximum
&&
Slice_Maximum
>
0
)
{
if
(
tL
<
Slice_Maximum
)
{
++
tL
;
--
L0
;
}
if
(
L0
==
0
)
break
;
if
(
xL
<
X_Maximum
&&
X_Maximum
>
0
)
{
if
(
xL
<
X_Maximum
)
{
++
xL
;
--
L0
;
}
if
(
L0
==
0
)
break
;
if
(
yL
<
Y_Maximum
&&
Y_Maximum
>
0
)
{
if
(
yL
<
Y_Maximum
)
{
++
yL
;
--
L0
;
}
...
...
src/lib2_mesh/mesh/CoarseGeometry.cpp
View file @
216ea917
...
...
@@ -136,7 +136,7 @@ void CoarseGeometry::CommunicateGeometry() {
ExchangeBuffer
exBuffer
;
if
(
PPM
->
Master
())
{
for
(
int
q
=
1
;
q
<
PPM
->
Size
();
++
q
)
{
exBuffer
.
Send
(
q
)
<<
timeSteps
.
size
();
exBuffer
.
Send
(
q
)
<<
int
(
timeSteps
.
size
()
)
;
for
(
double
timeStep
:
timeSteps
)
{
exBuffer
.
Send
(
q
)
<<
double
(
timeStep
);
}
...
...
@@ -147,8 +147,9 @@ void CoarseGeometry::CommunicateGeometry() {
int
m
;
exBuffer
.
Receive
(
0
)
>>
m
;
timeSteps
.
resize
(
m
);
for
(
double
&
timeStep
:
timeSteps
)
{
exBuffer
.
Receive
(
0
)
>>
timeStep
;
for
(
int
i
=
0
;
i
<
m
;
i
++
)
{
exBuffer
.
Receive
(
0
)
>>
timeSteps
[
i
];
}
}
exBuffer
.
ClearBuffers
();
...
...
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