-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from zjwegert/src_refactor_and_docs
Documenter and refactor
- Loading branch information
Showing
119 changed files
with
5,243 additions
and
1,181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: TagBot | ||
on: | ||
issue_comment: | ||
types: | ||
- created | ||
workflow_dispatch: | ||
jobs: | ||
TagBot: | ||
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: JuliaRegistries/TagBot@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
ssh: ${{ secrets.DOCUMENTER_KEY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: CI | ||
on: [push, pull_request] | ||
jobs: | ||
test: | ||
name: Tests ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
version: | ||
- '1.9' | ||
os: | ||
- ubuntu-latest | ||
arch: | ||
- x64 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: julia-actions/setup-julia@v1 | ||
with: | ||
version: ${{ matrix.version }} | ||
arch: ${{ matrix.arch }} | ||
- uses: actions/cache@v1 | ||
env: | ||
cache-name: cache-artifacts | ||
with: | ||
path: ~/.julia/artifacts | ||
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} | ||
restore-keys: | | ||
${{ runner.os }}-test-${{ env.cache-name }}- | ||
${{ runner.os }}-test- | ||
${{ runner.os }}- | ||
- uses: julia-actions/julia-buildpkg@v1 | ||
- uses: julia-actions/julia-runtest@v1 | ||
- uses: julia-actions/julia-processcoverage@v1 | ||
- uses: codecov/codecov-action@v1 | ||
with: | ||
file: ./lcov.info | ||
|
||
# docs: | ||
# name: Documentation | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# - uses: julia-actions/setup-julia@v1 | ||
# with: | ||
# version: '1.9' | ||
# - run: | | ||
# julia --project=docs -e ' | ||
# using Pkg | ||
# Pkg.develop(PackageSpec(path=pwd())) | ||
# Pkg.instantiate()' | ||
# - run: julia --project=docs docs/make.jl | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
name: CI_MPI | ||
on: [push, pull_request] | ||
jobs: | ||
test: | ||
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
P4EST_ROOT_DIR: "/opt/p4est/2.2/" | ||
JULIA_PETSC_LIBRARY: "/opt/petsc/3.18/lib/libpetsc" | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
version: | ||
- '1.9' | ||
os: | ||
- ubuntu-latest | ||
arch: | ||
- x64 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Cache p4est | ||
id: cache-p4est | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{env.P4EST_ROOT_DIR}} | ||
key: ${{ runner.os }}-build-${{ env.P4EST_ROOT_DIR }}- | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.P4EST_ROOT_DIR }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
- uses: julia-actions/setup-julia@v1 | ||
with: | ||
version: ${{ matrix.version }} | ||
arch: ${{ matrix.arch }} | ||
- name: Install p4est/petsc dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y wget gfortran g++ openmpi-bin libopenmpi-dev | ||
- name: Install petsc | ||
run: | | ||
CURR_DIR=$(pwd) | ||
PACKAGE=petsc | ||
VERSION=3.18 | ||
INSTALL_ROOT=/opt | ||
PETSC_INSTALL=$INSTALL_ROOT/$PACKAGE/$VERSION | ||
TAR_FILE=$PACKAGE-$VERSION.tar.gz | ||
URL="https://ftp.mcs.anl.gov/pub/petsc/release-snapshots/" | ||
ROOT_DIR=/tmp | ||
SOURCES_DIR=$ROOT_DIR/$PACKAGE-$VERSION | ||
BUILD_DIR=$SOURCES_DIR/build | ||
wget -q $URL/$TAR_FILE -O $ROOT_DIR/$TAR_FILE | ||
mkdir -p $SOURCES_DIR | ||
tar xzf $ROOT_DIR/$TAR_FILE -C $SOURCES_DIR --strip-components=1 | ||
cd $SOURCES_DIR | ||
./configure --prefix=$PETSC_INSTALL --with-cc=mpicc --with-cxx=mpicxx --with-fc=mpif90 \ | ||
--download-mumps --download-scalapack --download-parmetis --download-metis \ | ||
--download-ptscotch --with-debugging --with-x=0 --with-shared=1 \ | ||
--with-mpi=1 --with-64-bit-indices | ||
make | ||
make install | ||
- uses: julia-actions/julia-buildpkg@latest | ||
- run: echo $PWD | ||
- run: julia --project=. -e 'using Pkg; Pkg.instantiate();' | ||
- run: julia --project=. -e 'using Pkg; Pkg.add("MPIPreferences")' | ||
- run: julia --project=. -e 'using MPIPreferences; MPIPreferences.use_system_binary()' | ||
- run: julia --project=. -e 'using Pkg; Pkg.build(); Pkg.precompile()' | ||
- run: julia --project=. --color=yes --check-bounds=yes test/mpi/runtests.jl | ||
- uses: codecov/codecov-action@v1 | ||
with: | ||
file: lcov.info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,4 +28,4 @@ results/* | |
# environment. | ||
Manifest.toml | ||
LocalPreferences.toml | ||
LSTO_Distributed.so | ||
LevelSetTopOpt.so |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name = "LSTO_Distributed" | ||
name = "LevelSetTopOpt" | ||
uuid = "27dd0110-1916-4fd6-8b4b-1bc109db1170" | ||
authors = ["Zach Wegert <[email protected]>", "JordiManyer <[email protected]>"] | ||
version = "0.1.0" | ||
|
@@ -24,7 +24,7 @@ PartitionedArrays = "5a9dfac6-5c52-46f7-8278-5e2210713be9" | |
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7" | ||
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf" | ||
SparseMatricesCSR = "a0a7dd2c-ebf4-11e9-1f05-cf50bc540ca1" | ||
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f" | ||
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" | ||
|
||
[extras] | ||
MPIPreferences = "3da0fdf6-3ccc-4f1b-acd9-58baa6c99267" |
Oops, something went wrong.