Skip to content

Commit

Permalink
attempt to fix Mac build
Browse files Browse the repository at this point in the history
  • Loading branch information
cgcgcg committed Oct 29, 2023
1 parent 50b9726 commit 089d4de
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: CI

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
# push:
# branches: [ "master" ]
# pull_request:
# branches: [ "master" ]
workflow_dispatch:

jobs:
Expand Down
14 changes: 10 additions & 4 deletions .github/workflows/mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
name: CI MacOS

on:
pull_request:
branches: [ "master" ]
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -33,7 +35,7 @@ jobs:
id: ccache-restore
uses: actions/cache/restore@v3
with:
path: /home/runner/.cache/ccache
path: /Users/runner/Library/Caches/ccache
key: ccache-mac-${{ matrix.py-version }}

- name: Setup GNU Fortran
Expand Down Expand Up @@ -73,7 +75,7 @@ jobs:
if: always()
uses: actions/cache/save@v3
with:
path: /home/runner/.cache/ccache
path: /Users/runner/Library/Caches/ccache
key: ccache-mac-${{ matrix.py-version }}

- name: Ccache report
Expand All @@ -82,11 +84,15 @@ jobs:

- name: Run tests
if: always()
run: drivers/runFractional.py --hdf5Output=data.hdf5 --skipPlots --saveOperators
run: |
drivers/runFractional.py --hdf5Output=dense.hdf5 --skipPlots --saveOperators --matrixFormat=dense
drivers/runFractional.py --hdf5Output=h2.hdf5 --skipPlots --saveOperators
- name: Archive test results
uses: actions/upload-artifact@v3
if: always()
with:
name: Test results
path: data.hdf5
path: |
dense.hdf5
h2.hdf5
1 change: 1 addition & 0 deletions nl/PyNucleus_nl/nonlocalAssembly.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,7 @@ cdef INDEX_t[:, ::1] boundaryVertices(INDEX_t[:, ::1] cells, indexSet cellIds):
while it.step():
i = it.i
c0, c1 = cells[i, 0], cells[i, 1]
print(i, c0, c1)
try:
bvertices.remove(c0)
except KeyError:
Expand Down
5 changes: 5 additions & 0 deletions nl/PyNucleus_nl/nonlocalAssembly_{SCALAR}.pxi
Original file line number Diff line number Diff line change
Expand Up @@ -1813,6 +1813,10 @@ cdef class {SCALAR_label}nonlocalBuilder:
# surface of the union of clusters n1 and n2
if self.mesh.dim == 1:
surface_cells = boundaryVertices(cells, cluster.cellsUnion)
print()
print(cluster.n1.id, cluster.n2.id, cluster.cellsUnion.toSet())
print(np.array(surface_cells))
# assert surface_cells.shape[0] == 2
elif self.mesh.dim == 2:
surface_cells = boundaryEdges(cells, cluster.cellsUnion)
else:
Expand All @@ -1832,6 +1836,7 @@ cdef class {SCALAR_label}nonlocalBuilder:
self.local_matrix_zeroExterior.setCell2(cellNo2)
panel = self.local_matrix_zeroExterior.getPanelType()
self.local_matrix_zeroExterior.eval(contribZeroExterior, panel, mask)
# print(cellNo1, cellNo2, panel, np.array(contribZeroExterior))
if self.local_matrix_zeroExterior.symmetricLocalMatrix:
iM.addToMatrixElemSymMasked(contribZeroExterior, 1., mask)
else:
Expand Down

0 comments on commit 089d4de

Please sign in to comment.