Skip to content

Instantly share code, notes, and snippets.

@derekbrokeit
Created December 20, 2012 11:13
Show Gist options
  • Select an option

  • Save derekbrokeit/4344732 to your computer and use it in GitHub Desktop.

Select an option

Save derekbrokeit/4344732 to your computer and use it in GitHub Desktop.
install lammps with open-mpi
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