From c52dc3843e24eb8efb85938750fd6b829fcc43b1 Mon Sep 17 00:00:00 2001 From: Seung-Ju Hong Date: Wed, 3 Apr 2024 16:34:59 +0900 Subject: [PATCH 1/3] Create ci.yaml --- .github/workflows/ci.yaml | 50 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 00000000..3a8f7e72 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,50 @@ +name: CI +run-name: > + CI (${{ github.event_name }}) + ${{ github.event_name == 'pull_request' && format('PR#{0}', github.event.number) || '' }} +on: + workflow_dispatch: + pull_request: + branches: [ develop ] + push: + branches: [ develop ] + +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + pre-commit: + name: pre-commit + uses: ./.github/workflows/step_pre-commit.yaml + + tests: + name: test + needs: [ pre-commit ] + uses: ./.github/workflows/step_test.yaml + with: + mask-experimental: ${{ github.event_name == 'push' }} + + tests-makefile: + name: test Makefile + needs: [ pre-commit ] + uses: ./.github/workflows/step_test-makefile.yaml + + docs: + name: 📘 docs + needs: [ pre-commit ] + uses: ./.github/workflows/step_docs.yaml + + pass: + name: ✅ Pass + needs: [ pre-commit, tests, tests-makefile, docs ] + runs-on: ubuntu-latest + steps: + - name: Check all CI jobs + uses: re-actors/alls-green@release/v1 + with: + jobs: ${{ toJSON(needs) }} + if: always() From bf2ca5f37d3446de932229ca210dbb271519d4e6 Mon Sep 17 00:00:00 2001 From: sjhong6230 Date: Wed, 3 Apr 2024 17:59:50 +0900 Subject: [PATCH 2/3] Revert --- .github/workflows/ci.yaml | 50 --------------------------------------- 1 file changed, 50 deletions(-) delete mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml deleted file mode 100644 index 3a8f7e72..00000000 --- a/.github/workflows/ci.yaml +++ /dev/null @@ -1,50 +0,0 @@ -name: CI -run-name: > - CI (${{ github.event_name }}) - ${{ github.event_name == 'pull_request' && format('PR#{0}', github.event.number) || '' }} -on: - workflow_dispatch: - pull_request: - branches: [ develop ] - push: - branches: [ develop ] - -permissions: - contents: read - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - pre-commit: - name: pre-commit - uses: ./.github/workflows/step_pre-commit.yaml - - tests: - name: test - needs: [ pre-commit ] - uses: ./.github/workflows/step_test.yaml - with: - mask-experimental: ${{ github.event_name == 'push' }} - - tests-makefile: - name: test Makefile - needs: [ pre-commit ] - uses: ./.github/workflows/step_test-makefile.yaml - - docs: - name: 📘 docs - needs: [ pre-commit ] - uses: ./.github/workflows/step_docs.yaml - - pass: - name: ✅ Pass - needs: [ pre-commit, tests, tests-makefile, docs ] - runs-on: ubuntu-latest - steps: - - name: Check all CI jobs - uses: re-actors/alls-green@release/v1 - with: - jobs: ${{ toJSON(needs) }} - if: always() From 70a5db9cee9a59d6074ac20d443dbcf00924eb58 Mon Sep 17 00:00:00 2001 From: Seung-Ju Hong Date: Mon, 29 Apr 2024 03:20:38 +0900 Subject: [PATCH 3/3] Fixed bug in writing checkpoint file --- src/wannier_prog.F90 | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/wannier_prog.F90 b/src/wannier_prog.F90 index b6fe4282..f9163c1e 100644 --- a/src/wannier_prog.F90 +++ b/src/wannier_prog.F90 @@ -645,19 +645,15 @@ subroutine write_chkpt(common_data, label, istdout, istderr, ierr) return endif - u(:, :, :) = 0.d0 - uopt(:, :, :) = 0.d0 + u(:, :, :) = common_data%u_matrix + uopt(:, :, :) = common_data%u_opt m(:, :, :, :) = 0.d0 do ikl = 1, nkrank ikg = global_k(ikl) - u(:, :, ikg) = common_data%u_matrix(:, :, ikl) - uopt(:, :, ikg) = common_data%u_opt(:, :, ikl) m(:, :, :, ikg) = common_data%m_matrix_local(1:nw, 1:nw, :, ikl) enddo - call comms_reduce(u(1, 1, 1), nw*nw*nk, 'SUM', error, common_data%comm) - call comms_reduce(uopt(1, 1, 1), nb*nw*nk, 'SUM', error, common_data%comm) call comms_reduce(m(1, 1, 1, 1), nw*nw*nn*nk, 'SUM', error, common_data%comm) if (allocated(error)) then call prterr(error, ierr, istdout, istderr, common_data%comm)