Commit 04248ace authored by Simon Brass's avatar Simon Brass
Browse files

add bin/ and make bin

parent d9b04fc3
......@@ -21,6 +21,11 @@ EXE = $(SRC:.f08=.exe)
all: ${EXE}
@echo All done.
.PHONY: bin
bin: ${EXE}
mkdir -p bin
install -c $^ bin
.SUFFIXES: .exe .f08
.f08.exe:
$(FC) $(FCFLAGS) $^ -o $@ $(LDFLAGS) $(LIBS)
......@@ -30,3 +35,4 @@ clean:
rm -f *.exe
rm -f *.mpiP
rm -f *.log.*
rm -rf bin
#!/bin/sh
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:../mpiP/lib
export LD_LIBRARY_PATH
BIN=bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:../mpiP/lib
export MPIP="-p"
mpirun -np 4 --tag-output --output-filename $@.log ./mpi-$@.exe
mpirun -np 4 --tag-output --output-filename $@.log ${BIN}/mpi-$@.exe
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