Created
December 20, 2012 11:13
-
-
Save derekbrokeit/4344732 to your computer and use it in GitHub Desktop.
install lammps with open-mpi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/src/MAKE/Makefile.mac b/src/MAKE/Makefile.mac | |
| index 42f5882..2f0f42a 100755 | |
| --- a/src/MAKE/Makefile.mac | |
| +++ b/src/MAKE/Makefile.mac | |
| @@ -6,18 +6,18 @@ SHELL = /bin/sh | |
| # compiler/linker settings | |
| # specify flags and libraries needed for your compiler | |
| -CC = c++ | |
| -CCFLAGS = -O | |
| +CC = mpic++ | |
| +CCFLAGS = -O2 -funroll-loops -fstrict-aliasing -Wall -W -Wno-uninitialized | |
| SHFLAGS = -fPIC | |
| DEPFLAGS = -M | |
| -LINK = c++ | |
| +LINK = mpic++ | |
| LINKFLAGS = -O | |
| -LIB = | |
| +LIB = -lstdc++ | |
| SIZE = size | |
| ARCHIVE = ar | |
| -ARFLAGS = -rc | |
| +ARFLAGS = -rcsv | |
| SHLIBFLAGS = -shared | |
| # --------------------------------------------------------------------- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment