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