Skip to content

Commit

Permalink
Use PETSc 3.22.2 in CI (#4301)
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiqunZhang authored Jan 18, 2025
1 parent 90373e7 commit 59fb603
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/petsc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
uses: ./.github/workflows/check_changes.yml

test-petsc-cpu-2d:
name: GCC 2D EB PETSc@3.18.1
name: GCC 2D EB PETSc
runs-on: ubuntu-latest
needs: check_changes
if: needs.check_changes.outputs.has_non_docs_changes == 'true'
Expand All @@ -31,11 +31,12 @@ jobs:
ccache-${{ github.workflow }}-${{ github.job }}-git-
- name: Build PETSc
run: |
wget -q https://github.com/petsc/petsc/archive/refs/tags/v3.18.1.tar.gz
tar xfz v3.18.1.tar.gz
cd petsc-3.18.1
sudo apt-get install -y --no-install-recommends libblas-dev liblapack-dev
wget -q https://github.com/petsc/petsc/archive/refs/tags/v3.22.2.tar.gz
tar xfz v3.22.2.tar.gz
cd petsc-3.22.2
export PETSC_DIR=${PWD}
./configure --prefix=${PWD}/petsc
./configure --prefix=${PWD}/petsc --with-fortran-bindings=no --with-x=no
make -j 4
make install
cd ../
Expand All @@ -48,7 +49,7 @@ jobs:
export CCACHE_LOGFILE=${{ github.workspace }}/ccache.log.txt
ccache -z
export AMREX_PETSC_HOME=${PWD}/petsc-3.18.1/petsc
export AMREX_PETSC_HOME=${PWD}/petsc-3.22.2/petsc
cd Tests/LinearSolvers/CellEB
make -j4 USE_MPI=TRUE USE_PETSC=TRUE DIM=2 TEST=TRUE \
CCACHE=ccache
Expand Down
2 changes: 1 addition & 1 deletion Tools/GNUMake/packages/Make.petsc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ifdef AMREX_PETSC_HOME
SYSTEM_INCLUDE_LOCATIONS += $(PETSC_ABSPATH)/include
LIBRARY_LOCATIONS += $(PETSC_ABSPATH)/lib
ifndef CRAY_PETSC_VERSION
LIBRARIES += -Wl,-rpath,$(PETSC_ABSPATH)/lib -lpetsc -llapack -lblas -lX11 -ldl
LIBRARIES += -Wl,-rpath,$(PETSC_ABSPATH)/lib -lpetsc
endif
endif

0 comments on commit 59fb603

Please sign in to comment.