diff options
author | Erik Schnetter <schnetter@cct.lsu.edu> | 2008-02-19 05:18:00 +0000 |
---|---|---|
committer | Erik Schnetter <schnetter@cct.lsu.edu> | 2008-02-19 05:18:00 +0000 |
commit | a281dc777c0fff68ff658fbfdb6d58f8957a779f (patch) | |
tree | cb95754c565b254d2150bd89ec2c42ee7fc71804 /Carpet/CarpetIOASCII/src | |
parent | 3c473ca1cfa2047147533e53b1b2083ea9ba407d (diff) |
CarpetIOASCII: Keep I/O statistis as CCTK_REALs
darcs-hash:20080219051805-dae7b-6775330077bee262f71c6598d605f6dffc33b1d6.gz
Diffstat (limited to 'Carpet/CarpetIOASCII/src')
-rw-r--r-- | Carpet/CarpetIOASCII/src/ioascii.cc | 12 |
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; |