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
|
||||
|
||||
CC = g++
|
||||
CCFLAGS = -O
|
||||
CC = cc
|
||||
CCFLAGS = -O # -fPIC
|
||||
ARCHIVE = ar
|
||||
ARCHFLAG = rs
|
||||
|
||||
@ -32,7 +32,7 @@ clean:
|
||||
|
||||
# Compilation rules
|
||||
|
||||
.cpp.o:
|
||||
.c.o:
|
||||
$(CC) $(CCFLAGS) -c $<
|
||||
|
||||
# Individual dependencies
|
||||
|
||||
@ -20,20 +20,13 @@
|
||||
#include <sys/time.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 */
|
||||
|
||||
struct {
|
||||
struct _mpi_double_int {
|
||||
double value;
|
||||
int proc;
|
||||
} double_int;
|
||||
};
|
||||
typedef struct _mpi_double_int double_int;
|
||||
|
||||
/* ---------------------------------------------------------------------- */
|
||||
/* MPI Functions */
|
||||
@ -14,6 +14,12 @@
|
||||
#ifndef MPI_STUBS
|
||||
#define MPI_STUBS
|
||||
|
||||
/* use C bindings for MPI interface */
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Dummy defs for MPI stubs */
|
||||
|
||||
#define MPI_COMM_WORLD 0
|
||||
@ -46,9 +52,10 @@
|
||||
|
||||
/* MPI data structs */
|
||||
|
||||
struct MPI_Status {
|
||||
struct _MPI_Status {
|
||||
int MPI_SOURCE;
|
||||
};
|
||||
typedef struct _MPI_Status MPI_Status;
|
||||
|
||||
/* 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 recvtype, int root, MPI_Comm comm);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user