manual:compileandrunaurynsimulations
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
manual:compileandrunaurynsimulations [2016/09/01 20:17] – Adds subsection zenke | manual:compileandrunaurynsimulations [2017/03/13 19:43] (current) – Adds comment string zenke | ||
---|---|---|---|
Line 18: | Line 18: | ||
# The following should not require updating in most cases | # The following should not require updating in most cases | ||
- | CXX = mpic++ | + | CXX = mpicxx |
- | CPPFLAGS=-ansi -pipe -O3 -march=native -ffast-math -pedantic -I/ | + | CXXFLAGS=-ansi -pipe -O3 -march=native -ffast-math -pedantic -I/ |
LDFLAGS=$(AURYNLIB)/ | LDFLAGS=$(AURYNLIB)/ | ||
+ | |||
+ | # Add your simulation' | ||
+ | all: sim_new | ||
sim_%: sim_%.o | sim_%: sim_%.o | ||
- | $(CXX) $(CPPFLAGS) $< $(LDFLAGS) -o $(subst .o,,$<) | + | $(CXX) $(CXXFLAGS) $< $(LDFLAGS) -o $(subst .o,,$<) |
%.o : %.cpp | %.o : %.cpp | ||
- | $(CC) $(CFLAGS) -c $< | + | $(CXX) $(CXXFLAGS) -c $< |
</ | </ | ||
Here you might need to update the first three lines if something does not work for you. The first line is the shorthand for you MPI C++ compiler, the second line is the path the root directory where you keep Auryn. Finally, in the third we set the directory where you keep '' | Here you might need to update the first three lines if something does not work for you. The first line is the shorthand for you MPI C++ compiler, the second line is the path the root directory where you keep Auryn. Finally, in the third we set the directory where you keep '' |
manual/compileandrunaurynsimulations.1472761063.txt.gz · Last modified: 2016/09/01 20:17 by zenke