VTK  9.7.1
ADIOSTestUtilities.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
3 
4 #ifndef ADIOSTestUtilities_h
5 #define ADIOSTestUtilities_h
6 
7 // adios2::fstream has private copy c'tor and no move operations defined,
8 // so we can't create a wrapper to create and return an fstream
9 #if VTK_MODULE_ENABLE_VTK_ParallelMPI
10 #define ADIOS_OPEN(fw, fileName) adios2::fstream fw(fileName, adios2::fstream::out, MPIGetComm())
11 #else
12 #define ADIOS_OPEN(fw, fileName) adios2::fstream fw(fileName, adios2::fstream::out)
13 #endif
14 
15 #endif // ADIOSTestUtilities_h