update COUPLE example library to be portable across MPI libraries

This commit is contained in:
Axel Kohlmeyer
2016-05-16 18:39:18 -04:00
parent 7dc53b79e3
commit 3f4c511bca
16 changed files with 30 additions and 23 deletions

View File

@ -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

View File

@ -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"
/* ---------------------------------------------------------------------- */

View File

@ -1,7 +1,7 @@
#ifndef ERROR_H
#define ERROR_H
#include "mpi.h"
#include <mpi.h>
class Error {
public:

View File

@ -1,5 +1,5 @@
#include "stdio.h"
#include "string.h"
#include <stdio.h>
#include <string.h>
#include "files.h"
#define MAXLINE 256

View File

@ -1,2 +1,5 @@
#ifndef FILES_H
#define FILES_H
void replace(char *, char *, int, char **);
char **extract(char *, char *, int, char **);
#endif

View File

@ -1,7 +1,7 @@
#ifndef IRREGULAR_H
#define IRREGULAR_H
#include "mpi.h"
#include <mpi.h>
class Irregular {
public:

View File

@ -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"

View File

@ -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:

View File

@ -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"

View File

@ -1,7 +1,7 @@
#ifndef MANY2MANY_H
#define MANY2MANY_H
#include "mpi.h"
#include <mpi.h>
class Many2Many {
public:

View File

@ -1,7 +1,7 @@
#ifndef MANY2ONE_H
#define MANY2ONE_H
#include "mpi.h"
#include <mpi.h>
class Many2One {
public:

View File

@ -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"

View File

@ -1,7 +1,7 @@
#ifndef MEMORY_H
#define MEMORY_H
#include "mpi.h"
#include <mpi.h>
class Memory {
public:

View File

@ -1,4 +1,5 @@
#include "mpi.h"
#include <mpi.h>
#include <stdlib.h>
#include "one2many.h"
#include "memory.h"

View File

@ -1,7 +1,7 @@
#ifndef ONE2MANY_H
#define ONE2MANY_H
#include "mpi.h"
#include <mpi.h>
#include <map>

View File

@ -1,7 +1,7 @@
#ifndef SEND2ONE_H
#define SEND2ONE_H
#include "mpi.h"
#include <mpi.h>
class Send2One {
public: