-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from joeydumont/feature-ScaledBesselFunctions
This PR adds multiple features: * build a static library with the `BUILD_STATIC_LIBS` CMake build option * implemented a testing framework based on GTest and GitHub Actions * added the scaled Bessel functions, which limit overflow for large arguments. Example call: `double scaled = besselJ(order, z, true)`. The exact scaling depends on the Bessel functions and is documented in the zbesh.for file (more user-friendly docs coming in the near™ future)
- Loading branch information
Showing
12 changed files
with
501 additions
and
85 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,35 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: Run Google Tests | ||
|
||
# Controls when the action will run. Triggers the workflow on push or pull request | ||
# events but only for the master branch | ||
on: [push, pull_request] | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
build: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
|
||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install dependencies, and Google Test | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y apt-utils build-essential wget git cmake clang ninja-build curl gfortran libgtest-dev libhdf5-dev libboost-all-dev | ||
sudo mkdir -p "/usr/src/googletest/build/" && cd "/usr/src/googletest/build" | ||
sudo cmake -G Ninja .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib -DBUILD_SHARED_LIBS=ON | ||
sudo cmake --build . | ||
sudo cmake --build . --target install | ||
# Runs a set of commands using the runners shell | ||
- name: Compile the package and run the tests | ||
run: | | ||
cd $GITHUB_WORKSPACE | ||
bash build.sh | ||
cd build && make test |
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,5 +1,9 @@ | ||
tests/ | ||
build/ | ||
*.hdf5 | ||
*.h5 | ||
*.dat | ||
*.png | ||
|
||
# http://www.gnu.org/software/automake | ||
|
||
|
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.