[cig-commits] [commit] master: Catch parallel HDF5 incompatibility issue (bb2901c)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Wed Dec 10 11:30:04 PST 2014


Repository : https://github.com/geodynamics/vq

On branch  : master
Link       : https://github.com/geodynamics/vq/compare/d0edc6ddd56f9105f6d2488db4a9f36368529695...e0e38c5e958dd8776279be4658cd025b57079ccd

>---------------------------------------------------------------

commit bb2901cfbdd25219679636ad8f398d324f1f0500
Author: Eric Heien <emheien at ucdavis.edu>
Date:   Wed Dec 10 11:29:07 2014 -0800

    Catch parallel HDF5 incompatibility issue


>---------------------------------------------------------------

bb2901cfbdd25219679636ad8f398d324f1f0500
 src/io/GreensFileOutput.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/io/GreensFileOutput.cpp b/src/io/GreensFileOutput.cpp
index 8779555..3f9374a 100644
--- a/src/io/GreensFileOutput.cpp
+++ b/src/io/GreensFileOutput.cpp
@@ -39,6 +39,11 @@ void GreensFileOutput::initDesc(const SimFramework *_sim) const {
 void GreensFileOutput::init(SimFramework *_sim) {
 #ifdef HDF5_FOUND
     Simulation            *sim = static_cast<Simulation *>(_sim);
+#ifndef HDF5_IS_PARALLEL
+    if (sim->getWorldSize() > 1) {
+        assertThrow(false, "HDF5 output in parallel only allowed if using HDF5 parallel library.");
+    }
+#endif
     std::string             file_name = sim->getGreensOutfile();
     unsigned int            green_dim;
     BlockID                 row, col, global_row;



More information about the CIG-COMMITS mailing list