Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
- [[PR 1172]](https://github.com/parthenon-hpc-lab/parthenon/pull/1172) Make parthenon manager robust against external MPI init and finalize calls

### Fixed (not changing behavior/API/variables/...)
- [[PR 1249]](https://github.com/parthenon-hpc-lab/parthenon/pull/1249) Fix flux metadata propagation in sparse pools
- [[PR 1241]](https://github.com/parthenon-hpc-lab/parthenon/pull/1241) Emit an error message when using uninitialized multigrid blocks
- [[PR 1248]](https://github.com/parthenon-hpc-lab/parthenon/pull/1248) Fix edge case regarding AMR de-refinement logic
- [[PR 1240]](https://github.com/parthenon-hpc-lab/parthenon/pull/1240) Fix I/O for CellMemAligned variables
Expand Down
7 changes: 5 additions & 2 deletions src/interface/sparse_pool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,13 @@ MakeSparseVarMetadataImpl(Metadata *in, const std::vector<int> &shape,
const MetadataFlag *vector_tensor,
const std::vector<std::string> &component_labels) {
// copy shared metadata
auto flx_metadata = in->IsSet(Metadata::WithFluxes) ? in->GetSPtrFluxMetadata()
: std::make_shared<Metadata>();
auto this_metadata = std::make_shared<Metadata>(
in->Flags(), shape.size() > 0 ? shape : in->Shape(),
in->Flags(), flx_metadata->Flags(), shape.size() > 0 ? shape : in->Shape(),
component_labels.size() > 0 ? component_labels : in->getComponentLabels(),
in->getAssociated(), in->GetRefinementFunctions());
in->getAssociated(), in->GetRefinementFunctions(),
flx_metadata->GetRefinementFunctions());

this_metadata->SetSparseThresholds(in->GetAllocationThreshold(),
in->GetDeallocationThreshold(),
Expand Down
Loading