-----------------------------------------------------------------------------
| 26 | |
| 27 | //----------------------------------------------------------------------------- |
| 28 | std::int64_t refinement::impl::local_to_global(std::int32_t local_index, |
| 29 | const common::IndexMap& map) |
| 30 | { |
| 31 | assert(local_index >= 0); |
| 32 | const std::array local_range = map.local_range(); |
| 33 | const std::int32_t local_size = local_range[1] - local_range[0]; |
| 34 | if (local_index < local_size) |
| 35 | { |
| 36 | const std::int64_t global_offset = local_range[0]; |
| 37 | return global_offset + local_index; |
| 38 | } |
| 39 | else |
| 40 | { |
| 41 | std::span ghosts = map.ghosts(); |
| 42 | assert((local_index - local_size) < (int)ghosts.size()); |
| 43 | return ghosts[local_index - local_size]; |
| 44 | } |
| 45 | } |
| 46 | //--------------------------------------------------------------------------------- |
| 47 | void refinement::update_logical_edgefunction( |
| 48 | MPI_Comm comm, |
nothing calls this directly
no test coverage detected