with:
name: doxygen_documentation
path: build/doc/doxygen
-
- typos:
- # check for typos
-
- name: typos
- runs-on: [ubuntu-24.04]
-
- steps:
- - uses: actions/checkout@v4
- - uses: crate-ci/typos@v1.27.3
- with:
- files: doc examples include source tests
- config: ./.typos.toml
--- /dev/null
+name: pre-commit
+
+on: [push, pull_request]
+concurrency:
+ group: ${{ github.event_name }}-${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: ${{github.event_name == 'pull_request'}}
+permissions:
+ contents: read
+
+env:
+ SKIP: clang-format, no-commit-to-branch
+
+jobs:
+ pre-commit:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - uses: actions/setup-python@v5
+ - uses: pre-commit/action@v3.0.1
--- /dev/null
+repos:
+- repo: https://github.com/pre-commit/pre-commit-hooks
+ rev: v5.0.0
+ hooks:
+ - id: check-added-large-files
+ args: [--maxkb=8192]
+ - id: check-merge-conflict
+ - id: check-json
+ exclude: tests/a-framework/parameter_file_3\.json
+ - id: check-toml
+ - id: check-yaml
+ args: [--allow-multiple-documents]
+ - id: end-of-file-fixer
+ exclude: |
+ (?x)(
+ \.output|
+ \.run_only|
+ \.diff|
+ ^bundled/
+ )
+ - id: no-commit-to-branch
+ args: [--branch,master]
+ - id: trailing-whitespace
+ files: |
+ (?x)(
+ \.(cc|h$|html|doc|txt)|
+ ^doc/news
+ )
+ exclude: ^bundled/
+- repo: https://github.com/gitleaks/gitleaks
+ rev: v8.21.2
+ hooks:
+ - id: gitleaks
+- repo: https://github.com/pre-commit/mirrors-clang-format
+ rev: v16.0.6
+ hooks:
+ - id: clang-format
+ files: |
+ (?x)(
+ \.inst\.in |
+ \.cc |
+ \.h
+ )$
+- repo: https://github.com/crate-ci/typos
+ rev: v1.28.1
+ hooks:
+ - id: typos
+ files: (?x) ^(doc|examples|include|source|tests)/
The list of changes between versions of deal.II is maintained as part of the
regular documentation. You can find it
-[here](https://www.dealii.org/developer/doxygen/deal.II/pages.html).
\ No newline at end of file
+[here](https://www.dealii.org/developer/doxygen/deal.II/pages.html).
if(POLICY CMP0074)
# Introduced in CMake 3.12: find_package(<PackageName>) also searches
- # <PackageName>_ROOT CMake and environment variables when set to NEW.
+ # <PackageName>_ROOT CMake and environment variables when set to NEW.
cmake_policy(SET CMP0074 NEW)
endif()
The above command would drop you into an isolated environment, in which you
will find the latest version of deal.II (master development branch) installed
under `/usr/local`.
-
#
message(STATUS "Setting up project configuration - Done")
-
set(DEAL_II_GIT_REVISION "@DEAL_II_GIT_REVISION@")
set(DEAL_II_GIT_SHORTREV "@DEAL_II_GIT_SHORTREV@")
set(DEAL_II_GIT_TAG "@DEAL_II_GIT_TAG@")
-
set(PACKAGE_VERSION_EXACT TRUE)
endif()
endif()
-
);
// note: export has to be AFTER #includes for all archive classes
-BOOST_CLASS_EXPORT_IMPLEMENT(polymorphic_derived2)
\ No newline at end of file
+BOOST_CLASS_EXPORT_IMPLEMENT(polymorphic_derived2)
)
#endif // POLYMORPHIC_DERIVED2_HPP
-
configure_feature(TASKFLOW)
-
endmacro()
configure_feature(ARBORX)
-
"LinearAlgebra::distributed::BlockVector<std::complex<float> >"
)
endif()
-
target_compile_options(CheckCompilerSetupExec PRIVATE ${TEST_COMPILE_OPTIONS})
target_link_options(CheckCompilerSetupExec PRIVATE ${TEST_LINK_OPTIONS})
target_link_libraries(CheckCompilerSetupExec ${TEST_LINK_LIBRARIES})
-
string(STRIP "${${_variable}}" ${_variable})
endif()
endmacro()
-
set(${_var} TRUE)
endif()
endmacro()
-
endif()
endif()
endmacro()
-
set(CMAKE_REQUIRED_INCLUDES)
set(CMAKE_REQUIRED_LIBRARIES)
endmacro()
-
target_link_options(${_destination_target} INTERFACE ${_link_options})
endif()
endfunction()
-
unset(CMAKE_REQUIRED_FLAGS)
endmacro()
-
endforeach()
endmacro()
-
endif()
endforeach()
endmacro()
-
set(${ARGN} "${_messages}" PARENT_SCOPE)
endif()
endfunction()
-
set(CMAKE_REQUIRED_INCLUDES)
set(CMAKE_REQUIRED_LIBRARIES ${DEAL_II_LINKER_FLAGS_SAVED})
endmacro()
-
string(REPLACE " " " " ${_variable} "${${_variable}}")
string(STRIP "${${_variable}}" ${_variable})
endmacro()
-
string(REGEX REPLACE ${expression} "\\1" ${_variable} "${${_variable}}")
endforeach()
endmacro()
-
EPETRA_CONFIG_H ${_libraries} TRILINOS_CXX_SUPPORTS_SACADO_COMPLEX_RAD
)
endif()
-
enable_if_supported(DEAL_II_CXX_FLAGS_DEBUG "-gdwarf-2")
enable_if_supported(DEAL_II_CXX_FLAGS_DEBUG "-grecord-gcc-switches")
endif()
-
# generate some debug info:
enable_if_supported(DEAL_II_CXX_FLAGS_DEBUG "/Zi /MDd /Od")
endif()
-
LOOKUP_TABLE default
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-
# check the file group
check_multiple_defined_headers(lines)
-
done
git checkout -q ${current_branch}
-
f.write('</body></html>')
-
-
print('Last command failed!')
print(" ".join(command))
print('*********************************************\n\n')
-
-
-
-
process "." "CMakeLists.txt|CTestConfig.cmake" update_copyright
process "cmake contrib doc examples include source tests" ".*" update_copyright
-
for line in out:
print (line)
-
-
-
-
-
This folder contains changelog entries
======================================
-Changes between different releases in deal.II are documented in the file
+Changes between different releases in deal.II are documented in the file
"changes.h" that is automatically created from the files in the directories
- * "major",
- * "minor" and
+ * "major",
+ * "minor" and
* "incompatibilities".
Each of these files contain a short description of a change, the authors' names
-and the date where the latter two a separated by "<br>" from the first one.
+and the date where the latter two a separated by "<br>" from the first one.
A typical file could look like this:
New: We can do fancy stuff now.
<br>
(John Doe, YYYY/MM/DD)
-and is named "YYYYMMDDJohnDoe". File names for multiple contributions from the
+and is named "YYYYMMDDJohnDoe". File names for multiple contributions from the
same author on one day have a number appended, e.g. "YYYMMDDJohnDoe\_1".
Only the file name is used to have a proper order in "changes.h". This
means that the file can in principle have an arbitrary name as long as the date
incompatibilities
-----------------
-The "incompatibilities" section contains modifications to the library that
+The "incompatibilities" section contains modifications to the library that
are incompatible with previous versions of the library, but which are
necessary for the future maintainability of the library.
--- /dev/null
+New: Configuration and CI job for pre-commit.
+The tool pre-commit can install hooks into the local git repo.
+These will be run on every call to git commit and perform some quick checks
+on the changeset.
+The CI job runs these checks on the whole codebase.
+<br>
+(Jan Philipp Thiele, 2024/11/27)
# you may want to either replace the following statement by something like
# FILE(GLOB_RECURSE TARGET_SRC "source/*.cc")
# FILE(GLOB_RECURSE TARGET_INC "include/*.h")
-# SET(TARGET_SRC ${TARGET_SRC} ${TARGET_INC})
+# SET(TARGET_SRC ${TARGET_SRC} ${TARGET_INC})
# or switch altogether to the large project CMakeLists.txt file discussed
# in the "CMake in user projects" page accessible from the "User info"
# page of the documentation.
# you may want to either replace the following statement by something like
# FILE(GLOB_RECURSE TARGET_SRC "source/*.cc")
# FILE(GLOB_RECURSE TARGET_INC "include/*.h")
-# SET(TARGET_SRC ${TARGET_SRC} ${TARGET_INC})
+# SET(TARGET_SRC ${TARGET_SRC} ${TARGET_INC})
# or switch altogether to the large project CMakeLists.txt file discussed
# in the "CMake in user projects" page accessible from the "User info"
# page of the documentation.
Higher order mappings. Dealing with constraints.
-
1824 4 line 31 32
1825 4 line 32 33
1826 4 line 33 9
-
"7500-line-4.txt" using 2:1 w l ls 5 title "Refinement 4", \
"ref_2d_ghia_u.txt" using 7:1 ls 10 pt 4 w p title "Reference [Ghia 82]", \
"ref_2d_erturk_u.txt" using 5:1 ls 11 pt 6 w p title "Reference [Erturk]"
-
-
-Adaptive local refinement. Higher order elements.
\ No newline at end of file
+Adaptive local refinement. Higher order elements.
process*. But it is not difficult to adapt the program at hand here to
run with a much finer mesh, or perhaps in 3d, so that one is beyond
that limit and sees the benefits of parallel computing.
-
set(CLEAN_UP_FILES *.log *.gmv *.gnuplot *.gpl *.eps *.pov *.ucd *.d2 *.vtu *.pvtu)
project(${TARGET})
deal_ii_invoke_autopilot()
-
\}
\}
-}
\ No newline at end of file
+}
param.declare_entry("Azimuth",
"30",
Patterns::Double(),
- "Azimuth of the viw point, that is, the angle "
+ "Azimuth of the view point, that is, the angle "
"in the plane from the x-axis.");
param.declare_entry("Elevation",
"30",
template class InvalidAccessor<deal_II_struct_dimension,
deal_II_dimension,
deal_II_space_dimension>;
- }
\ No newline at end of file
+ }
3 6 4 7
3 6 5 4
3 1 5 6
-3 2 1 6
\ No newline at end of file
+3 2 1 6
3 1 2 0
3 3 4 0
3 4 5 1
-3 3 2 5
\ No newline at end of file
+3 3 2 5
3 1 5 2
3 2 5 3
3 3 5 4
-3 4 5 1
\ No newline at end of file
+3 4 5 1
3 2 23 3
3 12 23 2
3 13 23 12
-
4 1 quad 3 7 8 4
5 1 quad 5 7 3 1
6 1 quad 2 4 8 6
-
< output_results(cycle);
---
> //output_results(cycle);
-
Physical Curve("1", 10) = {2, 7, 6, 5, 4, 3};
Physical Surface("1", 9) = {2, 1};
-
-
-
-
62 30 33 26
63 29 32 15
64 8 33 30
-$EndElements
\ No newline at end of file
+$EndElements
41 3 0 8 4 17 6 18 28
42 3 0 8 4 28 18 19 29
43 3 0 8 4 29 19 7 8
-$ENDELM
\ No newline at end of file
+$ENDELM
3 100 line 2 4
4 100 line 4 3
5 100 line 3 1
-
17 101 line 2 6
18 101 line 3 7
19 101 line 4 8
-
SCALARS ManifoldID int 1
LOOKUP_TABLE default
-1 -1 -1 -1
-
-
SCALARS ManifoldID int 1
LOOKUP_TABLE default
-1 -1 -1 -1
-
-
3,0,1
4,1,1
*ELEMENT, TYPE=CPE4, ELSET=EB0
-1,1,2,4,3
\ No newline at end of file
+1,1,2,4,3
2412, 2456, 2556, 2457, 2357\r
2509, 2651, 2556, 2456, 2555\r
*End Part\r
-\r
95, 119, 120, 24, 23\r
96, 120, 45, 6, 24\r
*End Part\r
-\r
2 # number of geometric entity indices
# Geometric entity indices
6
-7
\ No newline at end of file
+7