Commit 7e058d18 authored by incardon's avatar incardon

Adding missing example files

parent 48e457f8
include ../../example.mk
CC=mpic++
LDIR =
OBJ = main.o
OPT=
all: dem
dem_test: OPT += -DTEST_RUN
dem_test: all
%.o: %.cpp
$(CC) -O3 $(OPT) -g -c --std=c++11 -o $@ $< $(INCLUDE_PATH)
dem: $(OBJ)
$(CC) -o $@ $^ $(OPT) $(CFLAGS) $(LIBS_PATH) $(LIBS)
run: dem_test
mpirun -np 2 ./dem
.PHONY: clean all run
clean:
rm -f *.o *~ core dem
[pack]
files = main.cpp Makefile
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment