KARL paper: Parallelization debugged

This commit is contained in:
2025-01-24 10:40:27 +01:00
parent 4dee5a0d99
commit dd6dbf8e21
+1 -1
View File
@@ -606,7 +606,7 @@ After the injection of particles, the timer class is provided with the time, tha
\subsection{Parallelization}
\label{ssec:parallelization}
\changed{Even physical processes with a small cross section (and consequently low probability) will have an effect on the electron spectrum. In order to account for all processes high statistics is necessary, which may not be feasible on single core systems. Parallelization is therefore}
\changed{Even physical processes with a small cross section (and consequently low probability) will have an effect on the electron spectrum. In order to account for all processes high statistics is necessary, which may not be feasible on single core systems. Parallelization is therefore absolutely necessary.}
%In order to obtain reasonable and robust results of the simulation, high statistics is necessary. This is especially the case, if also improbable effects like the excitation by rotation, should be visible in the results. The goal of high statistics can be reached by parallel computation.
An asset of the code is, that the Monte Carlo events of each particle track can be dependent on the other, for example in the case of recombination. In order to obtain this strong point, the number of desired events per CPU core are further subdivided into cycles with a fixed length. After each cycle, a synchronization step between the CPU cores is initiated. During the synchronization step, the data on the density fields is shared among all CPU cores. Since the simulation is set up the same for all CPU cores, this step only needs an additive operation on the array of cumulated times%, see section~\ref{ssec:denstiy_fields},
and an additive step, to share the passed time. Additionally to the density field synchronization, also the data of the current borders and deletion loggers are synchronized, which is not strictly necessary, but keeps the data congruent on all CPU cores and makes the output step easier, see section~\ref{ssec:output}.