Skip to content

Commit

Permalink
Merge pull request #168 from fverdugo/p_block_arrays
Browse files Browse the repository at this point in the history
Experimental support for block arrays
  • Loading branch information
fverdugo authored Aug 21, 2024
2 parents 11ded45 + 37ad378 commit e23f75f
Show file tree
Hide file tree
Showing 14 changed files with 718 additions and 49 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,18 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## "master" branch

### Added

- Function `array_of_tuples`.
- Export statement for `local_permutation`.
- Experimental support for block arrays via types `BRange`, `BVector`, `BMatrix`, and `BArray`.

## [0.5.3] - 2024-08-16

### Fixed

- Typo: `node_coorinates_unit_cube` -> `node_coordinates_unit_cube`.
- Bug in `nullspace_linear_elasticity`.
- Bug in `PVector` when working in split format.
Expand Down
2 changes: 2 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ authors = ["Francesc Verdugo <[email protected]> and contributors"]
version = "0.5.3"

[deps]
BlockArrays = "8e7c35d0-a365-5155-bbbb-fb81a777f24e"
CircularArrays = "7a955b69-7140-5f4e-a0ed-f168c5e2e749"
Distances = "b4f34e82-e78d-54a5-968a-f98e89d6e8f7"
FillArrays = "1a297f60-69ca-5386-bcde-b61e274b549b"
Expand All @@ -17,6 +18,7 @@ SparseMatricesCSR = "a0a7dd2c-ebf4-11e9-1f05-cf50bc540ca1"
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"

[compat]
BlockArrays = "0.16"
CircularArrays = "1"
Distances = "0.10"
FillArrays = "0.10, 0.11, 0.12, 0.13, 1"
Expand Down
1 change: 1 addition & 0 deletions docs/src/reference/arraymethods.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ MAIN
i_am_main
map_main
tuple_of_arrays
array_of_tuples
```
9 changes: 9 additions & 0 deletions src/PartitionedArrays.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ using StaticArrays
import MPI
import IterativeSolvers
import Distances
using BlockArrays

export length_to_ptrs!
export rewind_ptrs!
Expand All @@ -28,6 +29,7 @@ include("sparse_utils.jl")
export linear_indices
export cartesian_indices
export tuple_of_arrays
export array_of_tuples
export i_am_main
export MAIN
export map_main
Expand Down Expand Up @@ -95,6 +97,7 @@ export own_to_local
export ghost_to_local
export local_to_own
export local_to_ghost
export local_permutation
export global_to_owner
export replace_ghost
export remove_ghost
Expand Down Expand Up @@ -171,6 +174,12 @@ export spmtm!
export centralize
include("p_sparse_matrix.jl")

export BRange
export BArray
export BVector
export BMatrix
include("block_arrays.jl")

export PTimer
export tic!
export toc!
Expand Down
Loading

0 comments on commit e23f75f

Please sign in to comment.