mirror of
https://git.gfz-potsdam.de/naaice/iphreeqc.git
synced 2025-12-15 16:18:22 +01:00
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:
parent
7dbc8d0632
commit
d850641336
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user