Skip to content

Commit a21787c

Browse files
authored
Merge pull request #53 from mathLab/v9.5.0
No warnings. New VERSION. Github.
2 parents 43376bc + c984124 commit a21787c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+699
-516
lines changed

.clang-format

+13-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# The clang-format (Clang 6) style file used by deal.II.
2+
# The clang-format (Clang 11) style file used by deal.II.
33
#
44

55
AccessModifierOffset: -2
@@ -26,8 +26,9 @@ BinPackArguments: false
2626
BinPackParameters: false
2727

2828
BraceWrapping:
29+
AfterCaseLabel: true
2930
AfterClass: true
30-
AfterControlStatement: true
31+
AfterControlStatement: Always
3132
AfterEnum: true
3233
AfterExternBlock: true
3334
AfterFunction: true
@@ -36,6 +37,8 @@ BraceWrapping:
3637
AfterUnion: true
3738
BeforeCatch: true
3839
BeforeElse: true
40+
BeforeLambdaBody: false
41+
BeforeWhile: true
3942
IndentBraces: true
4043
SplitEmptyFunction: false
4144
SplitEmptyRecord: false
@@ -69,6 +72,8 @@ IncludeCategories:
6972
Priority: -1
7073
# deal.II folders in sorted order:
7174
- Regex: "deal.II/algorithms/.*\\.h"
75+
Priority: 100
76+
- Regex: "deal.II/arborx/.*\\.h"
7277
Priority: 110
7378
- Regex: "deal.II/base/.*\\.h"
7479
Priority: 120
@@ -112,6 +117,8 @@ IncludeCategories:
112117
Priority: 300
113118
- Regex: "deal.II/sundials/.*\\.h"
114119
Priority: 310
120+
- Regex: "deal.II/trilinos/.*\\.h"
121+
Priority: 320
115122
# put boost right after deal:
116123
- Regex: "<boost.*>"
117124
Priority: 500
@@ -127,6 +134,10 @@ IncludeCategories:
127134
# should not be caught here
128135
- Regex: "<[a-z_]+>"
129136
Priority: 100000
137+
# make sure that "../tests.h" appears before all other local include files
138+
# such that replacing Assert in tests also applies to the testing header files.
139+
- Regex: "\\.\\./tests\\.h"
140+
Priority: 200000
130141

131142
IndentCaseLabels: true
132143
IndentPPDirectives: AfterHash

.github/workflows/doxygen.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Doxygen
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Get deal.tag
14+
run: |
15+
wget https://www.dealii.org/developer/doxygen/deal.tag
16+
17+
- name: Build Doxygen documentation
18+
uses: mattnotmitt/[email protected]
19+
with:
20+
doxyfile-path: "./docs/Doxyfile"
21+
working-directory: "."
22+
23+
- name: Publish Doxygen documentation
24+
uses: peaceiris/actions-gh-pages@v3
25+
with:
26+
github_token: ${{ secrets.GITHUB_TOKEN }}
27+
publish_dir: ./doc/html/
28+

.github/workflows/indentation.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Indent
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
container:
14+
image: dealii/dealii:v9.5.0-jammy
15+
options: --user root --env OMPI_ALLOW_RUN_AS_ROOT=1 --env OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Check indentation
20+
run: |
21+
git config --global --add safe.directory /__w/pi-BEM/pi-BEM
22+
./scripts/check_indentation.sh

.github/workflows/tests.yml

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: GitHub CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
debug:
11+
12+
runs-on: ubuntu-latest
13+
14+
container:
15+
image: dealii/dealii:v9.5.0-jammy
16+
options: --user root --env OMPI_ALLOW_RUN_AS_ROOT=1 --env OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1
17+
18+
steps:
19+
- uses: actions/checkout@v2
20+
- name: Test debug
21+
run: |
22+
rm -rf build_linux_debug
23+
mkdir build_linux_debug
24+
cd build_linux_debug
25+
cmake .. -GNinja -DCMAKE_BUILD_TYPE=Debug
26+
ninja
27+
ctest -N
28+
ctest --output-on-failure
29+
30+
release:
31+
32+
runs-on: ubuntu-latest
33+
34+
container:
35+
image: dealii/dealii:v9.5.0-jammy
36+
options: --user root --env OMPI_ALLOW_RUN_AS_ROOT=1 --env OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1
37+
38+
steps:
39+
- uses: actions/checkout@v2
40+
- name: Test release
41+
run: |
42+
rm -rf build_linux_release
43+
mkdir build_linux_release
44+
cd build_linux_release
45+
cmake .. -GNinja -DCMAKE_BUILD_TYPE=Release
46+
ninja
47+
ctest -N
48+
ctest --output-on-failure

.travis.yml

-20
This file was deleted.

CMakeLists.txt

+6-7
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ IF(NOT "${_main}" STREQUAL "")
3636
ENDIF()
3737

3838

39-
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8)
39+
CMAKE_MINIMUM_REQUIRED(VERSION 3.13.4)
4040

4141
FIND_PACKAGE(deal.II 9.5 REQUIRED
4242
HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR}
@@ -61,6 +61,8 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
6161
set(CMAKE_MACOSX_RPATH 1)
6262
endif()
6363

64+
OPTION(BEM_ENABLE_TESTING
65+
"Enable deal.II style tests in this application." ON)
6466

6567

6668
# We one library and one target for each type of deal.II library
@@ -111,13 +113,12 @@ endif()
111113

112114

113115
# Doxygen
114-
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in)
116+
if(EXISTS ${CMAKE_SOURCE_DIR}/docs/Doxyfile)
115117
find_package(Doxygen)
116118
if(DOXYGEN_FOUND)
117-
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY)
118119
add_custom_target(doc
119-
${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
120-
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
120+
${DOXYGEN_EXECUTABLE} ${CMAKE_SOURCE_DIR}/docs/Doxyfile
121+
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
121122
COMMENT "Generating API documentation with Doxygen" VERBATIM
122123
)
123124
endif(DOXYGEN_FOUND)
@@ -130,5 +131,3 @@ ADD_CUSTOM_TARGET(indent
130131
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
131132
COMMAND ./scripts/indent
132133
)
133-
134-

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
9.1.1
1+
9.5.0
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
1-
FROM heltai/deal2lkit:debug-release
2-
3-
1+
FROM dealii/dealii:v9.5.0-jammy
42

53
# pi-BEM master image
64
RUN git clone https://github.com/mathLab/pi-BEM/ &&\
75
mkdir pi-BEM/build && cd pi-BEM/build &&\
86
cmake -DCMAKE_BUILD_TYPE=DebugRelease \
9-
-GNinja \
10-
../ && \
11-
ninja -j4
12-
13-
# Need this for Travis!
14-
USER root
7+
-GNinja \
8+
../ && \
9+
ninja

docker/debug/Dockerfile

-14
This file was deleted.

docker/release/Dockerfile

-14
This file was deleted.

0 commit comments

Comments
 (0)