Skip to content
Extraits de code Groupes Projets
Valider 994ebb13 rédigé par Hugo TRACHINO's avatar Hugo TRACHINO
Parcourir les fichiers

parrallel part 1

parent 525d2d6e
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -16,6 +16,7 @@ namespace Transform ...@@ -16,6 +16,7 @@ namespace Transform
// NOTE: // NOTE:
// to generate a point from a parameter i, you can use : // to generate a point from a parameter i, you can use :
ComplexMatrix res(xiVector.size(), startIndexes.size()); ComplexMatrix res(xiVector.size(), startIndexes.size());
#pragma omp parallel for
for(unsigned int i = 0; i < xiVector.size(); i ++){ for(unsigned int i = 0; i < xiVector.size(); i ++){
Point endPoint(startPoint.omega, startPoint.size, xiVector[i]); Point endPoint(startPoint.omega, startPoint.size, xiVector[i]);
std::vector<unsigned int> indexesResult = Follow::adaptativStep(startPoint, endPoint, startIndexes, distanceThreshold, minstepsize); std::vector<unsigned int> indexesResult = Follow::adaptativStep(startPoint, endPoint, startIndexes, distanceThreshold, minstepsize);
...@@ -40,9 +41,12 @@ namespace Transform ...@@ -40,9 +41,12 @@ namespace Transform
{ {
// NOTE: identical to the previous function but dumps all eigenvalues produced, not just targets, to outCsv // NOTE: identical to the previous function but dumps all eigenvalues produced, not just targets, to outCsv
// //
ComplexMatrix res(xiVector.size(), startIndexes.size()); ComplexMatrix res(xiVector.size(), startIndexes.size());
#pragma omp parallel for std::cout << "Entered linear path..." << std::endl;
#pragma omp parallel for
for(unsigned int i = 0; i < xiVector.size(); i ++){ for(unsigned int i = 0; i < xiVector.size(); i ++){
std::cout << i << std::endl;
Point endPoint(startPoint.omega, startPoint.size, xiVector[i]); Point endPoint(startPoint.omega, startPoint.size, xiVector[i]);
std::vector<unsigned int> indexesResult = Follow::adaptativStep(startPoint, endPoint, startIndexes, distanceThreshold, minstepsize); std::vector<unsigned int> indexesResult = Follow::adaptativStep(startPoint, endPoint, startIndexes, distanceThreshold, minstepsize);
ComplexVector v(indexesResult.size()); ComplexVector v(indexesResult.size());
...@@ -54,6 +58,7 @@ namespace Transform ...@@ -54,6 +58,7 @@ namespace Transform
// //
// to follow several targets from a point to another, you can use : // to follow several targets from a point to another, you can use :
} }
return res; return res;
// to output the eigenvalues of a point, you can use : // to output the eigenvalues of a point, you can use :
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter