From 4043ab9b590f8e1c2ee966368778ce9ddc9f58e2 Mon Sep 17 00:00:00 2001 From: guj <jgu@lbl.gov> Date: Tue, 30 May 2017 14:31:06 -0700 Subject: [PATCH] clang format --- examples/heatTransfer/write/IO_ph5.cpp | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/examples/heatTransfer/write/IO_ph5.cpp b/examples/heatTransfer/write/IO_ph5.cpp index 841501b8d..af459a317 100644 --- a/examples/heatTransfer/write/IO_ph5.cpp +++ b/examples/heatTransfer/write/IO_ph5.cpp @@ -51,7 +51,6 @@ HDF5NativeWriter::HDF5NativeWriter(const std::string &fileName) // read a file collectively H5Pset_fapl_mpio(m_FilePropertyListId, MPI_COMM_WORLD, MPI_INFO_NULL); - m_FileId = H5Fcreate(fileName.c_str(), H5F_ACC_TRUNC, H5P_DEFAULT, m_FilePropertyListId); @@ -193,10 +192,11 @@ IO::IO(const Settings &s, MPI_Comm comm) { m_outputfilename = s.outputfile + ".h5"; - if (s.outputfile[0]=='0') { - std::cout<<" no writer. "<<std::endl; - h5writer = nullptr; - return; + if (s.outputfile[0] == '0') + { + std::cout << " no writer. " << std::endl; + h5writer = nullptr; + return; } h5writer = std::make_shared<HDF5NativeWriter>(m_outputfilename); @@ -206,8 +206,9 @@ IO::IO(const Settings &s, MPI_Comm comm) IO::~IO() { - if (h5writer != nullptr) { - h5writer->Close(); + if (h5writer != nullptr) + { + h5writer->Close(); } // delete h5writer; } @@ -215,7 +216,8 @@ IO::~IO() void IO::write(int step, const HeatTransfer &ht, const Settings &s, MPI_Comm comm) { - if (h5writer == nullptr) { + if (h5writer == nullptr) + { return; } std::vector<hsize_t> dims = {s.gndx, s.gndy}; -- GitLab