diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 6852156468..61a42ae963 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -1,49 +1,6 @@ -name: Coverage Check - -on: [push, pull_request, workflow_dispatch] - -jobs: - file-changes: - name: Detect File Changes - runs-on: 'ubuntu-latest' - outputs: - checkall: ${{ steps.changes.outputs.checkall }} - steps: - - name: Clone - uses: actions/checkout@v4 - - - name: Detect Changes - uses: dorny/paths-filter@v3 - id: changes - with: - filters: ".github/file-filter.yml" - - run: - name: Coverage Test on CodeCov - if: needs.file-changes.outputs.checkall == 'true' - needs: file-changes - runs-on: "ubuntu-latest" - steps: - - name: Checkouts - uses: actions/checkout@v4 - - - name: Setup Ubuntu - run: | - sudo apt update -y - sudo apt install -y tar wget make cmake gcc g++ python3 python3-dev "openmpi-*" libopenmpi-dev - - - name: Build - run: /bin/bash mfc.sh build -j $(nproc) --gcov - - - name: Test - run: /bin/bash mfc.sh test -a -j $(nproc) - - - name: Upload coverage reports to Codecov - uses: codecov/codecov-action@v4.6.0 - with: - fail_ci_if_error: false - name: mfc-coverage - verbose: true - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - +coverage: + status: + project: + default: + target: 1% + threshold: 1% diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml new file mode 100644 index 0000000000..7487d8e550 --- /dev/null +++ b/.github/workflows/coverage.yml @@ -0,0 +1,48 @@ +name: Coverage Check + +on: [push, pull_request, workflow_dispatch] + +jobs: + file-changes: + name: Detect File Changes + runs-on: 'ubuntu-latest' + outputs: + checkall: ${{ steps.changes.outputs.checkall }} + steps: + - name: Clone + uses: actions/checkout@v4 + + - name: Detect Changes + uses: dorny/paths-filter@v3 + id: changes + with: + filters: ".github/file-filter.yml" + + run: + name: Coverage Test on CodeCov + if: needs.file-changes.outputs.checkall == 'true' + needs: file-changes + runs-on: "ubuntu-latest" + steps: + - name: Checkouts + uses: actions/checkout@v4 + + - name: Setup Ubuntu + run: | + sudo apt update -y + sudo apt install -y tar wget make cmake gcc g++ python3 python3-dev "openmpi-*" libopenmpi-dev + + - name: Build + run: /bin/bash mfc.sh build -j $(nproc) --gcov + + - name: Test + run: /bin/bash mfc.sh test -a -j $(nproc) + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v4 + with: + fail_ci_if_error: false + verbose: true + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + diff --git a/src/post_process/m_data_output.fpp b/src/post_process/m_data_output.fpp index 7aa7e87391..b29e5ab01f 100644 --- a/src/post_process/m_data_output.fpp +++ b/src/post_process/m_data_output.fpp @@ -113,7 +113,7 @@ contains logical :: dir_check ! Generic loop iterator - integer :: i + integer :: i, k ,l ! Allocating the generic storage for the flow variable(s) that are ! going to be written to the formatted database file(s). Note once