Skip to content
Snippets Groups Projects
Commit 6e07bbd4 authored by Christos Anastopoulos's avatar Christos Anastopoulos
Browse files

GsfMaterialMixtureConvolution, use std::array to keep track of which...

GsfMaterialMixtureConvolution, use std::array to keep track of which components are merged given we use std::array for the components per-se
parent 7f7594c9
No related branches found
No related tags found
No related merge requests found
......@@ -107,6 +107,11 @@ struct Component1DArray
int32_t numComponents = 0;
};
/* typedef tracking which component has been merged
*/
using IsMergedArray = std::array<bool,GSFConstants::maxComponentsAfterConvolution>;
/**
* @brief Merge the componentsIn and return
* which componets got merged
......
......@@ -349,7 +349,7 @@ Trk::GsfMaterialMixtureConvolution::update(
// Merge components
MultiComponentStateAssembler::Cache assemblerCache;
int nMerges(0);
std::vector<bool> isMerged(n, false);
GSFUtils::IsMergedArray isMerged={};
for (const auto& mergePair : merges) {
const int8_t mini = mergePair.first;
const int8_t minj = mergePair.second;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment