Skip to content

add tensorProduct quadrature rule and [0,1] to [-1,1] transformation #1580

add tensorProduct quadrature rule and [0,1] to [-1,1] transformation

add tensorProduct quadrature rule and [0,1] to [-1,1] transformation #1580

Workflow file for this run

# SPDX-FileCopyrightText: 2021-2024 The Ikarus Developers [email protected]
# SPDX-License-Identifier: CC0-1.0
name: Run examples
on:
push:
paths-ignore:
- 'docs/**'
- '.github/workflows/ghpages.yml'
- '.github/workflows/createDockerContainer.yml'
- '**.md'
pull_request:
types: [opened]
branches:
- main
paths-ignore:
- 'docs/**'
- '.github/workflows/ghpages.yml'
- '.github/workflows/createDockerContainer.yml'
- '**.md'
jobs:
Build:
name: ${{ matrix.config.name }} Examples
runs-on: ubuntu-latest
container:
image: ikarusproject/ikarus-dev:latest
options: --memory-swap="20g" --memory="20g" --cpus="2" --user root
strategy:
fail-fast: false
matrix:
config:
- {
name: "GCC-Release",
config: Release,
compilerC: gcc-12,
compilerCxx: g++-12,
lib: ""
}
- {
name: "Clang-Release",
config: Release,
compilerC: clang-16,
compilerCxx: clang++-16,
lib: "-stdlib=libc++",
testRegex: "cpp"
}
steps:
- uses: actions/checkout@v2
with:
path: 'repo'
- name: Install Ikarus
working-directory: ./repo
run: |
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.config.config }} -GNinja -DCMAKE_C_COMPILER=${{ matrix.config.compilerC }} -DCMAKE_CXX_COMPILER=${{ matrix.config.compilerCxx }}
cmake --build . --parallel 2 --target ikarus
cmake --install .
cd ../..
rm -rf Ikarus
- name: Clone examples
run: |
git clone https://github.com/ikarus-project/ikarus-examples.git
- name: Checkout branch if it exists
working-directory: ./ikarus-examples
continue-on-error: true
if: ${{ github.event_name == 'push' }}
run: git checkout ${{ github.ref_name }}
- name: Checkout branch if it exists
working-directory: ./ikarus-examples
continue-on-error: true
if: ${{ github.event_name == 'pull_request' }}
run: git checkout ${{ github.event.pull_request.head.ref }}
- name: Compile all examples
working-directory: ./ikarus-examples
run: |
mkdir cmake-build-${{ matrix.config.config }}
cd cmake-build-${{ matrix.config.config }}
cmake ../ -DCMAKE_BUILD_TYPE=${{ matrix.config.config }} -GNinja -DCMAKE_C_COMPILER=${{ matrix.config.compilerC }} -DCMAKE_CXX_COMPILER=${{ matrix.config.compilerCxx }}
for i in $( find ../src -maxdepth 1 -name 'iks*'| sed -e 's/\(.cpp\)*$//g' | sed "s|../src/||" ); do cmake --build . --parallel 2 --target "$i"; done;
- name: Run all examples
working-directory: ./ikarus-examples/cmake-build-${{ matrix.config.config }}/src
run: |
echo "Testing example: iks001" && ./iks001_computePi;
echo "Testing example: iks002" && ./iks002_cantileverBeamOneDGrid;
echo "Testing example: iks003" && ./iks003_incompressibleLinearElasticity;
echo "Testing example: iks004" && ./iks004_kirchhoffPlate;
echo "Testing example: iks005" && ./iks005_newtonRaphson;
echo "Testing example: iks006" && ./iks006_nonlinear2DSolid;
echo "Testing example: iks007" && ./iks007_vonMisesTruss;
echo "Testing example: iks008" && ./iks008_cooksMembrane auxiliaryFiles/iks008_cooksMembrane.parset;
# for i in $( find . -maxdepth 1 -name 'iks*'| sed -e 's/\(.cpp\)*$//g' | sed "s|./||" ); while [! -f auxiliaryFiles/"$i".parset] do echo "Test example: "$i"" &&./"$i"; done;