Skip to content
Snippets Groups Projects
Commit 5f45ef68 authored by Giovanni La Mura's avatar Giovanni La Mura
Browse files

Update parallel description comments

parent 11386413
Branches
Tags
No related merge requests found
...@@ -326,6 +326,9 @@ void cluster(const string& config_file, const string& data_file, const string& o ...@@ -326,6 +326,9 @@ void cluster(const string& config_file, const string& data_file, const string& o
return; return;
} }
//==================================================
// do the first outputs here, so that I open here the new files, afterwards I only append
//==================================================
vtppoanp->write_to_disk(output_path + "/c_TPPOAN"); vtppoanp->write_to_disk(output_path + "/c_TPPOAN");
delete vtppoanp; delete vtppoanp;
...@@ -420,8 +423,8 @@ void cluster(const string& config_file, const string& data_file, const string& o ...@@ -420,8 +423,8 @@ void cluster(const string& config_file, const string& data_file, const string& o
// the parallel loop over MPI processes covers a different set of indices for each thread // the parallel loop over MPI processes covers a different set of indices for each thread
#pragma omp barrier #pragma omp barrier
int myjxi488 = ixi488+myompthread; int myjxi488 = ixi488+myompthread;
vtppoanp_2 = new VirtualBinaryFile();
// each thread opens new virtual files and stores their pointers in the shared array // each thread opens new virtual files and stores their pointers in the shared array
vtppoanp_2 = new VirtualBinaryFile();
// each thread puts a copy of the pointers to its virtual files in the shared arrays // each thread puts a copy of the pointers to its virtual files in the shared arrays
vtppoanarray[myompthread] = vtppoanp_2; vtppoanarray[myompthread] = vtppoanp_2;
#pragma omp barrier #pragma omp barrier
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment