forked from piclas-framework/piclas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
652 lines (592 loc) · 24.8 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
# Settings
# ----------------------------------------------------------------------------------------------------------------------------------------------------
# Load modules on new boltzplatz reggie
before_script:
- ulimit -s unlimited
#- module purge
#- module load cmake
#- module load gcc/9.2.0
#- module load openmpi/3.1.6/gcc/9.2.0
#- module load hdf5/1.10.6/gcc/9.2.0/openmpi/3.1.6
- module list
- python3 -V || true
- python2 -V || true
- if [ -n "${DO_CORE_SPLIT}" ]; then
echo " PICLAS_SPLIT_TYPE=OMPI_COMM_TYPE_CORE. Splitting shared memory domains on processor-level!";
export PICLAS_SPLIT_TYPE=OMPI_COMM_TYPE_CORE;
else
if [ -n "${DO_NODE_SPLIT}" ]; then
echo " PICLAS_SPLIT_TYPE=PICLAS_COMM_TYPE_NODE. Splitting shared memory domains on sub-node-level with 2 cores per node!";
export PICLAS_SPLIT_TYPE=PICLAS_COMM_TYPE_NODE;
else
echo "Splitting shared memory domains on node-level! Set variable DO_CORE_SPLIT=T to force core-level OR DO_NODE_SPLIT=T to force sub-node-level shared memory splitting for all regression tests.";
fi
fi
- if [ -n "${DO_NINJA}" ]; then
echo " Setting CMAKE_GENERATOR=Ninja to use ninja generator";
export CMAKE_GENERATOR=Ninja;
export GENERATOR=ninja;
export NCORES=0;
else
echo " Using default generator [Unix Makefiles] and [make] for compiling.";
export GENERATOR=make;
export NCORES=;
fi
# ----------------------------------------------------------------------------------------------------------------------------------------------------
# Stages
# ----------------------------------------------------------------------------------------------------------------------------------------------------
stages:
- build
- reggie_checkin
- reggie_feature_checkin
- reggie_DSMC_nightly
# - reggie_bgk_nightly
- reggie_tools_nightly
- reggie_nightly
- reggie_nightly_build_all
- reggie_weekly
- documentation
- deploy
# ----------------------------------------------------------------------------------------------------------------------------------------------------
# Templates
# ----------------------------------------------------------------------------------------------------------------------------------------------------
.template: &defaults
tags:
- withmodules-concurrent
artifacts:
name: "${CI_PIPELINE_ID}-${CI_COMMIT_REF_NAME}-${CI_JOB_NAME}"
expire_in: 1 day
when: on_failure
paths:
- build
cache:
key: "${CI_COMMIT_REF_SLUG}"
paths:
- build
policy: pull
allow_failure: true
rules:
- if: '$DO_CHECKIN'
- if: '$CI_PIPELINE_SOURCE == "push"'
.template: &defaults_nightly
tags:
- withmodules-concurrent
artifacts:
name: "${CI_PIPELINE_ID}-${CI_COMMIT_REF_NAME}-${CI_JOB_NAME}"
expire_in: 1 day
when: on_failure
paths:
- build
cache:
key: "${CI_COMMIT_REF_SLUG}"
paths:
- build
policy: pull
allow_failure: true
rules:
- if: '$DO_NIGHTLY'
.template: &defaults_weekly
tags:
- withmodules-concurrent
artifacts:
name: "${CI_PIPELINE_ID}-${CI_COMMIT_REF_NAME}-${CI_JOB_NAME}"
expire_in: 1 day
when: on_failure
paths:
- build
cache:
key: "${CI_COMMIT_REF_SLUG}"
paths:
- build
policy: pull
allow_failure: true
rules:
- if: '$DO_WEEKLY'
.template: &defaults_maxwell
tags:
- withmodules-concurrent
artifacts:
name: "${CI_PIPELINE_ID}-${CI_COMMIT_REF_NAME}-${CI_JOB_NAME}"
expire_in: 1 day
when: on_failure
paths:
- build_maxwell
cache:
key: "${CI_COMMIT_REF_SLUG}-MAX"
paths:
- build_maxwell
policy: pull
allow_failure: true
rules:
- if: '$DO_CHECKIN'
- if: '$CI_PIPELINE_SOURCE == "push"'
.template: &defaults_poisson
tags:
- withmodules-concurrent
artifacts:
name: "${CI_PIPELINE_ID}-${CI_COMMIT_REF_NAME}-${CI_JOB_NAME}"
expire_in: 1 day
when: on_failure
paths:
- build_poisson_release
- build_poisson_debug
cache:
key: "${CI_COMMIT_REF_SLUG}-POI"
paths:
- build_poisson_release
- build_poisson_debug
policy: pull
allow_failure: true
rules:
- if: '$DO_CHECKIN'
- if: '$CI_PIPELINE_SOURCE == "push"'
.template: &defaults_poisson_nightly
tags:
- withmodules-concurrent
artifacts:
name: "${CI_PIPELINE_ID}-${CI_COMMIT_REF_NAME}-${CI_JOB_NAME}"
expire_in: 1 day
when: on_failure
paths:
- build_poisson_release
- build_poisson_debug
cache:
key: "${CI_COMMIT_REF_SLUG}-POI"
paths:
- build_poisson_release
- build_poisson_debug
policy: pull
allow_failure: true
rules:
- if: '$DO_NIGHTLY'
# ----------------------------------------------------------------------------------------------------------------------------------------------------
# Stage "build": Build on check-in
# ----------------------------------------------------------------------------------------------------------------------------------------------------
build:
tags:
- withmodules-concurrent
artifacts:
name: "${CI_PIPELINE_ID}-${CI_COMMIT_REF_NAME}-${CI_JOB_NAME}"
expire_in: 1 day
when: on_failure
paths:
- build
cache:
key: "${CI_COMMIT_REF_SLUG}"
paths:
- build
policy: push
stage: build
script:
- mkdir -p build ; cd build
- git clone [email protected]:reggie2.0/reggie2.0.git reggie
#- cmake .. -DLIBS_BUILD_HDF5=OFF -DPICLAS_BUILD_POSTI=ON -DPOSTI_BUILD_SUPERB=ON -DPICLAS_READIN_CONSTANTS=ON ; $GENERATOR -j all
- cmake -GNinja .. -DLIBS_BUILD_HDF5=OFF -DPICLAS_BUILD_POSTI=ON -DPOSTI_BUILD_SUPERB=ON -DPICLAS_READIN_CONSTANTS=ON ; ninja -j0 all
build_maxwell:
tags:
- withmodules-concurrent
artifacts:
name: "${CI_PIPELINE_ID}-${CI_COMMIT_REF_NAME}-${CI_JOB_NAME}"
expire_in: 1 day
when: on_failure
paths:
- build_maxwell
cache:
key: "${CI_COMMIT_REF_SLUG}-MAX"
paths:
- build_maxwell
policy: push
stage: build
script:
- mkdir -p build_maxwell ; cd build_maxwell
- git clone [email protected]:reggie2.0/reggie2.0.git reggie
- cmake .. -DPICLAS_DEBUG_MEMORY=ON -DPICLAS_PARTICLES=OFF -DLIBS_BUILD_HDF5=OFF -DPICLAS_READIN_CONSTANTS=ON ; $GENERATOR -j $NCORES all
build_poisson:
tags:
- withmodules-concurrent
artifacts:
name: "${CI_PIPELINE_ID}-${CI_COMMIT_REF_NAME}-${CI_JOB_NAME}"
expire_in: 1 day
when: on_failure
paths:
- build_poisson_release
- build_poisson_debug
cache:
key: "${CI_COMMIT_REF_SLUG}-POI"
paths:
- build_poisson_release
- build_poisson_debug
policy: push
stage: build
script:
- mkdir -p build_poisson_release ; cd build_poisson_release
- git clone [email protected]:reggie2.0/reggie2.0.git reggie
- cmake .. -DCMAKE_BUILD_TYPE=Release -DPICLAS_EQNSYSNAME=poisson -DPICLAS_CODE_ANALYZE=ON -DPICLAS_TIMEDISCMETHOD=RK3 -DLIBS_BUILD_HDF5=OFF ; $GENERATOR -j $NCORES all
- cd ..
- mkdir -p build_poisson_debug ; cd build_poisson_debug
- git clone [email protected]:reggie2.0/reggie2.0.git reggie
- cmake .. -DCMAKE_BUILD_TYPE=Debug -DPICLAS_EQNSYSNAME=poisson -DPICLAS_CODE_ANALYZE=ON -DPICLAS_TIMEDISCMETHOD=RK3 -DLIBS_BUILD_HDF5=OFF ; $GENERATOR -j $NCORES all
build_hopr:
tags:
- withmodules-concurrent
stage: build
script:
- git clone https://github.com/hopr-framework/hopr.git hopr;
- cd hopr ; mkdir -p build ; cd build;
- echo `pwd`;
- cmake .. -DHOPR_BUILD_HDF5=OFF;
- $GENERATOR -j $NCORES all &> output.txt;
- tail -n 20 output.txt;
- rm output.txt;
- ls bin/hopr;
rules:
- if: '$DO_WEEKLY'
# ----------------------------------------------------------------------------------------------------------------------------------------------------
# Stage "reggie_checkin": Run most simple reggie with previous builds on check-in
# ----------------------------------------------------------------------------------------------------------------------------------------------------
default:
<<: *defaults
stage: reggie_checkin
script:
- cd build ; python ./reggie/reggie.py ../regressioncheck/run_basic/maxwell -e ./bin/piclas
maxwell:
<<: *defaults_maxwell
stage: reggie_checkin
script:
- cd build_maxwell ; python ./reggie/reggie.py ../regressioncheck/CHE_maxwell/maxwell -e ./bin/piclas
poisson_release:
<<: *defaults_poisson
stage: reggie_checkin
script:
- cd build_poisson_release ; python ./reggie/reggie.py ../regressioncheck/CHE_poisson/poisson -e ./bin/piclas
poisson_debug:
<<: *defaults_poisson
stage: reggie_checkin
script:
- cd build_poisson_debug ; python ./reggie/reggie.py ../regressioncheck/CHE_poisson/poisson -e ./bin/piclas
# ----------------------------------------------------------------------------------------------------------------------------------------------------
# Stage "reggie_feature_checkin": Run most simple reggie features with previous builds on check-in (must be very fast)
# - feature_PIC_gyrotron_variable_Bz: 1 cell layer gyrotron emission with variable B(z) field
# - feature_PIC_single_particle_PML : 4^3 cart box with a particle and 1 cell layer PMLs for all directions
# ----------------------------------------------------------------------------------------------------------------------------------------------------
CHE_PIC_maxwell_RK4:
<<: *defaults
stage: reggie_feature_checkin
script:
- cd build ; python ./reggie/reggie.py ../regressioncheck/CHE_PIC_maxwell_RK4 -e ./bin/piclas
# Commented out 07/12/2020 - to be fixed (this reggie fails due to bug in implicit particle tracking)
#CHE_PIC_maxwell_implicitBC:
# <<: *defaults
# stage: reggie_feature_checkin
# script:
# - cd build ; python ./reggie/reggie.py ../regressioncheck/CHE_PIC_maxwell_implicitBC
CHE_DSMC:
<<: *defaults
stage: reggie_feature_checkin
script:
- cd build ; python ./reggie/reggie.py ../regressioncheck/CHE_DSMC
CHE_BGK:
<<: *defaults
stage: reggie_feature_checkin
script:
- cd build ; python ./reggie/reggie.py ../regressioncheck/CHE_BGK
CHE_FPFlow:
<<: *defaults
stage: reggie_feature_checkin
script:
- cd build ; python ./reggie/reggie.py ../regressioncheck/CHE_FPFlow
# ----------------------------------------------------------------------------------------------------------------------------------------------------
# Stage "reggie_DSMC_nightly": Build and run chemistry examples on nightly (check reaction rates in RESERVOIR simulation)
# ----------------------------------------------------------------------------------------------------------------------------------------------------
NIG_Reservoir:
<<: *defaults_nightly
stage: reggie_DSMC_nightly
script:
- if [ -n "${DO_NIGHTLY}" ]; then cd build/ ; python ./reggie/reggie.py ../regressioncheck/NIG_Reservoir ; fi
# ----------------------------------------------------------------------------------------------------------------------------------------------------
# Stage "reggie_DSMC_nightly": Build and run tracking examples on nightly
# ----------------------------------------------------------------------------------------------------------------------------------------------------
NIG_Tracking:
<<: *defaults_nightly
stage: reggie_DSMC_nightly
script:
- if [ -n "${DO_NIGHTLY}" ]; then cd build/ ; python ./reggie/reggie.py ../regressioncheck/NIG_tracking_DSMC ; fi
# ----------------------------------------------------------------------------------------------------------------------------------------------------
# Stage "reggie_DSMC_nightly": Build and run DSMC examples on nightly
# ----------------------------------------------------------------------------------------------------------------------------------------------------
NIG_DSMC:
<<: *defaults_nightly
stage: reggie_DSMC_nightly
script:
- if [ -n "${DO_NIGHTLY}" ]; then cd build/ ; python ./reggie/reggie.py ../regressioncheck/NIG_DSMC ; fi
# ----------------------------------------------------------------------------------------------------------------------------------------------------
# Stage "reggie_tools_nightly": Build and run superB and piclas2vtk examples on nightly
# ----------------------------------------------------------------------------------------------------------------------------------------------------
NIG_SuperB_piclas:
<<: *defaults_nightly
stage: reggie_tools_nightly
script:
- if [ -n "${DO_NIGHTLY}" ]; then cd build ; python ./reggie/reggie.py ../regressioncheck/NIG_SuperB -e ./bin/piclas ; fi
NIG_SuperB_standalone:
<<: *defaults_nightly
stage: reggie_tools_nightly
script:
- if [ -n "${DO_NIGHTLY}" ]; then cd build ; python ./reggie/reggie.py ../regressioncheck/NIG_SuperB -e ./bin/superB ; fi
NIG_piclas2vtk:
<<: *defaults_nightly
stage: reggie_tools_nightly
script:
- if [ -n "${DO_NIGHTLY}" ]; then cd build ; python ./reggie/reggie.py ../regressioncheck/NIG_piclas2vtk ; fi
# ----------------------------------------------------------------------------------------------------------------------------------------------------
# Stage "reggie_bgk_nightly": Build and run BGK-Flow examples on nightly (CURRENTLY NO NIGHTLY TEST FOR BGK)
# ----------------------------------------------------------------------------------------------------------------------------------------------------
# gnu_NIG_BGK-Flow:
# <<: *defaults_nightly
# stage: reggie_bgk_nightly
# tags:
# - withmodules-concurrent
# script:
# - if [ -n "${DO_NIGHTLY}" ]; then cd build ; python ./reggie/reggie.py ../regressioncheck/NIG_BGK-Flow ; fi
# ----------------------------------------------------------------------------------------------------------------------------------------------------
# Stage "reggie_nightly": Build and run
# - feature_PIC_single_particle/ : basic PIC test with a single particle in a cart box
# - test particle emission for gyrotron setup with fixed electric current of 44 A
# - test record points for TWT setup and compare with h5diff
# - h-p-convtests
# - feature_maxwell_dipole_cylinder_PML/ : curved cylinder geometry with PML on axis and dipole in center for testing RP output
# - feature_maxwell_dipole_dielectric/ : curved sphere with dielectric region in the center and dipole at near the edge
# - feature_maxwell_ExactFlux_PML/ : inner BC that emits a planar wave in z-direction (PMLs are placed at
# the entry and exit of the cuboid domain)
# examples on nightly
# ----------------------------------------------------------------------------------------------------------------------------------------------------
NIG_dielectric:
<<: *defaults_nightly
stage: reggie_nightly
script:
- if [ -n "${DO_NIGHTLY}" ]; then cd build ; python ./reggie/reggie.py ../regressioncheck/NIG_dielectric ; fi
NIG_PIC_maxwell_RK4:
<<: *defaults_nightly
stage: reggie_nightly
script:
- if [ -n "${DO_NIGHTLY}" ]; then cd build ; python ./reggie/reggie.py ../regressioncheck/NIG_PIC_maxwell_RK4/ ; fi
NIG_convtest_maxwell:
<<: *defaults_nightly
stage: reggie_nightly
script:
- if [ -n "${DO_NIGHTLY}" ]; then cd build ; python ./reggie/reggie.py ../regressioncheck/NIG_convtest_maxwell ; fi
NIG_convtest_t_maxwell:
<<: *defaults_nightly
stage: reggie_nightly
script:
- if [ -n "${DO_NIGHTLY}" ]; then cd build ; python ./reggie/reggie.py ../regressioncheck/NIG_convtest_t_maxwell ; fi
NIG_convtest_t_poisson:
<<: *defaults_nightly
stage: reggie_nightly
script:
- if [ -n "${DO_NIGHTLY}" ]; then cd build ; python ./reggie/reggie.py ../regressioncheck/NIG_convtest_t_poisson ; fi
NIG_convtest_poisson:
<<: *defaults_nightly
stage: reggie_nightly
script:
- if [ -n "${DO_NIGHTLY}" ]; then cd build ; python ./reggie/reggie.py ../regressioncheck/NIG_convtest_poisson ; fi
NIG_PIC_poisson_RK3:
<<: *defaults_nightly
stage: reggie_nightly
script:
- if [ -n "${DO_NIGHTLY}" ]; then cd build ; python ./reggie/reggie.py ../regressioncheck/NIG_PIC_poisson_RK3/ ; fi
NIG_PIC_poisson_Boris-Leapfrog:
<<: *defaults_nightly
stage: reggie_nightly
script:
- if [ -n "${DO_NIGHTLY}" ]; then cd build ; python ./reggie/reggie.py ../regressioncheck/NIG_PIC_poisson_Boris-Leapfrog/ ; fi
NIG_PIC_poisson_Leapfrog:
<<: *defaults_nightly
stage: reggie_nightly
script:
- if [ -n "${DO_NIGHTLY}" ]; then cd build ; python ./reggie/reggie.py ../regressioncheck/NIG_PIC_poisson_Leapfrog/ ; fi
# NIG_PIC_poisson_Leapfrog_not_working:
# <<: *defaults_nightly
# stage: reggie_nightly
# script:
# - if [ -n "${DO_NIGHTLY}" ]; then cd build ; python ./reggie/reggie.py ../regressioncheck/NIG_PIC_poisson_Leapfrog_not_working/ ; fi
# Crank-Nicolson (2nd order implicit) time integration
# NIG_PIC_poisson_powerdensity:
# <<: *defaults_nightly
# stage: reggie_nightly
# script:
# - if [ -n "${DO_NIGHTLY}" ]; then cd build ; python ./reggie/reggie.py ../regressioncheck/NIG_PIC_poisson_powerdensity/ ; fi
NIG_poisson:
<<: *defaults_nightly
stage: reggie_nightly
script:
- if [ -n "${DO_NIGHTLY}" ]; then cd build ; python ./reggie/reggie.py ../regressioncheck/NIG_poisson/ ; fi
NIG_maxwell_RK4:
<<: *defaults_nightly
stage: reggie_nightly
script:
- if [ -n "${DO_NIGHTLY}" ]; then cd build ; python ./reggie/reggie.py ../regressioncheck/NIG_maxwell_RK4/ ; fi
NIG_PIC_poisson_plasma_wave:
<<: *defaults_nightly
stage: reggie_nightly
script:
- if [ -n "${DO_NIGHTLY}" ]; then cd build ; python ./reggie/reggie.py ../regressioncheck/NIG_PIC_poisson_plasma_wave/ ; fi
NIG_maxwell_dipole_dielectric:
<<: *defaults_nightly
stage: reggie_nightly
script:
- if [ -n "${DO_NIGHTLY}" ]; then cd build ; python ./reggie/reggie.py ../regressioncheck/NIG_maxwell_dipole_dielectric/ ; fi
# Commented out 07/12/2020 - to be fixed:
# this reggie has two examples:
# - imexfluid (fails): differnces as compared with the ref. files because particles are lost
# - surface_flux (works): no problems detected
#NIG_PIC_poisson_implicit04:
# <<: *defaults_nightly
# stage: reggie_nightly
# script:
# - if [ -n "${DO_NIGHTLY}" ]; then cd build ; python ./reggie/reggie.py ../regressioncheck/NIG_PIC_poisson_implicit04/ ; fi
NIG_LoadBalance:
<<: *defaults_nightly
stage: reggie_nightly
script:
- if [ -n "${DO_NIGHTLY}" ]; then cd build ; python ./reggie/reggie.py ../regressioncheck/NIG_LoadBalance/ ; fi
NIG_code_analyze:
<<: *defaults_nightly
stage: reggie_nightly
script:
- if [ -n "${DO_NIGHTLY}" ]; then cd build ; python ./reggie/reggie.py ../regressioncheck/NIG_code_analyze/ ; fi
NIG_IntKind8:
<<: *defaults_nightly
stage: reggie_nightly
script:
- if [ -n "${DO_NIGHTLY}" ]; then cd build ; python ./reggie/reggie.py ../regressioncheck/NIG_IntKind8/ ; fi
NIG_PIC_Deposition:
<<: *defaults_nightly
stage: reggie_nightly
script:
- if [ -n "${DO_NIGHTLY}" ]; then cd build ; python ./reggie/reggie.py ../regressioncheck/NIG_PIC_Deposition/ ; fi
# Add surf model (SEE) 13% probabilty test case here
#feature_SurfaceModel:
# <<: *defaults_nightly
# stage: reggie_nightly
# tags:
# - withmodules-concurrent
# script:
# - if [ -n "${DO_NIGHTLY}" ]; then cd build ; python ./reggie/reggie.py ../regressioncheck/NIG_SurfaceModel/ ; fi
NIG_Photoionization_release:
<<: *defaults_poisson_nightly
stage: reggie_nightly
script:
- if [ -n "${DO_NIGHTLY}" ]; then cd build_poisson_release ; fi
- if [ -n "${DO_NIGHTLY}" ]; then python ./reggie/reggie.py ../regressioncheck/NIG_Photoionization -e ./bin/piclas ; fi
NIG_Photoionization_debug:
<<: *defaults_poisson_nightly
stage: reggie_nightly
script:
- if [ -n "${DO_NIGHTLY}" ]; then cd build_poisson_debug ; fi
- if [ -n "${DO_NIGHTLY}" ]; then python ./reggie/reggie.py ../regressioncheck/NIG_Photoionization -e ./bin/piclas ; fi
# ----------------------------------------------------------------------------------------------------------------------------------------------------
# Stage "reggie_nightly_build_all": Build and run
# - build all specified compile options in "run_basic" with BUILD_HDF5=ON
# - sanitizer for maxwell/poisson (CMAKE_BUILD_TYPE=Sanitize,Profile)
# - math tools Lapack and OpenBlas with LIBS_BUILD_MATH_LIB = ON and LIBS_BUILD_MATH_LIB_VENDOR = LAPACK,OpenBLAS
# ----------------------------------------------------------------------------------------------------------------------------------------------------
build_all:
<<: *defaults_nightly
stage: reggie_nightly_build_all
script:
- if [ -n "${DO_NIGHTLY}" ]; then cd build ; python ./reggie/reggie.py ../regressioncheck/run_basic ; fi
build_sanitize:
<<: *defaults_nightly
stage: reggie_nightly_build_all
script:
- if [ -n "${DO_NIGHTLY}" ]; then cd build ; python ./reggie/reggie.py ../regressioncheck/NIG_sanitize ; fi
build_math_tools:
<<: *defaults_nightly
stage: reggie_nightly_build_all
script:
- if [ -n "${DO_NIGHTLY}" ]; then cd build ; python ./reggie/reggie.py ../regressioncheck/NIG_math_libs ; fi
# ----------------------------------------------------------------------------------------------------------------------------------------------------
# Stage "reggie_weekly": Build and run examples once a week
# - feature_PIC_maxwell_plasma_wave/ : test a plasma-wave with different time-integration and maxwell's equations
# ----------------------------------------------------------------------------------------------------------------------------------------------------
WEK_PIC_maxwell:
<<: *defaults_weekly
stage: reggie_weekly
script:
- cd build
- python ./reggie/reggie.py ../regressioncheck/WEK_PIC_maxwell
WEK_PIC_poisson:
<<: *defaults_weekly
stage: reggie_weekly
script:
- cd build
- python ./reggie/reggie.py ../regressioncheck/WEK_PIC_poisson
WEK_DSMC:
<<: *defaults_weekly
stage: reggie_weekly
script:
- cd build
- python ./reggie/reggie.py ../regressioncheck/WEK_DSMC
WEK_Reservoir:
<<: *defaults_weekly
stage: reggie_weekly
script:
- cd build
- python ./reggie/reggie.py ../regressioncheck/WEK_Reservoir
WEK_FPFlow:
<<: *defaults_weekly
stage: reggie_weekly
script:
- cd build
- python ./reggie/reggie.py ../regressioncheck/WEK_FPFlow
WEK_BGKFlow:
<<: *defaults_weekly
stage: reggie_weekly
script:
- cd build
- python ./reggie/reggie.py ../regressioncheck/WEK_BGKFlow
# ----------------------------------------------------------------------------------------------------------------------------------------------------
# Stage "documentation": Compile the userguide and developer guide
# ----------------------------------------------------------------------------------------------------------------------------------------------------
documentation:
stage: documentation
tags:
- withmodules-concurrent
script:
- cd docs/documentation
- python3 -m pip install --exists-action=w --no-cache-dir -r requirements.txt
- python3 -m sphinx -T -E -b html -d _build/doctrees -D language=en . _build/html
- ls -l _build/html
- python3 -m sphinx -b latex -D language=en -d _build/doctrees . _build/latex
- ls -l _build/latex
- cd _build/latex
- latexmk -r latexmkrc -pdf -f -dvi- -ps- -jobname=piclas -interaction=nonstopmode || true
- ls -l
- ls -l piclas.pdf
artifacts:
name: "${CI_PIPELINE_ID}-${CI_COMMIT_REF_NAME}-${CI_JOB_NAME}"
expire_in: 1 day
when: on_failure
paths:
- docs/documentation
# ----------------------------------------------------------------------------------------------------------------------------------------------------
# Stage "github": Push the master branch to github
# ----------------------------------------------------------------------------------------------------------------------------------------------------
github:
stage: deploy
tags:
- withmodules-concurrent
rules:
- if: '$DO_DEPLOY'
script:
- if [ -z "${DO_DEPLOY}" ]; then exit ; fi
- rm -rf piclas_github || true ;
- git clone -b master --single-branch [email protected]:piclas/piclas.git piclas_github ;
- cd piclas_github ;
## - git checkout --orphan orphan_branch v1.0.0 ; # tag v1.0.0 points to f754d8e1e207cb959a81bfb9013bc0f12476c62b
## - git commit -m 'truncated history before v1.0.0' ;
## - git rebase --onto orphan_branch v1.0.0 master ;
## - git branch -D orphan_branch ;
- git remote add piclas-framework [email protected]:piclas-framework/piclas.git ;
- git push --force --follow-tags piclas-framework master ;
# - git push --mirror [email protected]:iagcopple/piclas-framework.git ; cd ../