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
Michael Buehlmann
GenericIO
Commits
285c5b73
Commit
285c5b73
authored
Jun 25, 2020
by
Adrian Pope
Browse files
fixes for rank0 file create case
parent
8a27d358
Changes
1
Hide whitespace changes
Inline
Side-by-side
GenericIO.cxx
View file @
285c5b73
...
@@ -518,6 +518,11 @@ void GenericIO::write() {
...
@@ -518,6 +518,11 @@ void GenericIO::write() {
LocalFileName
=
FileName
;
LocalFileName
=
FileName
;
}
}
#ifndef GENERICIO_NO_MPI
if
(
Rank0CreateAll
&&
NRanks
>
1
)
MPI_Barrier
(
Comm
);
#endif
RankHeader
<
IsBigEndian
>
RHLocal
;
RankHeader
<
IsBigEndian
>
RHLocal
;
int
Dims
[
3
],
Periods
[
3
],
Coords
[
3
];
int
Dims
[
3
],
Periods
[
3
],
Coords
[
3
];
...
@@ -797,7 +802,7 @@ nocomp:
...
@@ -797,7 +802,7 @@ nocomp:
setFH
(
MPI_COMM_SELF
);
setFH
(
MPI_COMM_SELF
);
FH
.
get
()
->
open
(
LocalFileName
,
false
,
Rank0CreateAll
);
FH
.
get
()
->
open
(
LocalFileName
,
false
,
Rank0CreateAll
&&
NRanks
>
1
);
FH
.
get
()
->
setSize
(
FileSize
);
FH
.
get
()
->
setSize
(
FileSize
);
FH
.
get
()
->
write
(
&
Header
[
0
],
HeaderSize
,
0
,
"header"
);
FH
.
get
()
->
write
(
&
Header
[
0
],
HeaderSize
,
0
,
"header"
);
...
...
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