Commit fc3b9513 authored by fabianw's avatar fabianw

consistent function signatures and add missing mpi.h header

parent f32c310a
......@@ -203,7 +203,7 @@ void DumpHDF5(const TGrid &grid,
template<typename TStreamer, typename hdf5Real, typename TGrid>
void ReadHDF5(TGrid &grid, const std::string fname, const std::string dpath=".")
void ReadHDF5(TGrid &grid, const std::string& fname, const std::string& dpath=".")
{
#ifdef CUBISM_USE_HDF
typedef typename TGrid::BlockType B;
......
......@@ -238,7 +238,7 @@ void DumpHDF5_MPI(const TGrid &grid,
}
template<typename TStreamer, typename hdf5Real, typename TGrid>
void ReadHDF5_MPI(TGrid &grid, const std::string fname, const std::string dpath=".")
void ReadHDF5_MPI(TGrid &grid, const std::string& fname, const std::string& dpath=".")
{
#ifdef CUBISM_USE_HDF
typedef typename TGrid::BlockType B;
......
......@@ -13,6 +13,7 @@
#include <iostream>
#include <string>
#include <sstream>
#include <mpi.h>
#include "Common.h"
......@@ -27,7 +28,7 @@ typedef struct _header
#define DBG 0
template <typename TReal>
void PlainDumpBin_MPI(MPI_Comm comm, TReal *buffer, long bytes, const std::string f_name, const std::string dump_path=".")
void PlainDumpBin_MPI(MPI_Comm comm, TReal *buffer, long bytes, const std::string& f_name, const std::string& dump_path=".")
{
int rank, nranks;
MPI_Status status;
......@@ -76,7 +77,7 @@ void PlainDumpBin_MPI(MPI_Comm comm, TReal *buffer, long bytes, const std::strin
template <typename TReal>
void PlainReadBin_MPI(MPI_Comm comm, TReal **buffer, long *bytes, const std::string f_name, const std::string read_path=".")
void PlainReadBin_MPI(MPI_Comm comm, TReal **buffer, long *bytes, const std::string& f_name, const std::string& read_path=".")
{
int rank, nranks;
MPI_Status status;
......
......@@ -132,7 +132,7 @@ void DumpZBin(const TGrid &grid,
template <typename TStreamer, typename TGrid>
void ReadZBin(TGrid &grid, const std::string f_name, const std::string read_path=".")
void ReadZBin(TGrid &grid, const std::string& f_name, const std::string& read_path=".")
{
typedef typename TGrid::BlockType B;
typedef typename TGrid::Real Real;
......
......@@ -174,7 +174,7 @@ void DumpZBin_MPI(
}
template<typename TStreamer, typename TGrid>
void ReadZBin_MPI(TGrid &grid, const std::string f_name, const std::string read_path=".")
void ReadZBin_MPI(TGrid &grid, const std::string& f_name, const std::string& read_path=".")
{
typedef typename TGrid::BlockType B;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment