Skip to content

Commit

Permalink
add run docs
Browse files Browse the repository at this point in the history
  • Loading branch information
teuben committed Jun 29, 2023
1 parent 1f765d7 commit 9b16124
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,20 @@ ATHENA = athenak/build/src/athena
.PHONY: help install build


install:
@echo "The installation has a few manual steps:"
install: help
@echo "These are some make targets we advertise. See Makefile for details"

help:
## help: This Help
## help: This Help
help : Makefile
@sed -n 's/^##//p' $<


## git: Get all git repos for this install
## git: Get all git repos for this install
git: $(GIT_DIRS)
@echo Last git: `date` >> git.log

## pull: Update all git repos
## pull: Update all git repos
pull:
@echo -n "lmtoy: "; git pull
-@for dir in $(GIT_DIRS); do\
Expand All @@ -66,21 +66,26 @@ athenak:
nemo:
git clone $(URL3)

## build: build athenak
## build: build athenak
build: athenak
(mkdir -p athenak/build; cd athenak/build; cmake ..; make -j)

## build_nemo: build nemo
build_nemo: nemo
(cd nemo; ./configure ; make build check bench5)

# a few sample runs

## run1: example linear_wave_hydro
run1:
$(ATHENA) -i athenak/inputs/tests/linear_wave_hydro.athinput -d run1
@echo ./animate1 base=run1/tab/LinWave xcol=x1v ycol=velx
# -> LinWave.hydro_w.00000.tab

## run1: example advect_hyd
run2:
$(ATHENA) -i athenak/inputs/tests/advect_hyd.athinput -d run2
@echo ./animate1 base=run2/tab/Advect xcol=x1v ycol=dens
# -> Advect.hydro_u.00000.tab

run3:
Expand Down

0 comments on commit 9b16124

Please sign in to comment.