X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=include%2Fimagefile.h;h=3c1bb9a8ef87fec8fb4b17809350298b4f2fff32;hp=4660a92139c91c0fdb9995ee3ff193d685fb7d88;hb=7438260c07e4f3d71c7f43669678c3a912682e4c;hpb=c7b8cd29c1e15bd5a95bff829772da2af1989fe5 diff --git a/include/imagefile.h b/include/imagefile.h index 4660a92..3c1bb9a 100644 --- a/include/imagefile.h +++ b/include/imagefile.h @@ -3,6 +3,8 @@ #include #include "kstddef.h" +#include +#include #include using namespace std; @@ -633,20 +635,21 @@ public: kuint32 ny(void) const { return adf.ny(); } -#ifdef MPI_CT - MPI_Datatype getMPIDataType (void) const - { return MPI_FLOAT; } +#ifdef HAVE_MPI + MPI::Datatype getMPIDataType (void) const + { return MPI::FLOAT; } #endif }; + class F64Image { public: Array2dFile adf; -#ifdef MPI_CT - MPI_Datatype getMPIDataType (void) const - { return MPI_DOUBLE; } +#ifdef HAVE_MPI + MPI::Datatype getMPIDataType (void) const + { return MPI::DOUBLE; } #endif F64Image (const char* const fname, unsigned int nx, unsigned int ny) : adf (fname, nx, ny)