aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetIOASCII/src/ioascii.cc
diff options
context:
space:
mode:
Diffstat (limited to 'Carpet/CarpetIOASCII/src/ioascii.cc')
-rw-r--r--Carpet/CarpetIOASCII/src/ioascii.cc12
1 files changed, 7 insertions, 5 deletions
diff --git a/Carpet/CarpetIOASCII/src/ioascii.cc b/Carpet/CarpetIOASCII/src/ioascii.cc
index f12b8d62d..aa8e88b95 100644
--- a/Carpet/CarpetIOASCII/src/ioascii.cc
+++ b/Carpet/CarpetIOASCII/src/ioascii.cc
@@ -645,8 +645,8 @@ namespace CarpetIOASCII {
fstream file;
BeginTimingIO (cctkGH);
- long long io_files = 0;
- long long io_bytes_begin = 0, io_bytes_end = 0;
+ CCTK_REAL io_files = 0;
+ CCTK_REAL io_bytes_begin = 0, io_bytes_end = 0;
if (dist::rank()==ioproc) {
// Invent a file name
@@ -952,10 +952,12 @@ namespace CarpetIOASCII {
assert (not file.is_open());
- long long io_bytes = io_bytes_end - io_bytes_begin;
+ CCTK_REAL const io_bytes = io_bytes_end - io_bytes_begin;
+#if 0
// Broadcast I/O size and synchronise processes
- MPI_Bcast (& io_files, 1, MPI_LONG_LONG, 0, dist::comm());
- MPI_Bcast (& io_bytes, 1, MPI_LONG_LONG, 0, dist::comm());
+ MPI_Bcast (& io_files, 1, dist::datatype (io_files), 0, dist::comm());
+ MPI_Bcast (& io_bytes, 1, dist::datatype (io_bytes), 0, dist::comm());
+#endif
EndTimingIO (cctkGH, io_files, io_bytes, false);
} END_MAP_LOOP;