-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
executable file
·38 lines (30 loc) · 1.06 KB
/
Copy pathmakefile
File metadata and controls
executable file
·38 lines (30 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
FC = gfortran
CFLAGS = -c -std=f2008 -Wextra -Wall -pedantic -ffree-line-length-none -fbounds-check
LDFLAGS = -std=f2008 -Wextra -Wall -pedantic -ffree-line-length-none -fbounds-check
OBJ = src/variables.o src/random.o src/simulation.o src/lagrangian.o src/cyanobacteria.o src/io.o
src/%.o src/%.mod: src/%.f95
$(FC) $(CFLAGS) -Isrc/ -o $@ -J src $<
bin/forcing: src/forcing.f95 $(OBJ)
$(FC) -o $@ $^
chmod +x $@
bin/bloom: src/bloom.f95 $(OBJ)
$(FC) -o $@ $^
chmod +x $@
test.cpython-313-darwin.so: src/variables.o src/random.o
pixi run f2py -c src/variables.f95 src/random.f95 src/test.f95 -m test
new: bin/forcing
mkdir -p data/test
bin/forcing test
carbon:
@ pixi run python -m analysis.bloom.carbon_ratio $(data)
@ pixi run python -m analysis.bloom.carbon $(data)
@ pixi run python -m analysis.bloom.depth $(data)
@ pixi run python -m analysis.bloom.protein $(data)
@ pixi run python -m analysis.bloom.toxicity $(data)
clean:
@ rm -f src/*.mod
@ rm -f src/*.o
@ rm -f bin/*
@ rm -rf data/test
@ rm -f test.cpython-313-darwin.so
.PHONY: clean carbon