@@ -91,15 +91,15 @@ int ttk::SeparatrixStability::buildMatchingsWithOtherBlocks(
9191 return 1 ;
9292}
9393
94- int ttk::SeparatrixStability::buildOccurenceArraysFull (
94+ int ttk::SeparatrixStability::buildOccurrenceArraysFull (
9595 const std::vector<GraphMatrixFull> &adjacencyMatrices,
9696 const int &n_separatrices,
9797 const std::vector<std::vector<std::array<double , 3 >>> &coordsSource,
9898 const std::vector<std::vector<std::array<double , 3 >>> &coordsDestination,
9999 const std::vector<std::vector<double >> &scalarsSource,
100100 const std::vector<std::vector<double >> &scalarsDestination,
101101 const int &block_id,
102- std::vector<int > &edgeOccurences ,
102+ std::vector<int > &edgeOccurrences ,
103103 std::vector<bool > &isIsomorphicWith,
104104 std::vector<std::vector<int >> &matchingArraySource,
105105 std::vector<std::vector<int >> &matchingArrayDestination,
@@ -119,7 +119,7 @@ int ttk::SeparatrixStability::buildOccurenceArraysFull(
119119 matchingArrayDestination[k].resize (adjacencyMatrices[k][0 ].size (),-2 );
120120 }
121121
122- edgeOccurences .resize (n_separatrices, 1 );
122+ edgeOccurrences .resize (n_separatrices, 1 );
123123
124124 std::vector<std::vector<MatchingType>> matchingsSource (n_blocks - 1 );
125125 std::vector<std::vector<MatchingType>> matchingsDestination (n_blocks - 1 );
@@ -186,7 +186,7 @@ int ttk::SeparatrixStability::buildOccurenceArraysFull(
186186 [thisBlockDestinationId];
187187 int separatriceIdInOtherBlock = adjacencyMatrices[k][otherBlockSourceId]
188188 [otherBlockDestinationId];
189- edgeOccurences [separatriceId]++;
189+ edgeOccurrences [separatriceId]++;
190190 matchingArraySeparatrix[k][separatriceIdInOtherBlock]= separatriceId;
191191 }else if ((adjacencyMatrices[block_id][thisBlockSourceId]
192192 [thisBlockDestinationId]
@@ -238,13 +238,13 @@ void ttk::SeparatrixStability::computeGraphMinor(
238238 }
239239}
240240
241- int ttk::SeparatrixStability::buildOccurenceArraysMinor (
241+ int ttk::SeparatrixStability::buildOccurrenceArraysMinor (
242242 const std::vector<GraphMatrixFull> &adjacencyMatricesFull,
243243 const int &n_separatrices,
244244 const std::vector<std::vector<std::array<double , 3 >>> &coords,
245245 const std::vector<std::vector<double >> &scalars,
246246 const int &block_id,
247- std::vector<int > &edgeOccurences ,
247+ std::vector<int > &edgeOccurrences ,
248248 std::vector<bool > &isIsomorphicWith,
249249 std::vector<std::vector<int >> &matchingArray,
250250 std::vector<std::vector<int >> &matchingArraySeparatrix) {
@@ -270,14 +270,14 @@ int ttk::SeparatrixStability::buildOccurenceArraysMinor(
270270 matchingArray[block_id][i]=i;
271271 }
272272
273- edgeOccurences .resize (n_separatrices);
273+ edgeOccurrences .resize (n_separatrices);
274274
275275 for (int i = 0 ; i < n_pointsThisBlock; i++) {
276276 for (int j = 0 ; j < n_pointsThisBlock; j++) {
277277 if (!adjacencyMatricesMinor[block_id][i][j].empty ()) {;
278278 for (auto edge : adjacencyMatricesMinor[block_id][i][j]) {
279- edgeOccurences [edge.first ] = 1 ;
280- edgeOccurences [edge.second ] = 1 ;
279+ edgeOccurrences [edge.first ] = 1 ;
280+ edgeOccurrences [edge.second ] = 1 ;
281281 }
282282 }
283283 }
@@ -344,8 +344,8 @@ int ttk::SeparatrixStability::buildOccurenceArraysMinor(
344344 for (auto edge : adjacencyMatricesMinor[block_id][thisBlockVertex1]
345345 [thisBlockVertex2]) {
346346 std::pair<int , int > edgeInOtherBlock = adjacencyMatricesMinor[k][otherBlockVertex1][otherBlockVertex2][0 ];
347- edgeOccurences [edge.first ] += existsInOtherBlock;
348- edgeOccurences [edge.second ] += existsInOtherBlock;
347+ edgeOccurrences [edge.first ] += existsInOtherBlock;
348+ edgeOccurrences [edge.second ] += existsInOtherBlock;
349349 matchingArraySeparatrix[k][edgeInOtherBlock.first ]=matchingArraySeparatrix[block_id][edge.first ];
350350 matchingArraySeparatrix[k][edgeInOtherBlock.second ]=matchingArraySeparatrix[block_id][edge.second ];
351351 }
@@ -360,15 +360,15 @@ int ttk::SeparatrixStability::buildOccurenceArraysMinor(
360360 return 1 ;
361361}
362362
363- int ttk::SeparatrixStability::buildOccurenceArrays (
363+ int ttk::SeparatrixStability::buildOccurrenceArrays (
364364 const std::vector<GraphMatrixFull> &adjacencyMatrices,
365365 const std::vector<int > &separatrixCountForEachBlock ,
366366 const std::vector<std::vector<std::array<double , 3 >>> &coordsSource,
367367 const std::vector<std::vector<std::array<double , 3 >>> &coordsDestination,
368368 const std::vector<std::vector<double >> &scalarsSource,
369369 const std::vector<std::vector<double >> &scalarsDestination,
370370 const bool &mergeEdgesOnSaddles,
371- std::vector<std::vector<int >> &edgesOccurencesForEachBlock ,
371+ std::vector<std::vector<int >> &edgesOccurrencesForEachBlock ,
372372 std::vector<std::vector<bool >> &isomorphismForEachBlock,
373373 std::vector<std::vector<std::vector<int >>> &matchingArrayForEachBlockSource,
374374 std::vector<std::vector<std::vector<int >>> &matchingArrayForEachBlockDestination,
@@ -388,16 +388,16 @@ int ttk::SeparatrixStability::buildOccurenceArrays(
388388 #endif // TTK_ENABLE_OPENMP
389389 for (int i = 0 ; i < n_blocks; i++) {
390390 if (!mergeEdgesOnSaddles) {
391- status = this ->buildOccurenceArraysFull (
391+ status = this ->buildOccurrenceArraysFull (
392392 adjacencyMatrices, separatrixCountForEachBlock[i], coordsSource,
393- coordsDestination, scalarsSource, scalarsDestination, i, edgesOccurencesForEachBlock [i], isomorphismForEachBlock[i],
393+ coordsDestination, scalarsSource, scalarsDestination, i, edgesOccurrencesForEachBlock [i], isomorphismForEachBlock[i],
394394 matchingArrayForEachBlockSource[i],
395395 matchingArrayForEachBlockDestination[i],
396396 matchingArraySeparatrixForEachBlock[i]);
397397 } else {
398- status = this ->buildOccurenceArraysMinor (
398+ status = this ->buildOccurrenceArraysMinor (
399399 adjacencyMatrices, separatrixCountForEachBlock[i],
400- coordsDestination, scalarsDestination, i, edgesOccurencesForEachBlock [i], isomorphismForEachBlock[i],
400+ coordsDestination, scalarsDestination, i, edgesOccurrencesForEachBlock [i], isomorphismForEachBlock[i],
401401 matchingArrayForEachBlockDestination[i],
402402 matchingArraySeparatrixForEachBlock[i]);
403403 }
0 commit comments