Skip to content

Commit de99b36

Browse files
authored
Merge branch 'JuliaLinearAlgebra:master' into patch-2
2 parents 1a98575 + 60320d4 commit de99b36

18 files changed

+293
-141
lines changed

.github/workflows/CompatHelper.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: CompatHelper
2+
3+
on:
4+
schedule:
5+
- cron: '00 00 * * *'
6+
7+
jobs:
8+
CompatHelper:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: julia-actions/setup-julia@latest
12+
with:
13+
version: 1
14+
- name: Pkg.add("CompatHelper")
15+
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
16+
- name: CompatHelper.main()
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
run: julia -e 'using CompatHelper; CompatHelper.main()'

.github/workflows/Tagbot.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: TagBot
2+
on:
3+
issue_comment:
4+
types:
5+
- created
6+
workflow_dispatch:
7+
jobs:
8+
TagBot:
9+
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: JuliaRegistries/TagBot@v1
13+
with:
14+
token: ${{ secrets.GITHUB_TOKEN }}
15+
ssh: ${{ secrets.DOCUMENTER_KEY }}

.github/workflows/ci.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: CI
2+
env:
3+
JULIA_NUM_THREADS: 2
4+
on:
5+
pull_request:
6+
branches:
7+
- master
8+
push:
9+
branches:
10+
- master
11+
tags: '*'
12+
jobs:
13+
test:
14+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
15+
runs-on: ${{ matrix.os }}
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
version:
20+
- '1'
21+
os:
22+
- ubuntu-latest
23+
- macos-latest
24+
- windows-latest
25+
arch:
26+
- x64
27+
steps:
28+
- uses: actions/checkout@v2
29+
- uses: julia-actions/setup-julia@v1
30+
with:
31+
version: ${{ matrix.version }}
32+
arch: ${{ matrix.arch }}
33+
- uses: actions/cache@v1
34+
env:
35+
cache-name: cache-artifacts
36+
with:
37+
path: ~/.julia/artifacts
38+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
39+
restore-keys: |
40+
${{ runner.os }}-test-${{ env.cache-name }}-
41+
${{ runner.os }}-test-
42+
${{ runner.os }}-
43+
- uses: julia-actions/julia-buildpkg@v1
44+
- uses: julia-actions/julia-runtest@v1
45+
- uses: julia-actions/julia-processcoverage@v1
46+
- uses: codecov/codecov-action@v1
47+
with:
48+
file: lcov.info
49+

.travis.yml

Lines changed: 10 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,16 @@
1-
## Documentation: http://docs.travis-ci.com/user/languages/julia/
1+
# Documentation: http://docs.travis-ci.com/user/languages/julia/
22
language: julia
3+
julia:
4+
- 1.4
35
os:
46
- linux
5-
julia:
6-
- 0.6
7-
- 0.7
8-
- 1.0
9-
- 1.1
10-
- nightly
7+
branches:
8+
only:
9+
- master
1110
notifications:
1211
email: false
13-
git:
14-
depth: 99999999
15-
16-
## uncomment the following lines to allow failures on nightly julia
17-
## (tests will run but not make your overall status red)
18-
matrix:
19-
allow_failures:
20-
- julia: nightly
21-
22-
## uncomment and modify the following lines to manually install system packages
23-
addons:
24-
apt: # apt-get for linux
25-
packages:
26-
- hdf5-tools
27-
#before_script: # homebrew for mac
28-
# - if [ $TRAVIS_OS_NAME = osx ]; then brew install gcc; fi
29-
30-
## uncomment the following lines to override the default test script
31-
script:
32-
- julia -e 'VERSION >= v"0.7-" && using Pkg; Pkg.clone(pwd()); Pkg.build("AlgebraicMultigrid"); Pkg.test("AlgebraicMultigrid"; coverage=true)'
3312
after_success:
34-
# push coverage results to Coveralls
35-
- julia -e 'cd(Pkg.dir("AlgebraicMultigrid")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'
36-
# push coverage results to Codecov
37-
- julia -e 'cd(Pkg.dir("AlgebraicMultigrid")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'
13+
- julia -e 'using Pkg;
14+
Pkg.add("Coverage");
15+
using Coverage;
16+
Coveralls.submit(Coveralls.process_folder())'

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The AMG.jl package is licensed under the MIT "Expat" License:
22

