forked from enrico-dev/enrico
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
103 lines (93 loc) · 2.41 KB
/
.gitlab-ci.yml
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
variables:
GIT_STRATEGY: none
GIT_SUBMODULE_STRATEGY: recursive
OPENMC_CROSS_SECTIONS: $CI_PROJECT_DIR/endf71_multitemp/cross_sections.xml
stages:
- build_docs
- download
- patch
- cmake_singlerod
- build_singlerod
- test_singlerod
build_docs:sphinx_html:
stage: build_docs
variables:
GIT_STRATEGY: fetch
script:
- cd doc
- make html
download:cross_sections:
stage: download
script:
- wget https://anl.box.com/shared/static/46osfq56h4bd68r6e6pbhupsk4gbnvj2.xz -O - | tar -C $CI_PROJECT_DIR -xvJ
input_patch:nek5000:
stage: patch
script:
- cd tests/singlerod/short
- patch -N rodcht.rea ci_config/rodcht_rea.diff || true
- patch -N SIZE ci_config/SIZE.diff || true
cmake_singlerod:cmake:
stage: cmake_singlerod
dependencies:
- input_patch:nek5000
variables:
CC: mpicc
CXX: mpicxx
FC: mpif90
script:
- mkdir -p tests/singlerod/short/build
- cd tests/singlerod/short/build
- cmake -DUSR_LOC=../ ../../../..
build_singlerod:enrico:
stage: build_singlerod
dependencies:
- cmake_singlerod:cmake
variables:
CC: mpicc
CXX: mpicxx
FC: mpif90
script:
- cd tests/singlerod/short/build
- make -j -l4 enrico
- make -j -l4 test_nek5000_singlerod
- make -j -l4 test_openmc_singlerod
test_singlerod:nek5000:
stage: test_singlerod
dependencies:
- build_singlerod:enrico
script:
- cd tests/singlerod/short/openmc_nek5000
- if [ -a rodcht.run01.gz ]; then gunzip -f rodcht.run01.gz ; fi
- mpirun -np 8 ../build/test_nek5000_singlerod
test_singlerod:openmc:
stage: test_singlerod
dependencies:
- download:cross_sections
- build_singlerod:enrico
variables:
OMP_NUM_THREADS: 4
script:
- cd tests/singlerod/short/openmc_nek5000
- mpirun -np 2 ../build/test_openmc_singlerod
test_singlerod:openmc_nek5000:
stage: test_singlerod
dependencies:
- download:cross_sections
- input_patch:nek5000
- build_singlerod:enrico
variables:
OMP_NUM_THREADS: 4
script:
- cd tests/singlerod/short/openmc_nek5000
- if [ -a rodcht.run01.gz ]; then gunzip -f rodcht.run01.gz ; fi
- mpirun -np 8 ../build/enrico
test_singlerod:openmc_heat_surrogate:
stage: test_singlerod
dependencies:
- download:cross_sections
- build_singlerod:enrico
variables:
OMP_NUM_THREADS: 4
script:
- cd tests/singlerod/short/openmc_heat_surrogate
- mpirun -np 2 ../build/enrico