update COUPLE example library to be portable across MPI libraries
This commit is contained in:
@ -4,10 +4,10 @@ SHELL = /bin/sh
|
||||
|
||||
# System-specific settings
|
||||
|
||||
CC = g++
|
||||
CCFLAGS = -g -O -DMPICH_IGNORE_CXX_SEEK
|
||||
CC = mpicxx
|
||||
CCFLAGS = -g -O -DMPICH_IGNORE_CXX_SEEK -DOMPI_SKIP_MPICXX=1
|
||||
DEPFLAGS = -M
|
||||
LINK = g++
|
||||
LINK = mpicxx
|
||||
LINKFLAGS = -g -O
|
||||
ARCHIVE = ar
|
||||
ARFLAGS = -rc
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#include "mpi.h"
|
||||
#include "stdlib.h"
|
||||
#include "stdio.h"
|
||||
#include <mpi.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "error.h"
|
||||
|
||||
/* ---------------------------------------------------------------------- */
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#ifndef ERROR_H
|
||||
#define ERROR_H
|
||||
|
||||
#include "mpi.h"
|
||||
#include <mpi.h>
|
||||
|
||||
class Error {
|
||||
public:
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#include "stdio.h"
|
||||
#include "string.h"
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "files.h"
|
||||
|
||||
#define MAXLINE 256
|
||||
|
||||
@ -1,2 +1,5 @@
|
||||
#ifndef FILES_H
|
||||
#define FILES_H
|
||||
void replace(char *, char *, int, char **);
|
||||
char **extract(char *, char *, int, char **);
|
||||
#endif
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#ifndef IRREGULAR_H
|
||||
#define IRREGULAR_H
|
||||
|
||||
#include "mpi.h"
|
||||
#include <mpi.h>
|
||||
|
||||
class Irregular {
|
||||
public:
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
#include "stdlib.h"
|
||||
#include "string.h"
|
||||
#include <mpi.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "lammps_data_write.h"
|
||||
#include "memory.h"
|
||||
#include "error.h"
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
#ifndef LAMMPS_DATA_WRITE_H
|
||||
#define LAMMPS_DATA_WRITE_H
|
||||
|
||||
#include <stdio.h>
|
||||
#include "send2one.h"
|
||||
#include "stdio.h"
|
||||
|
||||
class LAMMPSDataWrite : public Send2One {
|
||||
public:
|
||||
|
||||
@ -1,4 +1,6 @@
|
||||
#include "mpi.h"
|
||||
#include <mpi.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include "many2many.h"
|
||||
#include "irregular.h"
|
||||
#include "memory.h"
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#ifndef MANY2MANY_H
|
||||
#define MANY2MANY_H
|
||||
|
||||
#include "mpi.h"
|
||||
#include <mpi.h>
|
||||
|
||||
class Many2Many {
|
||||
public:
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#ifndef MANY2ONE_H
|
||||
#define MANY2ONE_H
|
||||
|
||||
#include "mpi.h"
|
||||
#include <mpi.h>
|
||||
|
||||
class Many2One {
|
||||
public:
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#include "mpi.h"
|
||||
#include "stdlib.h"
|
||||
#include "stdio.h"
|
||||
#include <mpi.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include "memory.h"
|
||||
#include "error.h"
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#ifndef MEMORY_H
|
||||
#define MEMORY_H
|
||||
|
||||
#include "mpi.h"
|
||||
#include <mpi.h>
|
||||
|
||||
class Memory {
|
||||
public:
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
#include "mpi.h"
|
||||
#include <mpi.h>
|
||||
#include <stdlib.h>
|
||||
#include "one2many.h"
|
||||
#include "memory.h"
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#ifndef ONE2MANY_H
|
||||
#define ONE2MANY_H
|
||||
|
||||
#include "mpi.h"
|
||||
#include <mpi.h>
|
||||
|
||||
#include <map>
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#ifndef SEND2ONE_H
|
||||
#define SEND2ONE_H
|
||||
|
||||
#include "mpi.h"
|
||||
#include <mpi.h>
|
||||
|
||||
class Send2One {
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user