git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@7439 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -15,8 +15,8 @@ OBJ = $(SRC:.c=.o)
|
|||||||
|
|
||||||
# System-specific settings
|
# System-specific settings
|
||||||
|
|
||||||
CC = g++
|
CC = cc
|
||||||
CCFLAGS = -O
|
CCFLAGS = -O # -fPIC
|
||||||
ARCHIVE = ar
|
ARCHIVE = ar
|
||||||
ARCHFLAG = rs
|
ARCHFLAG = rs
|
||||||
|
|
||||||
@ -32,7 +32,7 @@ clean:
|
|||||||
|
|
||||||
# Compilation rules
|
# Compilation rules
|
||||||
|
|
||||||
.cpp.o:
|
.c.o:
|
||||||
$(CC) $(CCFLAGS) -c $<
|
$(CC) $(CCFLAGS) -c $<
|
||||||
|
|
||||||
# Individual dependencies
|
# Individual dependencies
|
||||||
|
|||||||
@ -20,20 +20,13 @@
|
|||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include "mpi.h"
|
#include "mpi.h"
|
||||||
|
|
||||||
/* lo-level function prototypes */
|
|
||||||
|
|
||||||
void mpi_copy_int(void *, void *, int);
|
|
||||||
void mpi_copy_float(void *, void *, int);
|
|
||||||
void mpi_copy_double(void *, void *, int);
|
|
||||||
void mpi_copy_char(void *, void *, int);
|
|
||||||
void mpi_copy_byte(void *, void *, int);
|
|
||||||
|
|
||||||
/* lo-level data structure */
|
/* lo-level data structure */
|
||||||
|
|
||||||
struct {
|
struct _mpi_double_int {
|
||||||
double value;
|
double value;
|
||||||
int proc;
|
int proc;
|
||||||
} double_int;
|
};
|
||||||
|
typedef struct _mpi_double_int double_int;
|
||||||
|
|
||||||
/* ---------------------------------------------------------------------- */
|
/* ---------------------------------------------------------------------- */
|
||||||
/* MPI Functions */
|
/* MPI Functions */
|
||||||
@ -14,6 +14,12 @@
|
|||||||
#ifndef MPI_STUBS
|
#ifndef MPI_STUBS
|
||||||
#define MPI_STUBS
|
#define MPI_STUBS
|
||||||
|
|
||||||
|
/* use C bindings for MPI interface */
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Dummy defs for MPI stubs */
|
/* Dummy defs for MPI stubs */
|
||||||
|
|
||||||
#define MPI_COMM_WORLD 0
|
#define MPI_COMM_WORLD 0
|
||||||
@ -46,9 +52,10 @@
|
|||||||
|
|
||||||
/* MPI data structs */
|
/* MPI data structs */
|
||||||
|
|
||||||
struct MPI_Status {
|
struct _MPI_Status {
|
||||||
int MPI_SOURCE;
|
int MPI_SOURCE;
|
||||||
};
|
};
|
||||||
|
typedef struct _MPI_Status MPI_Status;
|
||||||
|
|
||||||
/* Function prototypes for MPI stubs */
|
/* Function prototypes for MPI stubs */
|
||||||
|
|
||||||
@ -121,4 +128,8 @@ int MPI_Scatterv(void *sendbuf, int *sendcounts, int *displs,
|
|||||||
MPI_Datatype sendtype, void *recvbuf, int recvcount,
|
MPI_Datatype sendtype, void *recvbuf, int recvcount,
|
||||||
MPI_Datatype recvtype, int root, MPI_Comm comm);
|
MPI_Datatype recvtype, int root, MPI_Comm comm);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user