Skip to content
Snippets Groups Projects
Commit f1f91767 authored by Atkins, Charles Vernon's avatar Atkins, Charles Vernon
Browse files

Stop mpidummy.h contamination from ADIOS1

parent c1fd4115
No related branches found
No related tags found
1 merge request!76Stop mpidummy contamination
......@@ -15,12 +15,22 @@
#include <iostream> //this must go away
#include <adios_read_v2.h>
#include "adios2/ADIOSConfig.h"
#include "adios2/capsule/heap/STLVector.h"
#include "adios2/core/Engine.h"
// Fake out the include guard from ADIOS1's mpidummy.h to prevent it from
// getting included
#ifdef _NOMPI
#define __MPI_DUMMY_H__
#define MPI_Comm int
#endif
#include <adios_read_v2.h>
#ifdef _NOMPI
#undef MPI_Comm
#undef __MPI_DUMMY_H__
#endif
namespace adios
{
......
......@@ -13,11 +13,21 @@
#ifndef ADIOS2_ENGINE_ADIOS1_ADIOS1WRITER_H_
#define ADIOS2_ENGINE_ADIOS1_ADIOS1WRITER_H_
#include <adios.h>
#include "adios2/ADIOSConfig.h"
#include "adios2/core/Engine.h"
// Fake out the include guard from ADIOS1's mpidummy.h to prevent it from
// getting included
#ifdef _NOMPI
#define __MPI_DUMMY_H__
#define MPI_Comm int
#endif
#include <adios.h>
#ifdef _NOMPI
#undef MPI_Comm
#undef __MPI_DUMMY_H__
#endif
namespace adios
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment