mirror of https://github.com/lammps/lammps.git
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@8669 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
e02a64ecc0
commit
127f12e6fa
|
@ -30,6 +30,7 @@
|
|||
#include <compute.h>
|
||||
#include <modify.h>
|
||||
#include <error.h>
|
||||
#include <cstdlib>
|
||||
|
||||
using namespace LAMMPS_NS;
|
||||
|
||||
|
|
|
@ -21,12 +21,6 @@
|
|||
library.h. All prototypes herein COULD be added to library.h instead of
|
||||
including this as a separate file. See the README for instructions. */
|
||||
|
||||
/* These prototypes probably belong in mpi.h in the src/STUBS directory. */
|
||||
#ifndef OPEN_MPI
|
||||
#define MPI_Comm_f2c(a) a
|
||||
#define MPI_Fint int
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
@ -38,7 +32,7 @@ int lammps_extract_compute_vectorsize (void*, char*, int);
|
|||
void lammps_extract_compute_arraysize (void*, char*, int, int*, int*);
|
||||
int lammps_extract_fix_vectorsize (void*, char*, int);
|
||||
void lammps_extract_fix_arraysize (void*, char*, int, int*, int*);
|
||||
void lammps_error_all (void *ptr, const char*, int, const char*);
|
||||
void lammps_error_all (void*, const char*, int, const char*);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -12,7 +12,7 @@ questions:
|
|||
Karl D. Hammond
|
||||
University of Tennessee, Knoxville
|
||||
karlh at ugcs.caltech.edu
|
||||
karlh atutk.edu
|
||||
karlh at utk.edu
|
||||
|
||||
-------------------------------------
|
||||
|
||||
|
@ -27,7 +27,7 @@ compile.
|
|||
The following steps will work to compile this module (replace ${LAMMPS_SRC}
|
||||
with the path to your LAMMPS source directory):
|
||||
(1) Compile LAMMPS as a static library. Call the resulting file ${LAMMPS_LIB},
|
||||
which will have an actual name lake liblammps_openmpi.a. If compiling
|
||||
which will have an actual name lake liblmp_openmpi.a. If compiling
|
||||
using the MPI stubs in ${LAMMPS_SRC}/STUBS, you will need to know where
|
||||
libmpi.a is as well (I'll call it ${MPI_STUBS} hereafter)
|
||||
(2) Copy said library to your Fortran program's source directory or include
|
||||
|
@ -61,7 +61,7 @@ with the path to your LAMMPS source directory):
|
|||
need to have the .mod file from part (3).
|
||||
|
||||
It is also possible to add LAMMPS.o and LAMMPS-wrapper.o into the
|
||||
LAMMPS library (e.g., liblammps_openmpi.a) instead of creating a separate
|
||||
LAMMPS library (e.g., liblmp_openmpi.a) instead of creating a separate
|
||||
library, like so:
|
||||
ar rs ${LAMMPS_LIB} LAMMPS.o LAMMPS-wrapper.o
|
||||
In this case, you can now use the Fortran wrapper functions as if they
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
SHELL = /bin/sh
|
||||
|
||||
# Path to LAMMPS extraction directory
|
||||
LAMMPS_ROOT = ../svn-dist
|
||||
LAMMPS_ROOT = ../../..
|
||||
LAMMPS_SRC = $(LAMMPS_ROOT)/src
|
||||
|
||||
# Remove the line below if using mpicxx/mpic++ as your C++ compiler
|
||||
|
|
Loading…
Reference in New Issue