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
Loading
Loading
Loading
Loading
+715 −713
Original line number Diff line number Diff line
@@ -482,7 +482,7 @@ void cluster(const string& config_file, const string& data_file, const string& o
#endif
#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
#pragma omp barrier
	if (myompthread == 0) {
@@ -633,7 +633,9 @@ void cluster(const string& config_file, const string& data_file, const string& o
    fclose(timing_file);
    delete time_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)