From 1638b5a9b4aba7ffba002c86d5262a379a641ddb Mon Sep 17 00:00:00 2001 From: JordiManyer Date: Thu, 18 Jul 2024 22:45:49 +1000 Subject: [PATCH] Updated NEWS and bumped release --- NEWS.md | 6 ++++++ Project.toml | 4 ++-- src/Adaptivity.jl | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/NEWS.md b/NEWS.md index d52db39..eceb575 100644 --- a/NEWS.md +++ b/NEWS.md @@ -5,6 +5,12 @@ 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). +## [0.4.3] 2024-07-18 + +### Added + +- Added distributed refinement of unstructured meshes. Since PR[#149](https://github.com/gridap/GridapDistributed.jl/pull/149). + ## [0.4.2] 2024-07-4 ### Added diff --git a/Project.toml b/Project.toml index 9255dfd..00162ac 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "GridapDistributed" uuid = "f9701e48-63b3-45aa-9a63-9bc6c271f355" authors = ["S. Badia ", "A. F. Martin ", "F. Verdugo "] -version = "0.4.2" +version = "0.4.3" [deps] BlockArrays = "8e7c35d0-a365-5155-bbbb-fb81a777f24e" @@ -17,7 +17,7 @@ WriteVTK = "64499a7a-5c06-52f2-abe2-ccb03c286192" [compat] BlockArrays = "0.16.38" FillArrays = "0.8.4,1" -Gridap = "0.18" +Gridap = "0.18.3" LinearAlgebra = "1.3" MPI = "0.16, 0.17, 0.18, 0.19, 0.20" PartitionedArrays = "0.3.3" diff --git a/src/Adaptivity.jl b/src/Adaptivity.jl index 77dcd87..1ce6bb9 100644 --- a/src/Adaptivity.jl +++ b/src/Adaptivity.jl @@ -642,6 +642,10 @@ function redistribute_cartesian( > Old: $(repr("text/plain",old_model.metadata)) > New: $(repr("text/plain",_new_model.metadata)) " + msg1 = "Both models should have the same number of cells for redistribution!" + @check old_model.metadata.descriptor.partition == ncells msg1 + msg2 = "Only redistribution to a higher number of processors is supported!" + @check prod(old_model.metadata.mesh_partition) <= prod(new_parts) msg2 end rglue = get_cartesian_redistribute_glue(_new_model,old_model;old_ranks) @@ -1105,7 +1109,6 @@ function refine_cell_gids( own2global = own_to_global(own_gids) - n_nbors = length(ghost_lids) n_own = length(own_lids) n_ghost = length(ghost_lids.data) local2global = fill(0,n_own+n_ghost)