HDF5Restart: avoid unused lambda captures
these are only used with MPI
This commit is contained in:
parent
53fc5be069
commit
d1356a07cf
|
@ -69,8 +69,13 @@ bool HDF5Restart::writeData (const SerializeData& data)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Lambda function for writing data to the HDF5 file.
|
// Lambda function for writing data to the HDF5 file.
|
||||||
auto&& writeGroup = [this,pid,ptot] (hid_t group, const std::string& name,
|
#ifdef HAVE_MPI
|
||||||
int len, const void* data, hid_t type)
|
auto&& writeGroup = [this,pid,ptot]
|
||||||
|
#else
|
||||||
|
auto&& writeGroup = []
|
||||||
|
#endif
|
||||||
|
(hid_t group, const std::string& name,
|
||||||
|
int len, const void* data, hid_t type)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_MPI
|
#ifdef HAVE_MPI
|
||||||
int lens[ptot], lens2[ptot];
|
int lens[ptot], lens2[ptot];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user