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

Protect MPI-dependent closing brace with MPI pre-compiler directive

parent 45495e78
Branches
Tags
No related merge requests found
...@@ -482,7 +482,7 @@ void cluster(const string& config_file, const string& data_file, const string& o ...@@ -482,7 +482,7 @@ void cluster(const string& config_file, const string& data_file, const string& o
#endif #endif
#pragma omp barrier #pragma omp barrier
} // close strided loop running on MPI processes } // close strided loop running on MPI processes, ixi488 loop
// delete the shared arrays I used to make available to thread 0 the virtual files of other threads // delete the shared arrays I used to make available to thread 0 the virtual files of other threads
#pragma omp barrier #pragma omp barrier
if (myompthread == 0) { if (myompthread == 0) {
...@@ -633,7 +633,9 @@ void cluster(const string& config_file, const string& data_file, const string& o ...@@ -633,7 +633,9 @@ void cluster(const string& config_file, const string& data_file, const string& o
fclose(timing_file); fclose(timing_file);
delete time_logger; delete time_logger;
delete logger; delete logger;
#ifdef MPI_VERSION
} }
#endif
} }
int cluster_jxi488_cycle(int jxi488, ScattererConfiguration *sconf, GeometryConfiguration *gconf, ScatteringAngles *sa, ClusterIterationData *cid, VirtualAsciiFile *output, const string& output_path, VirtualBinaryFile *vtppoanp) int cluster_jxi488_cycle(int jxi488, ScattererConfiguration *sconf, GeometryConfiguration *gconf, ScatteringAngles *sa, ClusterIterationData *cid, VirtualAsciiFile *output, const string& output_path, VirtualBinaryFile *vtppoanp)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment