diff --git a/.github/workflows/publish_binary.yml b/.github/workflows/publish_binary.yml deleted file mode 100644 index d5079314..00000000 --- a/.github/workflows/publish_binary.yml +++ /dev/null @@ -1,45 +0,0 @@ -on: - push: - tags: - - 'v*' - workflow_dispatch: - -name: Upload Release Asset - -jobs: - build: - name: Upload Release Asset - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-latest] #, macOS-latest] - steps: - - name: Checkout code - uses: actions/checkout@v2 - - name: Configure CMake (Linux) - if: contains( matrix.os, 'ubuntu') - run: | - cmake -B build -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DENABLE_PYTHON_INTERFACE=OFF -DCMAKE_INSTALL_PREFIX=stage/cppe - ls stage/cppe - zip --junk-paths cppe_binary stage/cppe - ls - - name: Create Release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} - draft: true - prerelease: false - - name: Upload Release Asset - id: upload-release-asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./cppe_binary.zip - asset_name: cppe-${{ github.ref }}-${{ runner.os }}.zip - asset_content_type: application/zip diff --git a/cppe/core/bmatrix.cc b/cppe/core/bmatrix.cc index 2d7d8846..ec77b7ad 100644 --- a/cppe/core/bmatrix.cc +++ b/cppe/core/bmatrix.cc @@ -76,7 +76,7 @@ Eigen::VectorXd BMatrix::apply(const Eigen::VectorXd& induced_moments) { auto scheme = m_options.summation_induced_fields; if (scheme == "direct") { return apply_direct(induced_moments); - } else if (scheme == "fmm" or scheme == "bh") { + } else if (scheme == "fmm") { return apply_fast_summation(induced_moments, scheme); } else { throw std::invalid_argument("Invalid summation scheme for induced fields provided.");