-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds C and Fortran headers for the kernels in *-kernels/api subdirectories. Kernel headers are tested for consistency against Fortran front-end. Changes the makefiles a) to not build the documentation by defaults, and b) to group the building and running of tests, so that make libs makes, um, only the libraries. --------- Co-authored-by: Alexander Soklev <alex@makepath.com>
- Loading branch information
1 parent
1b75505
commit 36f34c6
Showing
17 changed files
with
1,575 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Check Fortran API | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- develop | ||
pull_request: | ||
branches-ignore: | ||
- documentation | ||
workflow_dispatch: | ||
|
||
|
||
jobs: | ||
API: | ||
runs-on: ubuntu-22.04 | ||
env: | ||
# Core variables: | ||
FC: gfortran-12 | ||
FCFLAGS: "-ffree-line-length-none -m64 -std=f2008 -march=native -fbounds-check -fmodule-private -fimplicit-none -finit-real=nan -g -DRTE_USE_CBOOL" | ||
RRTMGP_ROOT: ${{ github.workspace }} | ||
RTE_KERNELS: extern | ||
steps: | ||
# | ||
# Check out repository under $GITHUB_WORKSPACE | ||
# | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
# | ||
# Build libraries | ||
# | ||
- name: Build libraries | ||
run: | | ||
$FC --version | ||
make -j4 libs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,28 @@ | ||
# | ||
# Top-level Makefile | ||
# | ||
.PHONY: libs tests check docs | ||
all: libs tests check docs | ||
.PHONY: libs tests check | ||
all: libs tests check | ||
|
||
libs: | ||
$(MAKE) -C build | ||
$(MAKE) -C tests | ||
$(MAKE) -C examples/all-sky | ||
$(MAKE) -C examples/rfmip-clear-sky | ||
$(MAKE) -C build $@ | ||
|
||
tests: | ||
$(MAKE) -C tests $@ | ||
$(MAKE) -C examples/rfmip-clear-sky $@ | ||
$(MAKE) -C examples/all-sky $@ | ||
$(MAKE) -C tests $@ | ||
|
||
check: | ||
$(MAKE) -C tests $@ | ||
$(MAKE) -C examples/rfmip-clear-sky $@ | ||
$(MAKE) -C examples/all-sky $@ | ||
$(MAKE) -C tests $@ | ||
|
||
docs: | ||
@cd doc; ./build_documentation.sh | ||
|
||
clean: | ||
$(MAKE) -C build $@ | ||
$(MAKE) -C tests $@ | ||
$(MAKE) -C examples/rfmip-clear-sky $@ | ||
$(MAKE) -C examples/all-sky $@ | ||
$(MAKE) -C tests $@ | ||
rm -rf public |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.