Skip to content

Commit 11fd505

Browse files
committed
Add autodiff to Make.package and ignore it in linters
1 parent 7864c02 commit 11fd505

File tree

6 files changed

+11
-4
lines changed

6 files changed

+11
-4
lines changed

.codespellrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[codespell]
2-
skip = .git,*.ipynb,*.bib,*.ps,*~
2+
skip = .git,*.ipynb,*.bib,*.ps,*~,./util/autodiff
33
ignore-words = .codespell-ignore-words
44

55

.editorconfig

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ indent_style = tab
5353
indent_size = unset
5454

5555

56-
[util/gcem/**]
57-
# don't mess with the gcem subtree
56+
[util/{autodiff,gcem}/**]
57+
# don't mess with the autodiff or gcem subtrees
5858
indent_style = unset
5959
indent_size = unset
6060
trim_trailing_whitespace = unset

.github/workflows/check_ifdefs.py

+3
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ def check_file(filename):
7878
if "tmp_build_dir" in f.parts:
7979
# skip generated files
8080
continue
81+
if f.parts[:2] == ("util", "autodiff"):
82+
# skip third-party autodiff files
83+
continue
8184
ierr, defines = check_file(f)
8285
all_defines += defines
8386
total_errors += ierr

.github/workflows/style/check_tabs.sh

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ find . -type d \( -name .git \
66
-o -path ./paper \
77
-o -name build -o -name install \
88
-o -name tmp_build_dir -o -name tmp_install_dir \
9+
-o -path ./util/autodiff \
910
\) -prune -o \
1011
-type f \( \( -name "*.H" -o -name "*.h" -o -name "*.hh" -o -name "*.hpp" \
1112
-o -name "*.c" -o -name "*.cc" -o -name "*.cpp" -o -name "*.cxx" \

.github/workflows/style/check_trailing_whitespaces.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ find . -type d \( -name .git \
66
-o -path ./paper \
77
-o -name build -o -name install \
88
-o -name tmp_build_dir -o -name tmp_install_dir \
9-
-o -path ./util/gcem \
9+
-o -path ./util/gcem -o -path ./util/autodiff \
1010
\) -prune -o \
1111
-type f \( \( -name "*.H" -o -name "*.h" -o -name "*.hh" -o -name "*.hpp" \
1212
-o -name "*.c" -o -name "*.cc" -o -name "*.cpp" -o -name "*.cxx" \

util/Make.package

+3
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,8 @@ ifeq ($(USE_REACT),TRUE)
44
CEXE_headers += linpack.H
55
endif
66

7+
INCLUDE_LOCATIONS += $(MICROPHYSICS_HOME)/util/autodiff
8+
DEFINES += -DAUTODIFF_DEVICE_FUNC=AMREX_GPU_HOST_DEVICE
9+
710
INCLUDE_LOCATIONS += $(MICROPHYSICS_HOME)/util/gcem/include
811
CEXE_headers += gcem.hpp

0 commit comments

Comments
 (0)