diff --git a/.github/workflows/build_adapter.yaml b/.github/workflows/build_adapter.yaml index 9d960340f..c81953ee2 100644 --- a/.github/workflows/build_adapter.yaml +++ b/.github/workflows/build_adapter.yaml @@ -33,10 +33,20 @@ jobs: CXX: g++ runs-on: ubuntu-24.04 steps: + - name: Select branch to checkout + run: | + if [[ $(git ls-remote --heads https://github.com/exasim-project/FoamAdapter ${{ github.head_ref }}) ]] + then + echo checkout=${{ env.branch }} >> $GITHUB_ENV + else + echo checkout=main >> $GITHUB_ENV + fi + - name: Checkout FoamAdapter uses: actions/checkout@v4 with: repository: exasim-project/FoamAdapter + ref: '${{ env.branch }}' - name: Checkout NeoFOAM submodule uses: actions/checkout@v4 diff --git a/test/finiteVolume/cellCentred/operator/divOperator.cpp b/test/finiteVolume/cellCentred/operator/divOperator.cpp index dcad3ed47..8f4490c9a 100644 --- a/test/finiteVolume/cellCentred/operator/divOperator.cpp +++ b/test/finiteVolume/cellCentred/operator/divOperator.cpp @@ -26,7 +26,7 @@ TEST_CASE("DivOperator") ); std::string execName = std::visit([](auto e) { return e.print(); }, exec); - // TODO: take 1d mesh + // TODO take 1d mesh NeoFOAM::UnstructuredMesh mesh = NeoFOAM::createSingleCellMesh(exec); auto surfaceBCs = fvcc::createCalculatedBCs>(mesh);