forked from davidsblom/FOAM-FSI
-
Notifications
You must be signed in to change notification settings - Fork 3
/
wercker.yml
711 lines (608 loc) · 26.7 KB
/
wercker.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
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
box: davidsblom/foam-fsi
command-timeout: 60
no-response-timeout: 30
build:
steps:
- script:
name: install packages
code: |
apt-get update
apt-get -y install git build-essential flex bison zlib1g-dev libreadline-dev libncurses-dev libxt-dev libopenmpi-dev openmpi-bin rpm wget cmake hwloc scotch gfortran python unzip scons libiberty-dev libscotch-dev liblapack-dev libblas-dev cppcheck petsc-dev libmetis-dev libscotchparmetis-dev
- script:
name: initialize git submodules
code: |
git checkout .
git submodule update --init --recursive
- script:
name: foam-extend third-party
code: |
if [ -f "$WERCKER_CACHE_DIR/foam-extend-3.2.tar.gz" ]; then
debug "foam-extend-3.2 found in cache"
rsync -azvh $WERCKER_CACHE_DIR/foam-extend-3.2.tar.gz ./
tar -zxf foam-extend-3.2.tar.gz
else
debug "foam-extend-3.2 not found in cache, will download and compile"
git clone git://git.code.sf.net/p/foam-extend/foam-extend-3.2
export PARAVIEW_SYSTEM=1
export CMAKE_SYSTEM=1
export HWLOC_SYSTEM=1
export SCOTCH_SYSTEM=1
export PYFOAM_SYSTEM=1
export METIS_SYSTEM=1
export PARMETIS_SYSTEM=1
export CUDA_IGNORE=1
export SWAK4FOAM_SYSTEM=1
export WM_MPLIB=SYSTEMOPENMPI
export OPENMPI_DIR=/usr
export OPENMPI_BIN_DIR=$OPENMPI_DIR/bin
export FOAM_INST_DIR=`pwd`
sed -i s/"CC = g++ -m64"/"CC = mpicxx -m64 -DEIGEN_INITIALIZE_MATRICES_BY_NAN"/g foam-extend-3.2/wmake/rules/linux64Gcc/c++
sed -i s/"c++DBUG = -ggdb3 -DFULLDEBUG"/"c++DBUG = -g -DFULLDEBUG -DEIGEN_INITIALIZE_MATRICES_BY_NAN --coverage -fprofile-arcs -ftest-coverage"/g foam-extend-3.2/wmake/rules/linux64Gcc/c++Debug
cd foam-extend-3.2
source etc/bashrc
unset WM_THIRD_PARTY_USE_CMAKE_322
unset WM_THIRD_PARTY_USE_HWLOC_1101
unset WM_THIRD_PARTY_USE_SCOTCH_604
unset WM_THIRD_PARTY_USE_PYFOAM_064
# wmake is required for subsequent targets
( cd wmake/src && make )
# build ThirdParty sources
( cd $WM_THIRD_PARTY_DIR && ./AllMake )
# cleanup build files
rm -rf $WM_THIRD_PARTY_DIR/rpmBuild/BUILD/*
fi
- script:
name: foam-extend
code: |
if [ ! -f "$WERCKER_CACHE_DIR/foam-extend-3.2.tar.gz" ]; then
export PARAVIEW_SYSTEM=1
export CMAKE_SYSTEM=1
export HWLOC_SYSTEM=1
export METIS_SYSTEM=1
export PARMETIS_SYSTEM=1
export SCOTCH_SYSTEM=1
export SCOTCH_DIR=/usr
export SCOTCH_BIN_DIR=/usr/bin
export SCOTCH_LIB_DIR=/usr/lib
export SCOTCH_INCLUDE_DIR=/usr/include/scotch
export PYFOAM_SYSTEM=1
export CUDA_IGNORE=1
export SWAK4FOAM_SYSTEM=1
export WM_MPLIB=SYSTEMOPENMPI
export OPENMPI_DIR=/usr
export OPENMPI_BIN_DIR=$OPENMPI_DIR/bin
export FOAM_INST_DIR=`pwd`
cd foam-extend-3.2
source etc/bashrc
unset WM_THIRD_PARTY_USE_CMAKE_322
unset WM_THIRD_PARTY_USE_HWLOC_1101
unset WM_THIRD_PARTY_USE_SCOTCH_604
unset WM_THIRD_PARTY_USE_PYFOAM_064
. $WM_PROJECT_DIR/etc/settings.sh
cd $WM_PROJECT_DIR/src
wmakePrintBuild -check || /bin/rm -f foam/Make/$WM_OPTIONS/global.? 2>/dev/null
wmakeLnInclude foam
wmakeLnInclude meshTools
wmakeLnInclude OSspecific/$WM_OSTYPE
wmake libo OSspecific/$WM_OSTYPE
wmake libso foam
decompositionMethods/AllwmakeLnInclude
decompositionMethods/Allwmake
wmake libso lagrangian/basic
wmake libso edgeMesh
wmake libso surfMesh
wmake libso meshTools
wmake libso finiteVolume
wmake libso finiteArea
wmake libso lduSolvers
fi
- script:
name: foam-extend libraries
code: |
if [ ! -f "$WERCKER_CACHE_DIR/foam-extend-3.2.tar.gz" ]; then
export PARAVIEW_SYSTEM=1
export CMAKE_SYSTEM=1
export HWLOC_SYSTEM=1
export METIS_SYSTEM=1
export PARMETIS_SYSTEM=1
export SCOTCH_SYSTEM=1
export SCOTCH_DIR=/usr
export SCOTCH_BIN_DIR=/usr/bin
export SCOTCH_LIB_DIR=/usr/lib
export SCOTCH_INCLUDE_DIR=/usr/include/scotch
export PYFOAM_SYSTEM=1
export CUDA_IGNORE=1
export SWAK4FOAM_SYSTEM=1
export WM_MPLIB=SYSTEMOPENMPI
export OPENMPI_DIR=/usr
export OPENMPI_BIN_DIR=$OPENMPI_DIR/bin
export FOAM_INST_DIR=`pwd`
cd foam-extend-3.2
source etc/bashrc
unset WM_THIRD_PARTY_USE_CMAKE_322
unset WM_THIRD_PARTY_USE_HWLOC_1101
unset WM_THIRD_PARTY_USE_SCOTCH_604
unset WM_THIRD_PARTY_USE_PYFOAM_064
cd $WM_PROJECT_DIR/src
wmake libso tetFiniteElement
dynamicMesh/AllwmakeLnInclude
dynamicMesh/Allwmake
wmake libso coupledMatrix
wmake libso sampling
wmake libso ODE
thermophysicalModels/Allwmake
transportModels/Allwmake
turbulenceModels/Allwmake
lagrangian/Allwmake
wmake libso solidModels
fi
- script:
name: store cache
code: |
if [ ! -f "$WERCKER_CACHE_DIR/foam-extend-3.2.tar.gz" ]; then
cd foam-extend-3.2
find . -not -path './lib/linux64GccDPOpt' -not -path './ThirdParty/*' -name 'linux64GccDPOpt' -type d -print -prune -exec rm -rf {} \;
find . -not -path './lib/linux64GccDPDebug' -not -path './ThirdParty/*' -name 'linux64GccDPDebug' -type d -print -prune -exec rm -rf {} \;
cd ../
tar -zcf foam-extend-3.2.tar.gz foam-extend-3.2
rsync -azvh foam-extend-3.2.tar.gz $WERCKER_CACHE_DIR/
fi
- script:
name: setup environment
code: |
export PARAVIEW_SYSTEM=1
export CMAKE_SYSTEM=1
export HWLOC_SYSTEM=1
export SCOTCH_SYSTEM=1
export PYFOAM_SYSTEM=1
export CUDA_IGNORE=1
export SWAK4FOAM_SYSTEM=1
export WM_MPLIB=SYSTEMOPENMPI
export OPENMPI_DIR=/usr
export OPENMPI_BIN_DIR=$OPENMPI_DIR/bin
export FOAM_INST_DIR=`pwd`
source foam-extend-3.2/etc/bashrc
pwdstring=`pwd`
prefLocation=$WM_PROJECT_DIR/etc/prefs.sh
if [ -z "$FOAM_USER_SRC" ]; then
echo "Creating FOAM_USER_SRC before compiling in $prefLocation"
echo "# Setting up environment variable for FOAM-FSI" >> $prefLocation
echo "export FOAM_USER_SRC=$pwdstring/src" >> $prefLocation
fi
source $FOAM_SRC/../etc/bashrc
- script:
name: boost
code: |
export BOOST_VERSION=1_55_0
export BOOST_VERSION_DOT=1.55.0
cd src/thirdParty
if [ -f "$WERCKER_CACHE_DIR/boost_${BOOST_VERSION}.tar.bz2" ]; then
debug "boost library found in cache"
rsync -azvh $WERCKER_CACHE_DIR/boost_${BOOST_VERSION}.tar.bz2 ./
else
wget -O boost_${BOOST_VERSION}.tar.bz2 http://downloads.sourceforge.net/project/boost/boost/${BOOST_VERSION_DOT}/boost_${BOOST_VERSION}.tar.bz2
rsync -azvh boost_${BOOST_VERSION}.tar.bz2 $WERCKER_CACHE_DIR/
fi
tar jxf boost_${BOOST_VERSION}.tar.bz2
ln -s boost_${BOOST_VERSION} boost
- script:
name: PETSc
code: |
cd src/thirdParty
mkdir -p petsc
cd petsc
ln -s /usr/include/petsc include
- script:
name: deal.II
code: |
export PARAVIEW_SYSTEM=1
export CMAKE_SYSTEM=1
export HWLOC_SYSTEM=1
export SCOTCH_SYSTEM=1
export PYFOAM_SYSTEM=1
export CUDA_IGNORE=1
export SWAK4FOAM_SYSTEM=1
export WM_MPLIB=SYSTEMOPENMPI
export OPENMPI_DIR=/usr
export OPENMPI_BIN_DIR=$OPENMPI_DIR/bin
export FOAM_INST_DIR=`pwd`
export DEALII_VERSION=8.4.1
export BOOST_VERSION=1_55_0
source foam-extend-3.2/etc/bashrc
cd src/thirdParty
if [ -f "$WERCKER_CACHE_DIR/dealii-${DEALII_VERSION}.tar.xz" ]; then
debug "deal.II library found in cache"
rsync -azvh $WERCKER_CACHE_DIR/dealii-${DEALII_VERSION}.tar.xz ./
tar -Jxf dealii-${DEALII_VERSION}.tar.xz
ln -s dealii-${DEALII_VERSION} dealii
cp dealii-${DEALII_VERSION}/bin/lib/libdeal_II* ${FOAM_LIBBIN}/
fi
rm -f boost
ln -s boost_${BOOST_VERSION} boost
if [ ! -d "dealii-${DEALII_VERSION}" ]; then
rm -rf dealii*
wget https://github.com/dealii/dealii/releases/download/v${DEALII_VERSION}/dealii-${DEALII_VERSION}.tar.gz
tar -zxf dealii-${DEALII_VERSION}.tar.gz
rm dealii-${DEALII_VERSION}.tar.gz
export CC=mpicc
export CXX=mpicxx
export F77=mpif77
export F90=mpif90
cd dealii-${DEALII_VERSION}
mkdir build
mkdir bin
cd build
if [ "$WM_COMPILE_OPTION" = "Opt" ]
then
cmake -DCMAKE_INSTALL_PREFIX=`pwd`/../bin -DCMAKE_BUILD_TYPE=Release ..
elif [ "$WM_COMPILE_OPTION" = "Debug" ]
then
cmake -DCMAKE_INSTALL_PREFIX=`pwd`/../bin -DCMAKE_BUILD_TYPE=Debug ..
fi
make -j $WM_NCOMPPROCS install test
cd ../..
rm -rf dealii-${DEALII_VERSION}/build
cp dealii-${DEALII_VERSION}/bin/lib/libdeal* ${FOAM_LIBBIN}/
fi
rm -f dealii
ln -s dealii-${DEALII_VERSION} dealii
cd deal-fsi
rm -rf Makefile CMakeFiles cmake_install.cmake CMakeCache.txt
rm -f boost eigen
ln -s ../boost
ln -s ../eigen
cmake -DDEAL_II_DIR=../dealii/bin/ .
if [ "$WM_COMPILE_OPTION" = "Opt" ]
then
make release
elif [ "$WM_COMPILE_OPTION" = "Debug" ]
then
make debug
fi
cd ..
if [ ! -f "$WERCKER_CACHE_DIR/dealii-${DEALII_VERSION}.tar.xz" ]; then
tar -cJf dealii-${DEALII_VERSION}.tar.xz dealii-${DEALII_VERSION}
rsync -azvh dealii-${DEALII_VERSION}.tar.xz $WERCKER_CACHE_DIR/
fi
- script:
name: googletest
code: |
export PARAVIEW_SYSTEM=1
export CMAKE_SYSTEM=1
export HWLOC_SYSTEM=1
export SCOTCH_SYSTEM=1
export PYFOAM_SYSTEM=1
export CUDA_IGNORE=1
export SWAK4FOAM_SYSTEM=1
export WM_MPLIB=SYSTEMOPENMPI
export OPENMPI_DIR=/usr
export OPENMPI_BIN_DIR=$OPENMPI_DIR/bin
export FOAM_INST_DIR=`pwd`
export GTEST_VERSION=1.7.0
source foam-extend-3.2/etc/bashrc
cd src/thirdParty
if [ -f "$WERCKER_CACHE_DIR/gtest-${GTEST_VERSION}.tar.xz" ]; then
debug "googletest library found in cache"
rsync -azvh $WERCKER_CACHE_DIR/gtest-${GTEST_VERSION}.tar.xz ./
tar -Jxf gtest-${GTEST_VERSION}.tar.xz
ln -s gtest-${GTEST_VERSION} gtest
else
debug "googletest library not found in cache, will download and compile"
fi
./compile_gtest
if [ ! -f "$WERCKER_CACHE_DIR/gtest-${GTEST_VERSION}.tar.xz" ]; then
tar -cJf gtest-${GTEST_VERSION}.tar.xz gtest-${GTEST_VERSION}
rsync -azvh gtest-${GTEST_VERSION}.tar.xz $WERCKER_CACHE_DIR/
fi
- script:
name: precice
code: |
export PARAVIEW_SYSTEM=1
export CMAKE_SYSTEM=1
export HWLOC_SYSTEM=1
export SCOTCH_SYSTEM=1
export PYFOAM_SYSTEM=1
export CUDA_IGNORE=1
export SWAK4FOAM_SYSTEM=1
export WM_MPLIB=SYSTEMOPENMPI
export OPENMPI_DIR=/usr
export OPENMPI_BIN_DIR=$OPENMPI_DIR/bin
export FOAM_INST_DIR=`pwd`
export WM_NCOMPPROCS=2
source foam-extend-3.2/etc/bashrc
cd src/thirdParty
export BOOST_ROOT=`pwd`/boost
export PRECICE_BOOST_ROOT=${BOOST_ROOT}
export PRECICE_MPI_LIB=mpi
export PRECICE_MPI_LIB_PATH="`mpicc --showme:libdirs`"
export PRECICE_MPI_INC_PATH="`mpicc --showme:incdirs`"
export CPLUS_INCLUDE_PATH=`pwd`/eigen
# Build preCICE
cd precice
if [ "$WM_COMPILE_OPTION" = "Opt" ]
then
scons -j $WM_NCOMPPROCS build=release python=off petsc=off compiler=mpicxx solib
cp build/release-nopetsc-nopython/libprecice.* ${FOAM_LIBBIN}/
elif [ "$WM_COMPILE_OPTION" = "Debug" ]
then
scons -j $WM_NCOMPPROCS build=debug python=off petsc=off compiler=mpicxx solib
cp build/debug-nopetsc-nopython/libprecice.* ${FOAM_LIBBIN}/
fi
- script:
name: yaml-cpp
code: |
export PARAVIEW_SYSTEM=1
export CMAKE_SYSTEM=1
export HWLOC_SYSTEM=1
export SCOTCH_SYSTEM=1
export PYFOAM_SYSTEM=1
export CUDA_IGNORE=1
export SWAK4FOAM_SYSTEM=1
export WM_MPLIB=SYSTEMOPENMPI
export OPENMPI_DIR=/usr
export OPENMPI_BIN_DIR=$OPENMPI_DIR/bin
export FOAM_INST_DIR=`pwd`
export YAML_CPP_VERSION=0.5.3
source foam-extend-3.2/etc/bashrc
cd src/thirdParty
if [ -f "$WERCKER_CACHE_DIR/yaml-cpp-release-${YAML_CPP_VERSION}.tar.xz" ]; then
debug "yaml-cpp library found in cache"
rsync -azvh $WERCKER_CACHE_DIR/yaml-cpp-release-${YAML_CPP_VERSION}.tar.xz ./
tar -Jxf yaml-cpp-release-${YAML_CPP_VERSION}.tar.xz
ln -s yaml-cpp-release-${YAML_CPP_VERSION} yaml-cpp
else
debug "yaml-cpp library not found in cache, will download and compile"
fi
./compile_yaml
if [ ! -f "$WERCKER_CACHE_DIR/yaml-cpp-release-${YAML_CPP_VERSION}.tar.xz" ]; then
tar -cJf yaml-cpp-release-${YAML_CPP_VERSION}.tar.xz yaml-cpp-release-${YAML_CPP_VERSION}
rsync -azvh yaml-cpp-release-${YAML_CPP_VERSION}.tar.xz $WERCKER_CACHE_DIR/
fi
- script:
name: boundary conditions
code: |
export PARAVIEW_SYSTEM=1
export CMAKE_SYSTEM=1
export HWLOC_SYSTEM=1
export SCOTCH_SYSTEM=1
export PYFOAM_SYSTEM=1
export CUDA_IGNORE=1
export SWAK4FOAM_SYSTEM=1
export WM_MPLIB=SYSTEMOPENMPI
export OPENMPI_DIR=/usr
export OPENMPI_BIN_DIR=$OPENMPI_DIR/bin
export FOAM_INST_DIR=`pwd`
source foam-extend-3.2/etc/bashrc
wmakeLnInclude src/boundaryConditions
wmakeLnInclude src/fvSchemes
wmakeLnInclude src/fsi
wmakeLnInclude src/RBFMeshMotionSolver
wmakeLnInclude src/SRFModelAbs
wmake libso src/boundaryConditions
- script:
name: schemes
code: |
export PARAVIEW_SYSTEM=1
export CMAKE_SYSTEM=1
export HWLOC_SYSTEM=1
export SCOTCH_SYSTEM=1
export PYFOAM_SYSTEM=1
export CUDA_IGNORE=1
export SWAK4FOAM_SYSTEM=1
export WM_MPLIB=SYSTEMOPENMPI
export OPENMPI_DIR=/usr
export OPENMPI_BIN_DIR=$OPENMPI_DIR/bin
export FOAM_INST_DIR=`pwd`
export WM_NCOMPPROCS=2
source foam-extend-3.2/etc/bashrc
wmake libso src/fvSchemes
- script:
name: fsi
code: |
export PARAVIEW_SYSTEM=1
export CMAKE_SYSTEM=1
export HWLOC_SYSTEM=1
export SCOTCH_SYSTEM=1
export PYFOAM_SYSTEM=1
export CUDA_IGNORE=1
export SWAK4FOAM_SYSTEM=1
export WM_MPLIB=SYSTEMOPENMPI
export OPENMPI_DIR=/usr
export OPENMPI_BIN_DIR=$OPENMPI_DIR/bin
export FOAM_INST_DIR=`pwd`
source foam-extend-3.2/etc/bashrc
wmake libso src/fsi
- script:
name: radial basis function mesh motion solver
code: |
export PARAVIEW_SYSTEM=1
export CMAKE_SYSTEM=1
export HWLOC_SYSTEM=1
export SCOTCH_SYSTEM=1
export PYFOAM_SYSTEM=1
export CUDA_IGNORE=1
export SWAK4FOAM_SYSTEM=1
export WM_MPLIB=SYSTEMOPENMPI
export OPENMPI_DIR=/usr
export OPENMPI_BIN_DIR=$OPENMPI_DIR/bin
export FOAM_INST_DIR=`pwd`
source foam-extend-3.2/etc/bashrc
wmake libso src/RBFMeshMotionSolver
- script:
name: FSI solvers
code: |
export PARAVIEW_SYSTEM=1
export CMAKE_SYSTEM=1
export HWLOC_SYSTEM=1
export SCOTCH_SYSTEM=1
export PYFOAM_SYSTEM=1
export CUDA_IGNORE=1
export SWAK4FOAM_SYSTEM=1
export WM_MPLIB=SYSTEMOPENMPI
export OPENMPI_DIR=/usr
export OPENMPI_BIN_DIR=$OPENMPI_DIR/bin
export FOAM_INST_DIR=`pwd`
source foam-extend-3.2/etc/bashrc
wmake applications/solvers/fsi/fsiFoam
wmake applications/solvers/fsi/solidFoam
wmake applications/solvers/fsi/fluidFoam
- script:
name: precice FSI solvers
code: |
export PARAVIEW_SYSTEM=1
export CMAKE_SYSTEM=1
export HWLOC_SYSTEM=1
export SCOTCH_SYSTEM=1
export PYFOAM_SYSTEM=1
export CUDA_IGNORE=1
export SWAK4FOAM_SYSTEM=1
export WM_MPLIB=SYSTEMOPENMPI
export OPENMPI_DIR=/usr
export OPENMPI_BIN_DIR=$OPENMPI_DIR/bin
export FOAM_INST_DIR=`pwd`
source foam-extend-3.2/etc/bashrc
wmake applications/solvers/fsi/fsiSolidFoam
wmake applications/solvers/fsi/fsiFluidFoam
- script:
name: test app
code: |
export PARAVIEW_SYSTEM=1
export CMAKE_SYSTEM=1
export HWLOC_SYSTEM=1
export SCOTCH_SYSTEM=1
export PYFOAM_SYSTEM=1
export CUDA_IGNORE=1
export SWAK4FOAM_SYSTEM=1
export WM_MPLIB=SYSTEMOPENMPI
export OPENMPI_DIR=/usr
export OPENMPI_BIN_DIR=$OPENMPI_DIR/bin
export FOAM_INST_DIR=`pwd`
export WM_NCOMPPROCS=2
source foam-extend-3.2/etc/bashrc
wmake src/tests/testsuite-dealii
wmake src/tests/testsuite-fsi
wmake src/tests/testsuite-rbf
wmake src/tests/testsuite-sdc
wmake src/tests/testsuite-sdc-fsi
wmake src/tests/testsuite-spacemapping
- script:
name: testsuite-sdc
code: |
export PARAVIEW_SYSTEM=1
export CMAKE_SYSTEM=1
export HWLOC_SYSTEM=1
export SCOTCH_SYSTEM=1
export PYFOAM_SYSTEM=1
export CUDA_IGNORE=1
export SWAK4FOAM_SYSTEM=1
export WM_MPLIB=SYSTEMOPENMPI
export OPENMPI_DIR=/usr
export OPENMPI_BIN_DIR=$OPENMPI_DIR/bin
export FOAM_INST_DIR=`pwd`
export WM_NCOMPPROCS=2
source foam-extend-3.2/etc/bashrc
cd src/tests
python runTests.py testsuite-sdc
- script:
name: testsuite-sdc-fsi
code: |
export PARAVIEW_SYSTEM=1
export CMAKE_SYSTEM=1
export HWLOC_SYSTEM=1
export SCOTCH_SYSTEM=1
export PYFOAM_SYSTEM=1
export CUDA_IGNORE=1
export SWAK4FOAM_SYSTEM=1
export WM_MPLIB=SYSTEMOPENMPI
export OPENMPI_DIR=/usr
export OPENMPI_BIN_DIR=$OPENMPI_DIR/bin
export FOAM_INST_DIR=`pwd`
export WM_NCOMPPROCS=2
source foam-extend-3.2/etc/bashrc
cd src/tests
python runTests.py testsuite-sdc-fsi
- script:
name: testsuite-rbf
code: |
export PARAVIEW_SYSTEM=1
export CMAKE_SYSTEM=1
export HWLOC_SYSTEM=1
export SCOTCH_SYSTEM=1
export PYFOAM_SYSTEM=1
export CUDA_IGNORE=1
export SWAK4FOAM_SYSTEM=1
export WM_MPLIB=SYSTEMOPENMPI
export OPENMPI_DIR=/usr
export OPENMPI_BIN_DIR=$OPENMPI_DIR/bin
export FOAM_INST_DIR=`pwd`
export WM_NCOMPPROCS=1
source foam-extend-3.2/etc/bashrc
cd src/tests
python runTests.py testsuite-rbf
- script:
name: testsuite-spacemapping
code: |
export PARAVIEW_SYSTEM=1
export CMAKE_SYSTEM=1
export HWLOC_SYSTEM=1
export SCOTCH_SYSTEM=1
export PYFOAM_SYSTEM=1
export CUDA_IGNORE=1
export SWAK4FOAM_SYSTEM=1
export WM_MPLIB=SYSTEMOPENMPI
export OPENMPI_DIR=/usr
export OPENMPI_BIN_DIR=$OPENMPI_DIR/bin
export FOAM_INST_DIR=`pwd`
export WM_NCOMPPROCS=2
source foam-extend-3.2/etc/bashrc
cd src/tests
python runTests.py testsuite-spacemapping
- script:
name: testsuite-fsi
code: |
export PARAVIEW_SYSTEM=1
export CMAKE_SYSTEM=1
export HWLOC_SYSTEM=1
export SCOTCH_SYSTEM=1
export PYFOAM_SYSTEM=1
export CUDA_IGNORE=1
export SWAK4FOAM_SYSTEM=1
export WM_MPLIB=SYSTEMOPENMPI
export OPENMPI_DIR=/usr
export OPENMPI_BIN_DIR=$OPENMPI_DIR/bin
export FOAM_INST_DIR=`pwd`
export WM_NCOMPPROCS=2
source foam-extend-3.2/etc/bashrc
cd src/tests
python runTests.py testsuite-fsi
- script:
name: testsuite-dealii
code: |
export PARAVIEW_SYSTEM=1
export CMAKE_SYSTEM=1
export HWLOC_SYSTEM=1
export SCOTCH_SYSTEM=1
export PYFOAM_SYSTEM=1
export CUDA_IGNORE=1
export SWAK4FOAM_SYSTEM=1
export WM_MPLIB=SYSTEMOPENMPI
export OPENMPI_DIR=/usr
export OPENMPI_BIN_DIR=$OPENMPI_DIR/bin
export FOAM_INST_DIR=`pwd`
export WM_NCOMPPROCS=2
source foam-extend-3.2/etc/bashrc
cd src/tests
python runTests.py testsuite-dealii
- script:
name: cppcheck
code: |
(cd src/fsi && cppcheck --enable=performance,portability .)
(cd src/RBFMeshMotionSolver && cppcheck --enable=performance,portability .)
(cd src/tests && cppcheck --enable=performance,portability .)
(cd applications && cppcheck --enable=performance,portability .)
- script:
name: list cache files
code: ls -lah $WERCKER_CACHE_DIR
- script:
name: cleanup
code: rm -rf *