-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
27 lines (19 loc) · 855 Bytes
/
makefile
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
IMAS_INC = $(shell pkg-config imas-ifort --cflags) $(shell pkg-config xmllib --cflags)
IMAS_LIB = $(shell pkg-config imas-ifort --libs) $(shell pkg-config xmllib --libs)
.PHONY: libtest.a help
libtest.a :
mpiifort -free -fPIC -O2 -fp-model strict -ip -assume noold_unit_star -axMIC-AVX512 -diag-disable=15009 -check noarg_temp_created $(IMAS_INC) -c test_imas.f90
ar -cruv libtest.a test_imas.o
actor_test : libtest.a
iwrap -f TEST_IMAS_ACTOR.yaml -i $(ACTOR_FOLDER)
xml_test :
@xmllint --noout indata.xsd indata.xml
@xmllint --noout --schema indata.xsd indata.xml
run : actor_test
python3 test.py
help :
@echo "Simplifies building various codes for IMAS"
@echo " libtest.a: Clean build of the library"
@echo " xml_test: Checks VMEC XML files"
@echo " actor_test: Builds TEST actor using iwrap"
@echo " run: Runs the python actor."