mpi.h needs to be defined first because of a conflict with stdio (SEEK_SET ifdef).

output.h is needed for NameDouble mpi version.

git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@3886 1feff8c3-07ed-0310-ac33-dd36852eb9cd
This commit is contained in:
David L Parkhurst 2009-12-09 17:35:19 +00:00
parent 7dbc8d0632
commit d850641336
4 changed files with 11 additions and 9 deletions

View File

@ -20,6 +20,7 @@
#include "Dictionary.h"
#include "phqalloc.h"
#include "phrqproto.h"
#include "output.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
@ -477,7 +478,7 @@ cxxNameDouble::mpi_pack(std::vector < int >&ints,
}
}
void
cxxNameDouble::mpi_pack(int *ints, int *ii, double *doubles, int *dd)
cxxNameDouble::mpi_pack(PHREEQC_PTR_ARG_COMMA int *ints, int *ii, double *doubles, int *dd)
{
int i = *ii;
int d = *dd;
@ -490,7 +491,7 @@ cxxNameDouble::mpi_pack(int *ints, int *ii, double *doubles, int *dd)
if (n < 0)
{
std::cerr << it->first << std::endl;
error_msg("Name in NameDouble was not defined in dictionary?\n",
P_INSTANCE_POINTER error_msg("Name in NameDouble was not defined in dictionary?\n",
STOP);
}
//ints.push_back(n);

View File

@ -73,7 +73,7 @@ class cxxNameDouble:public
}
void
mpi_pack(std::vector < int >&ints, std::vector < double >&doubles);
mpi_pack(PHREEQC_PTR_ARG_COMMA std::vector < int >&ints, std::vector < double >&doubles);
void
mpi_pack(int *ints, int *ii, double *doubles, int *dd);

View File

@ -4,13 +4,14 @@
#ifdef _DEBUG
#pragma warning(disable : 4786) // disable truncation warning (Only used by debugger)
#endif
#include <cassert> // assert
#include <algorithm> // std::sort
#ifdef USE_MPI
//MPICH seems to require mpi.h to be first
#include <mpi.h>
#endif
#include <cassert> // assert
#include <algorithm> // std::sort
#include "Utils.h" // define first
#if !defined(PHREEQC_CLASS)
#define EXTERNAL extern

View File

@ -4,15 +4,15 @@
#ifdef _DEBUG
#pragma warning(disable : 4786) // disable truncation warning (Only used by debugger)
#endif
#ifdef USE_MPI
//MPICH seems to require mpi.h to be first
#include <mpi.h>
#endif
#include <fstream>
#include <iostream> // std::cout std::cerr
#include <cassert> // assert
#include <algorithm> // std::sort
#ifdef USE_MPI
//MPICH seems to require mpi.h to be first
#include <mpi.h>
#endif
#include "Utils.h" // define first
#if !defined(PHREEQC_CLASS)
#define EXTERNAL extern