3-
> Copyright (c) 2017: ranjanan.
3+
> Copyright (c) 2017-20: ranjanan, Julia Computing.
44
>
55
> Permission is hereby granted, free of charge, to any person obtaining a copy
66
> of this software and associated documentation files (the "Software"), to deal

Project.toml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name = "AlgebraicMultigrid"
2+
uuid = "2169fc97-5a83-5252-b627-83903c6c433c"
3+
version = "0.4.0"
4+
5+
[deps]
6+
CompatHelper = "aa819f21-2bde-4658-8897-bab36330d9b7"
7+
DelimitedFiles = "8bb1440f-4735-579b-a4ab-409b98df4dab"
8+
IterativeSolvers = "42fd0dbc-a981-5370-80f2-aaf504508153"
9+
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
10+
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
11+
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
12+
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
13+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
14+
15+
[compat]
16+
CompatHelper = "1.3.0, 2.1, 3"
17+
IterativeSolvers = "0.9"
18+
julia = "1.4.0"
19+
20+
[extras]
21+
FileIO = "5789e2e9-d7fb-5bc7-8068-2c6fae9b9549"
22+
JLD2 = "033835bb-8acc-5ee8-8aae-3f567f8a3819"
23+
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
24+
25+
[targets]
26+
test = ["FileIO", "JLD2", "Random"]

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![codecov.io](http://codecov.io/github/JuliaLinearAlgebra/AlgebraicMultigrid.jl/coverage.svg?branch=master)](http://codecov.io/github/JuliaLinearAlgebra/AlgebraicMultigrid.jl?branch=master)
66
[![Build status](https://ci.appveyor.com/api/projects/status/0wnj4lhk1rvl5pjp?svg=true)](https://ci.appveyor.com/project/ranjanan/algebraicmultigrid-jl)
77

8-
This package lets you solve sparse linear systems using Algebraic Multigrid (AMG). This works especially well for symmetric positive definite matrices.
8+
This package lets you solve sparse linear systems using Algebraic Multigrid (AMG). This works especially well for symmetric positive definite matrices.
99

1010
## Usage
1111

@@ -40,18 +40,18 @@ You can use AMG as a preconditioner for Krylov methods such as Conjugate Gradien
4040
```julia
4141
import IterativeSolvers: cg
4242
p = aspreconditioner(ml)
43-
c = cg(A, A*ones(1000), Pl = p)
43+
c = cg(A, A*ones(1000), Pl = p)
4444
```
4545

4646
## Features and Roadmap
4747

48-
This package currently supports:
48+
This package currently supports:
4949

5050
AMG Styles:
5151
* Ruge-Stuben Solver
5252
* Smoothed Aggregation (SA)
5353

54-
Strength of Connection:
54+
Strength of Connection:
5555
* Classical Strength of Connection
5656
* Symmetric Strength of Connection
5757

@@ -60,12 +60,12 @@ Smoothers:
6060
* Damped Jacobi
6161

6262
Cycling:
63-
* V cycle
63+
* V, W and F cycles
6464

6565
In the future, this package will support:
6666
1. Other splitting methods (like CLJP)
6767
2. SOR smoother
68-
3. W, F, AMLI cycles
68+
3. AMLI cycles
6969

7070
#### Acknowledgements
71-
This package has been heavily inspired by the [`PyAMG`](http://github.com/pyamg/pyamg) project.
71+
This package has been heavily inspired by the [`PyAMG`](http://github.com/pyamg/pyamg) project.

REQUIRE

Lines changed: 0 additions & 3 deletions
This file was deleted.

appveyor.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
environment:
22
matrix:
3-
- julia_version: 1.1
4-
- julia_version: 1.0
5-
- julia_version: 0.6
3+
- julia_version: 1.4
64

75
platform:
8-
- x86 # 32-bit
96
- x64 # 64-bit
107

118
# # Uncomment the following lines to allow failures on nightly julia

src/AlgebraicMultigrid.jl

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
module AlgebraicMultigrid
22

33
import IterativeSolvers: gauss_seidel!
4-
using Compat, Compat.LinearAlgebra
5-
using Compat.SparseArrays, Compat.Printf
4+
using LinearAlgebra
5+
using SparseArrays, Printf
66
using Base.Threads
77

8-
using Compat: rmul!
8+
using LinearAlgebra: rmul!
99

10-
if VERSION < v"0.7-"
11-
const mul! = A_mul_B!
12-
end
10+
# const mul! = A_mul_B!
1311

1412
const MT = false
1513
const AMG = AlgebraicMultigrid

0 commit comments

Comments
 (0)