SuperMUC Large Scale 2023/1

This commit is contained in:
2023-02-13 14:05:19 +01:00
parent 45d93d4102
commit 233e37c154
21 changed files with 4921 additions and 0 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

@@ -0,0 +1 @@
30 mtime=1607013834.400120205
@@ -0,0 +1 @@
30 mtime=1607013834.401891132
@@ -0,0 +1 @@
29 mtime=1607013834.40730253
@@ -0,0 +1 @@
30 mtime=1607013834.398207731
@@ -0,0 +1 @@
30 mtime=1607013834.405078134
@@ -0,0 +1 @@
29 mtime=1607013834.40360507
Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

@@ -0,0 +1,20 @@
# Create scaling plot
# Data to plot
x_axis <- 2^seq(1:13)
ideal <- 2^seq(1:13)
non_ideal <- c(2,4,8,16,32,64,2^7-0.1*(2^7),2^8-0.2*(2^8),2^9-0.3*(2^9),2^10-0.4*(2^10),2^11-0.5*(2^11),2^12-0.6*(2^12),2^13-0.7*(2^13))
scale_df <- data.frame(x_axis, ideal, non_ideal)
legend_format <- scale_colour_manual("", values=c("black","red"))
line1 <- geom_line(aes(y = ideal, colour = "ideal"))
line2 <- geom_line(aes(y = non_ideal, colour = "speedup"))
x_label <- scale_x_continuous("Number of cores", trans=log2_trans())
y_label <- scale_y_continuous("Speedup", trans=log2_trans())
legend_specifics <- scale_colour_manual("", values=c("black","red"))
scaling_plot <- function() {
ggplot(scale_df, aes(x_axis)) + line1 + line2 + x_label + y_label + legend_specifics + coord_fixed()
}
@@ -0,0 +1,542 @@
\documentclass [a4paper, 11pt]{article}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{epsfig}
\usepackage{graphicx}
\usepackage{times}
\usepackage{float}
\usepackage[usenames,dvipsnames]{color}
\usepackage{scrlayer-scrpage}
\pagestyle{scrheadings}
\clearpairofpagestyles
\textwidth 16 cm
\textheight 23 cm
\setlength{\oddsidemargin}{0.1 cm}
\setlength{\topmargin}{1 cm}
\setlength{\headheight}{0cm}
\setlength{\headsep}{0cm}
\setlength{\footskip}{0.75cm}
\setlength{\parindent}{0cm}
\setlength{\oddsidemargin}{0.1 cm}
\setlength{\itemsep}{10pt}
\bibliographystyle{gcs}
\cfoot{\pagemark}
\ofoot{\tiny V1.8-2020DEC02}
\begin{document}
\begin{figure}[H]
\begin{center}
\includegraphics[scale=0.45]{Figures/GCS-hlrs-fzj-lrz.jpg}\\
\end{center}
\end{figure}
\begin{center}
{\LARGE \bf Project Proposal for Tier 0/Tier 1 HPC Access} \\
\bigskip
\bigskip
\bigskip
\end{center}
\textbf{Period}\\
\phantom{MM}\textit{5/2023 -- 04/2025}
\bigskip
\textbf{Project title}\\
\phantom{MM}\textit{Resonant wave-particle-interaction in kinetic plasma simulations}
\bigskip
\textbf{Type of project}\\
\phantom{MM} \textit{new project (continuation of older project)}
\bigskip
\textbf{HPC system(s) and corresponding centre(s)}\\
\phantom{MM} \textit{SuperMUC-NG, LRZ}
\bigskip
\textbf{Project ID or project acronym}\\
\phantom{MM} \textit{Please provide in case of a project extension}
\bigskip
\textbf{Principal investigator}\\
\phantom{MM} \textit{Felix Spanier\\Institut f\"ur Theoretische Astrophysik, Universität Heidelberg, Albert-Ueberle-Str. 2, 69120 Heidelberg, Germany\\felix.spanier[at]uni-heidelberg.de}
\bigskip
\textbf{Project contributor(s)}\\
\phantom{MM} \textit{Name, affiliation, contact data}
\vfill
\begin{center}
\textbf{The length of the project description is restricted to 18 pages (font 11 pt)!}
\end{center}
\newpage
\vfill
\tableofcontents
\vfill
\newpage
\section{Introduction}
\rule{\textwidth}{0.4pt}
A major field in solar physics is the analysis of the solar wind and high energetic solar particles hitting the earth. Measurements of the velocity distribution of particles in the solar wind show a thermal spectrum with an additional non-thermal component in the high energy regime. The energy distribution in this regime can be described by a power law and particle velocities become relativistic. Since the solar wind plasma is more or less collisionless on scales of 1 AU, the transport of energetic electrons and protons is governed by the interaction with magnetic irregularities, i.e. plasma waves, in the solar wind. The general question is how energetic particles are transported from the Sun to observers at Earth's orbit. In order to answer this question it is necessary to understand the nature of turbulence in the solar wind in first place.
The solar wind is a strongly
turbulent medium with high \emph{magnetic Reynolds numbers} of
$10^{14}$\cite{borovsky_2003}. Turbulence manifests
itself in a spectrum of plasma waves at various length scales and frequencies.
The energy distribution as a function of the frequency follows a
characteristic power law. The current understanding of the turbulent
processes is such that energy is injected at large scales (i.e.~small wave
numbers and frequencies) and then cascades to smaller spatial scales.
The energy spectrum can be divided into several regimes, which each may span
several orders of magnitude in wave number or frequency.
At largest scales the \emph{injection range} is found, which then transitions
into the \emph{inertial range}. The inertial range can be described by
magnetohydrodynamic (MHD) theory and turbulence is dominated by the
interaction of Alfv\'en waves. At smaller scales kinetic effects of the
particles come into play.
Power law distributions of the fluctuating magnetic energy are expected in
the injection, inertial, and dissipation range of the spectrum. However,
the spectral indices may differ among the individual regimes. The work of
Goldreich and Sridhar \cite{sridhar_1994,goldreich_1995}
presents a detailed model of the turbulent energy cascade in the inertial
regime. Their model predicts a spectral index of $-5/3$, which actually seems
to be realized in the solar wind \cite{2010PhRvL.105m1101S}.
Kinetic turbulence in the dissipation range is an active field of research
\cite{howes_2015_b}. Especially the composition of the wave spectrum is
subject to discussion, because a transition from non-dispersive Alfv\'en
waves to dispersive wave modes is expected. Possible candidates for the waves
in the dissipation range are so-called \emph{kinetic Alfv\'en} and \emph{whistler waves} \cite{gary_2009}.
The transport of energetic protons is well-described by models of Alfv\'enic
turbulence, since the protons mainly interact with these waves at low
frequencies. The theoretical framework of quasi-linear theory (QLT) can be
used to describe particle transport by a series of resonant interactions with
the magnetic fields of Alfv\'en waves, which leads to scattering of the
particles \cite{jokipii_1966,lee_1974,schlickeiser_1989}. Energetic electrons and positrons, however, interact with high-frequency waves in the dispersive regime.
Dispersive waves are more difficult to handle in (analytical) theory.
Nonetheless, QLT can also yield predictions for particle transport in a
medium containing dispersive waves\cite{steinacker_1992,vainio_2000}. The
introduction of dispersive waves can even solve some of the problems which
are encountered if a purely Alfv\'enic spectrum of waves is assumed
\cite{achatz_1993}. Still, the model remains an approximation and computer
simulations are needed to clarify some of the details which are not included in
the analytical theory. Different kinds of simulations are used to study
different physical regimes and processes, from the acceleration of particles
\cite{ng_1994,vainio_2001} to the transport of energetic particles,
considering both non-dispersive \cite{lange_2013} and dispersive waves
\cite{gary_2003,camporeale_2015,spanier_2022}.
The ultimate goal of this project is to model the transport of energetic electrons and positrons in realistic dispersive turbulence.
\section{Preliminary Work}
\rule{\textwidth}{0.4pt}
Our group has studied various solar phenomena using different approaches of
numerical simulations. \cite{lange2012} describe the use of our MHD code
Gismo to study the amplification of wave modes in a magnetised, turbulent
plasma. The recent version of Gismo also allows the simulation of test
particles (so called hybrid MHD code) and thus expands its field of
application. With Gismo resonant scattering of kinetic test particles on Alfv\'en waves in a turbulent, magnetised background plasma has been modelled (
see \cite{lange2013}). The outcome of these MHD simulations was found to be in agreement
with quasi-linear theory, although the simulation results reach beyond the predictions
of the analytic theory.
As described in the introduction the MHD approach is limited to low-frequency waves and in turn does not describe the transport of electrons correctly. We have therefore switched from simulations using the GISMO code to the ACRONYM PiC code. The first step was to initialize dispersive plasma waves with different polarizations in the code and then add test-particles to the code. A first paper published on this topic
\cite{schreiner_2014_a} analyzed the interaction of single waves with test-particles. Analytical solutions exist for this problem. An LRZ report \cite{schreiner_2016} was published on this which was generated from the project \emph{pr85li}.
The limitations of the QLT description of scattering with dispersive waves have been published in a subsequent paper \cite{schreiner_2017_b}. Especially for strong waves and interaction with multiple waves, the analytic description is limited.
The major part of the preliminary work for this project has been developed within the project \emph{pr84ti} and have been published in \cite{spanier_2022}. Here the general idea is to drive turbulence in a similar fashion as in \cite{lange2013}, let a cascade evolve and follow test-particles in that turbulence. During the course of the project the first difficulty was to find parameter sets where turbulence simulations are feasible.
\begin{figure}[htb]
\centering
\includegraphics[width=0.7\textwidth]{bilder/turbulence_production_2d_spectrum_reduced.pdf}
\caption{
Magnetic field energy distribution $E_B (k_\perp)$ over the perpendicular wave number $k_\perp$ for simulations S1 (panel a) and S2 (panel b).
The data is obtained at four different points in time in the two simulations, as indicated in the key.
At the earliest time steps shown the spectra reach their steady states.
Later in the simulations, the shapes of the spectra hardly change.
Power law fits to the data in panels a) and b) are indicated by the black lines at times $t \, |\Omega_\mathrm{e}| = \{1090.1, \, 547.1\}$, respectively.
The spectral indices are denoted by the numbers in the plot. (From \cite{spanier_2022})
}
\label{fig:turbulence_production_2d}
\end{figure}
One of the main findings is presented in Fig. \ref{fig:turbulence_production_2d}: All simulations show an anisotropic cascade (energy is mainly transported perpendicular to the magnetic field). The spectrum in perpendicular direction however depends strongly on the plasma beta. One of the main reasons to pursue further simulations can also be seen here. At high $k$ the spectrum is dominated by numerical noise coming from a too low particle number. The beta dependence, the mechanism that leads to dissipation here and the spectrum at high $k$ are not yet fully understood.
Another important preliminary work is a new method to evaluate transport parameters developed in \cite{ivascenko_2016}. Instead of following tracks of test-particles the evolution of specifically designed test-particle distributions is evaluated. The main advantage of this method is that transport even in strong turbulence can be analyzed.
\section{Description of the Project}
\rule{\textwidth}{0.4pt}
\subsection{Project Details}
The focus of this project is on the interaction of electrons and positrons with heliospheric turbulence. In the preceding SuperMUC project turbulence simulations have been carried out that allowed to identify a parameter space in which a turbulence cascade develops.
From the results of these simulations further questions arise:
\begin{itemize}
\item Temperature-dependence of spectral indices: The spectra seen in Fig. \ref {fig:turbulence_production_2d} are given at two different temperatures. The stark difference in the spectral index should be further evaluated.
\item Turbulence-spectra below the noise level: The simulation S1 shows that the noise level has been reached. The further development of the cascade could not be evaluated further
\item Positron transport: In \cite{spanier_2022} the transport of electrons has been analyzed. Since kinetic turbulence
\end{itemize}
All simulations proposed here share a common setup that has been tested in previous application and publications:
\begin{itemize}
\item Energy is injected at larger scales (cf. Fig. \ref{fig:turbinit}) at certain wave numbers. The energy injection is modeled to represent eigenmodes of the plasma.
\begin{figure}[h!]
\begin{center}
\includegraphics[width=7cm]{bilder/turbulence_init.pdf}
\end{center}
\caption{Sketch of the area in wavenumber space where energy is injected into the simulation.}
\label{fig:turbinit}
\end{figure}
\item The smallest scale is determined by the microphysical parameters of the plasma, i.e., PiC simulations have to resolve the Debye length.
\item The outer scale is then only determined by the numerical feasibility of the simulation.
\end{itemize}
\subsubsection{Temperature dependence}
In the Kolmogorov- and Goldreich-Sridhar-theory the spectral index of turbulence is independent of the plasma temperature. We could show in simulations from a previous that this does not hold for kinetic turbulence in the dispersive regime. Up to now only two data points exist to study this dependence. The question we want to address how this dependence develops over a wider temperature range.
Our key scientific objective is the analysis of mechanisms behind this dependence. From theoretical considerations we assume that energy transport via wave-wave interaction as well as driving through instabilities may play a role. It is vital to the understanding to not only scan for different spectral indices in the different temperature regimes, but also to study the wave composition and particle distribution in this area.
From a computational viewpoint the outline of this subproject is pretty much straightforward. We have identified a ``well-proven'' setup for this kind simulations in previous SuperMUC simulations and will extend the parameter range to lower and higher temperatures.
We expect to identify the intermediate regime in first place, which may also help to understand the difference in energy transport mechanisms between the two temperatures. We will look into the question, if at much lower or much higher temperatures different spectral indices are to be expected. In our first set of simulations we have covered a temperature range from plasma $\beta=$ 0.05 to 0.2 which shall be extended to 0.01 to 0.5 covering also a higher resolution in the previously analysed interval.
Understanding the transport mechanism in kinetic turbulence and especially its possible temperature dependence may play a vital role in building a consistent theoretical model for kinetic turbulence. Contemporary solar wind plasma experiments could yield data that is linked to this kind of model.
\subsubsection{Extension of the turbulence spectrum}
Looking at Fig. \ref {fig:turbulence_production_2d} again shows a major problem with especially simulations of type S1: While the general trend of the spectral indices is clearly visible it is obvious that the spectrum is terminated by the noise floor of the PiC simulations and not by a physical loss mechanism. This is of course due to the fact that fluctuations are weak at higher wave numbers and the noise of PiC simulations is governed by the low particle numbers.
A relief for this problem is simple: More particles. This is not a too impressive task for computing time application, but we want to study the termination mechanism in the turbulent cascade and this is not possible due to numerical artifacts.
It is our primary goal to rerun specifically the simulations S1 and S2 with massively more particles to eliminate the noise floor and observe the dissipation mechanism in more detail. Two major points are of interest here: Does the cascade observed in the previous simulations extend to higher wave numbers? Is the spectral index changed by the underlying noise floor that is to be eliminated? Since we expect to find an intermediate temperature between simulations S1 and S2 where a change between the two regimes is expected, we will also re-run the simulation with that temperature.
Looking at the S1 simulations in more detail (Fig. \ref{fig:turbulence_production_2d_spectrum_parallel}) it is also clear that the extent of the parallel spectrum has a major impact on particle transport (the resonance condition includes the parallel wave number). The electron and positron transport at low energies would therefore be significantly altered depending on the total extent of this spectrum.
\begin{figure}[h!tb]
\centering
\includegraphics[width=0.9\linewidth]{bilder/turbulence_production_2d_spectrum_reduced2.pdf}
\caption{
Magnetic field energy distribution $E_B (k_\parallel)$ over the parallel wave number $k_\parallel$ for simulations S1 (panel a) and S2 (panel b).
The data is obtained at four different points in time in the two simulations, as indicated in the key.
The spectra reach their steady state at the earliest time steps shown.
Power law fits to the data in panels a) and b) are indicated by the black lines at times $t \, |\Omega_\mathrm{e}| = \{1090.1, \, 547.1\}$, respectively.
The spectral indices are denoted by the numbers in the plot.
The dashed, vertical lines mark the expected onset of cyclotron damping for purely parallel propagating waves. (Taken from \cite{spanier_2022})
}
\label{fig:turbulence_production_2d_spectrum_parallel}
\end{figure}
\subsubsection{Positron transport}
The previous simulation application included the analysis of electron and proton transport from kinetic turbulence simulations. In \cite{spanier_2022} we have developed the theoretical approach to predict electron and positron transport parameters from kinetic turbulence. We want to study the transport of electrons and positrons for the simulations runs produced in this simulation set. The numerical effort for this kind simulation is extremely small compared to the time required to reach a saturated turbulent spectrum.
As discussed in previous applications the method of \cite{ivascenko_2016} is used, where test particles are injected in the fully developed turbulence and the time evolution of the test particle distribution function is the used to determine pitch-angle diffusion coefficients. In \cite{spanier_2022}
Understanding the electron and positron transport has in fact a very large impact on the observational side: Electron spectra and angular distributions are measured at different positions in the solar system. The angular distribution is a function of the pitch-angle diffusion coefficient and these in turn are connected to the turbulence that has been traversed by electrons and positrons. In most cases a simple quasi-linear theory like model is used to parametrize the diffusion coefficient.
Within this project we will able to determine more realistic self-consistent diffusion parameters which may at a later stage be applied to angular distribution functions from satellite data in order to make conclusions on the kinetic turbulence in the heliosphere.
%\begin{itshape}
%\begin{itemize}\setlength{\itemsep}{-2pt}
%\item Scientific questions you want to address
%\item Scientific objectives
%\item Computational objectives
%\item Approach and expected outcome
%\item Expected impact on the research area
%\item Scientific and technical innovation potential, impact and topicality
%\item Progress beyond the state-of-the-art
%\end{itemize}
%\end{itshape}
%
%
%\textit{(1 to 2 pages per sub-project)}
\subsection{Review Processes}
The simulations proposed here are undertaken in the framework of the DFG projects SP1124/9 ``
Kinetische Turbulenz und Teilchentransport in astrophysikalischen Plasmen''. The project has been evaluated positively by the DFG and is running until 2025.
\section{Numerical Methods and Algorithms}
\rule{\textwidth}{0.4pt}
The behavior of (collisionless) plasmas can be modeled by the use of the Vlasov equation -- a partial differential equation, which describes the evolution of a six-dimensional phase space.
The Vlasov equation is coupled to Maxwell's equations, which describe the propagation and interaction of electromagnetic fields and currents.
An exact solution to this non-linearly coupled system of equations exists only for simple cases, but various approximations are readily at hand.
\\
One of the numerical approaches to this problem is the particle-in-cell (PiC) method e.g. \cite{hockney_1988}, which uses phase space samples -- so-called macro particles -- to represent charged particles in the plasma.
These macro particles are accelerated through electromagnetic fields, which they themselves create.
Currents calculated from the motion of macro particles are introduced as a source term for Maxwell's equations, which are solved on a grid storing fields, currents and charge densities.
The PiC method allows for self-consistent simulations of plasmas with -- in principle -- arbitrary initial and boundary conditions and is especially suitable for modeling collisionless space plasmas.
\\
PiC codes distinguish between two basic kinds of entities: quantities on the grid (fields and currents) and (macro) particles.
In the \textit{ACRONYM} code each particle is treated as an individual object with certain properties, such as mass, charge, velocity and position.
These properties are stored in arrays of individual particle objects.
\\
Field properties are deposited on discrete grid points, using the Yee scheme \cite{yee_1966}.
This allows for a simple and fast calculation of the curl of electromagnetic fields, which is essential for computing the field evolution efficiently.
The method is second order accurate and furthermore holds the divergence of the magnetic field $\nabla \cdot \vec{B}$ close to zero (within floating point accuracy), satisfying the physical constraint $\nabla \cdot \vec{B} = 0$.
\\
Time evolution is done in four consecutive subroutines per time step.
\\
Starting with given electromagnetic fields at the discrete grid points, the fields are interpolated to the positions of the particles.
Following the overall concept of the code, a second order correct scheme with a triangular shaped cloud (TSC) form factor for particles is used see \cite{hockney_1988}.
Different form factors are also available.
\\
In the next step the particles are moved.
The Lorentz force acting on each particle is calculated from the interpolated fields.
Then the particles' velocities and positions are updated, using the Boris push \cite{boris_1970}, as explained in \cite{penn_2003}.
Again, the Boris push is a second order scheme which uses a leap-frogged update in time and which also yields a good preservation of total energy. The method of \cite{2008PhPl...15e6701V} is also available.
\\
From the particles' movement through the grid the currents are calculated and deposited on their respective grid points using the method of \cite{esirkepov_2001}. Also the method of \cite{2003CoPhC.156...73U} is available.
The TSC form factor is utilized again for self-consistency.
By doing so, numerical momentum dissipation and unphysical self-forces are prevented.
\\
The last step updates the electromagnetic fields, using a second order leap-frog scheme for the computation of Maxwell's equations.
Only components of the current and the electric and magnetic fields, which are stored on the Yee lattice, are used in this step.
The analysis of particle transport applied to the simulations is based on a method developed in \cite{ivascenko_2016}: In fully developed turbulence simulations test particles are injected that follow a distribution function which fulfills $f(\mu) \neq 0,\ \partial f/\partial \mu \neq 0$. In order to produce such arbitrary distribution functions test particles have been used in the original publication, here we will use particles with a miniscule macrofactor that are negligible in the plasma evolution.\\
From the time evolution of the particle distribution the pitch-angle diffusion coefficient $D_{\mu \mu}$ can be calculated
\begin{equation}
\partial_t f = \frac{D_{\mu \mu}^{n+1} - D_{\mu \mu}^{n-1}}{2\cdot \Delta \mu} \partial_{\mu} f +D_{\mu \mu}^n \partial_{\mu \mu} f
\label{diskret}
\end{equation}
This corresponds to a matrix equation with a tridiagonal matrix which can be solved with conventional algorithms:
\begin{equation}
\begin{pmatrix}
\partial_{\mu \mu} f^0 & \frac{\partial_{\mu} f^0}{2 \Delta \mu} & 0 & 0 \\
-\frac{\partial_{\mu} f^1}{2 \Delta \mu} & \partial_{\mu \mu} f^1 & \ddots & 0 \\
0 & \ddots & \ddots & \frac{\partial_{\mu} f^{n-1}}{2 \Delta \mu} \\
0 & 0 & -\frac{\partial_{\mu} f^n}{2 \Delta \mu} & \partial_{\mu \mu} f^n
\end{pmatrix}
\cdot
\begin{pmatrix}
D_{\mu \mu}^0 \\ D_{\mu \mu}^1 \\ \vdots \\ D_{\mu \mu}^n
\end{pmatrix}
=
\begin{pmatrix}
\partial_t f^0 \\ \partial_t f^1 \\ \vdots \\ \partial_t f^n
\end{pmatrix}
\label{matrix}
\end{equation}
\bigskip
\section{Computer Resources}
\rule{\textwidth}{0.4pt}
\subsection{Code performance and workflow}
For the proposed project the \textit{ACRONYM} PiC code \cite{kilian_2011} will be used.\\
\textit{ACRONYM} is an explicit, electromagnetic, fully relativistic PiC code, which has been developed by members of our working group.
It is capable of simulating kinetic, collisionless, magnetized plasmas self-consistently in up to three spatial dimensions.
\\
The overall design of the code is based on the concept of maintaining second order accuracy in both time and space and computing time evolution explicitly.
To probe and minimize the effect of the discrete grid on plasma wave evolution, the field solver can be tuned to achieve optimal results \cite{vay_2011}.
Different boundary conditions -- periodic, conductive walls, absorbing walls -- can be selected according to the physical problem to be modeled.
Furthermore, the field solver can be switched to electrostatic mode or Darwin approximation \cite{fang_2009}.
The \textit{ACRONYM} code employs the blitz++, fftw3 and HDF5 libraries.
For field output HDF5 is used, for particle output either HDF5 or raw MPI-I/O can be selected.
\\
The code compiles on the Intel Compiler, GCC, clang/LLVM, SunCC and the compiler used on Cray systems.
For production runs -- also on SuperMUC -- the Intel Compiler \mbox{(10.1 - 14.0)} or GCC \mbox{(4.4 - 4.9)} are used.
The \textit{ACRONYM} code is parallelized using the message passing interface (MPI) exclusively without internal threading and without hybrid parallelization, as it would be of no benefit for this kind of code.
On local computing clusters the OpenMPI implementation is employed, while on SuperMUC the library provided by IBM is utilized.
\\
Parallelization of the code is achieved by splitting up the simulation box and distributing equally sized parts of the total volume to single CPUs (also particle number based load balancing is available).
Each CPU computes one time step for all particles and fields in its domain.
Between time steps, MPI communication has to be carried out only among neighboring CPUs, which keeps communication on a minimal level.
The main part of the communication process is the exchange of particles which have crossed the border of their domain and enter another one.
Output is written fully in parallel, using the same HDF5 file for fields and currents throughout the whole simulation.
Particle output is done via MPI-I/O (or HDF5) with one file per output time step. On Cray systems an output of 30 GB/s can be reached, even on I/O limited systems 3 GB/s can be reached. Additionally output of online diagnostics (time average, spatial average, moments of the distribution function etc.) is possible.
\begin{figure}[h!]
\centering
\caption{Weak scaling of the \textit{ACRONYM} code on various supercomputers. See text for description.}
\includegraphics[width=0.65\linewidth]{bilder/extreme_scaling_workshop}
% \caption{Weak scaling of the \textit{ACRONYM} code on SuperMUC. With output deselected, the code scales almost linearly up to 131072 cores. A performance increase by a factor of two can be achieved when using GCC instead of the Intel Compiler. Output becomes a bottleneck above 4096 CPUs, but, however, actual production runs show that typical simulations are not as heavy on output as the scaling runs.}
\label{fig:scaling}
\end{figure}
The \textit{ACRONYM} code has been continuously tested and used on the SuperMUC system during the past few years.
Starting with a test account (\textit{pr45sa}, ``Testing ACRONYM on SuperMIG'') and continuing with a small-scale project (\textit{pr85li}, ``Resonant wave-particle-interaction in kinetic plasma simulations'' see \cite{schreiner_2014_b}) the performance of the code has been monitored and improved. Large-scale simulations have been carried out in the framework of the project \emph{pr84ti} ``Numerical modeling of the microphysical foundation of astrophysical particle acceleration''.
In its current state, the code scales almost linearly with the number of processes (which is equivalent to the number of cores), as can be seen in figure \ref{fig:scaling}.
For weak scaling we use a standard setup, consisting of domains with \mbox{$48 \times 48 \times 32$} cells per CPU with ten particles per cell.
Scaling simulations run for 100 time steps and can be performed either without or with output (full field and particle output at the beginning and the end of the run).
\\
Recent tests show that \textit{ACRONYM} scales almost linearly up to 131072 cores when output is deselected.
A performance increase by a factor of two can be achieved if GCC is used instead of the Intel Compiler (see fig. \ref{fig:scaling}).
The only true bottleneck is the performance with parallel output, which starts to slow down the code when more than 32768 CPUs are employed.
However, actual production runs are usually not as heavy on output as the scaling runs, as is depicted by a sample of typical simulations with different problem sizes.
Further bottlenecks are not present \cite{kempf_2014}\footnote{see also p. 11-21 in supporting material}.
\newpage
\subsection{Justification of resources requested}
The subproject on temperature dependence and increased spectral resolution share some of their numerical parameters: We use a $2048\times 2048$ grid - higher grid resolution do not improve the spectral resolution significantly. For the analysis of temperature dependence 256 particles per cell are used, high resolution simulations are run with 16,384 particles per cell. Due to the excessive amount of particle data written per simulation (i.e., at least once per 48 hours of wallclock time), the high resolution simulations will require more time. A rough estimate shows typical values of $1.3\times 10^5$ particle updates per second for the simulations, while normal runs show around $1.55\times 10^5$ particle updates per second (values taken from previous applications).
\begin{itemize}
\item \textbf{Run type A}: Grid size $2048\times 2048$, 256 ppc, various temperatures
\item \textbf{Run type B}: Grid size $2048\times 2048$, 16384 ppc, two temperatures
\end{itemize}
Transport simulations are restarted from the simulations performed in the other subprojects. Since the simulation has to cover only a few electron gyrations rather than several 100 plasma timescales the simulation time required is rather small.
\begin{itemize}
\item \textbf{Run type C}: Grid size $2048\times 2048$, 256 ppc + 128 ppc nonthermal particles, various temperatures + various particle energies
\item \textbf{Run type D}: Grid size $2048\times 2048$, 16384 ppc + 128 ppc nonthermal, two temperatures + various particle energies
\end{itemize}
The majority of post-processing runs requires only minimal amounts of computing time (calculating spectra, dispersion relations etc.). The analysis of particle histograms for the high-resolution runs, however, requires longer processing times (additionally we want to avoid the unnecessary transfer of raw particle data)
\begin{itemize}
\item \textbf{Post-processing 1}: Dispersion calculation 2048 cells $\times$ 1000 time steps
\item \textbf{Post-processing 2}: Analysis of particle transport data $2048\times 2048 \times 128$ particles
\item \textbf{Post-processing 3}: Histograms of particle data $2048\times 2048 \times 16384$ particles
\end{itemize}
\begin{table}[H]
\caption{\label{tab_CPU_resources}The following CPU resources are requested}
\begin{center}
\setlength{\tabcolsep}{4pt}
\renewcommand{\arraystretch}{1.2}
\begin{tabular}{llcccccc} \hline\hline
Sub-project & Type & Problem & \# runs & \# steps/ & Wall time/ & \# cores/ & Total \\
& of run & size & & run & step [hours] & run &[core-h] \\
\hline\hline
Sub-proj. 1 & A & $2048^2\times 256$ & 10 & $2\times 10^5$ & 1.92 & 7680 & $3.9\times 10^6$ \\
Sub-proj. 2 & B & $2048^2\times 16384$ & 3 & $1\times 10^5$ & 146 & 30720 & $43\times 10^6$ \\
Sub-proj. 3 & C & $2048^2\times 384$ & 200 & $1\times 10^3$ & 2.88 & 7680 & $5.8\times 10^5$ \\
Sub-proj. 3 & D & $2048^2\times 16512$ & 20 & $1\times 10^3$ & 146 & 30720 & $2.9\times 10^5$ \\
Postprocessing & 1& $2048\times 100$ & 2000 & 1 & 10 & 4 & $8\times 10^4$ \\
Postprocessing & 2& $2048^2\times 128$ & 200 & 5 & 20 & 4 & $8\times 10^4$ \\
Postprocessing & 3& $2048^2\times 16384$ & 3 & 5 & 240 & 48 & $1\times 10^5$ \\
$\cdots$ &\multicolumn{7}{c}{$\cdots$}\\
\hline\hline
TOTAL & & & & & & & $48\times 10^6$\\
\end{tabular}
\end{center}
\end{table}
\section{Resource Management and Work Schedule}
\rule{\textwidth}{0.4pt}
\subsection{Resource management}
Due to previous work on SuperMUC and on kinetic turbulence simulations the work outline is pretty clear: Existing parameter files have to be appended for different temperature regimes and particle numbers. The simulations can be started almost immediately. Within a small test project (\emph{KinTurbMoreRes}) the current code base has been tested on the current hardware base (everything is working as expected).
\textit{(0.5 to 1 page)}
\subsection{Work schedule}
\subsubsection{Sub-project Temperature dependence}
This sub-project is carried out first in order to identify the intermediate regime between the simulations S1 and S2. The pre-existing setup is adapted accordingly, simulations are carried out and energy spectra are calculated. After analyzing the spectra the second sub-project can be started, while other post-processing steps can be carried out later.
The later post-processing includes mainly calculating dispersion relation at various stages to identify energy transfer between different modes and different wavenumber regimes.
\subsubsection{Sub-project Spectral resolution}
Following the output of the temperature sub-project a third temperature is chosen to complete the set of three different simulations to be carried out. Here the well-proven setup is again adapted to accomodate a larger particle number. In order to find a sweet spot between very frequent restarts and large performance loss due to I/O from a large processor number an intermediate number of cores has been chosen, which will result in 15-20 restarts (which will also decrease the risk of a catastrophic loss of computing time).
The same post-processing as for the previous subproject applies here. Additionally particle distributions will be inspected closely.
\subsubsection{Sub-project Particle transport}
The results from the previous runs will used as a starting point for the particle transport. Into fully developed turbulence energy particles with various energies (with at least one resonant wave in the simulation) are injected.
The analysis method developed by \cite{ivascenko_2016} is then applied to this data.
\bigskip
\begin{figure}[H]
\begin{flushleft}
\includegraphics[scale=0.82]{bilder/gantt.pdf}
\end{flushleft}
\caption{\label{fig_workschedule}Work schedule for the project.}
\end{figure}
\section{Key Personnel and Experiences}
\rule{\textwidth}{0.4pt}\\
\textsc{PD Dr. Felix Spanier} (felix.spanier [at] uni-heidelberg.de)\\
%\begin{adjustwidth}{10pt}{}
F. Spanier was the leader of the working group in W\"urzburg, where the \textit{ACRONYM} code has been developed initially. His expertise lies both in theoretical plasma astrophysics and the realization of kinetic plasma simulations. He has performed simulations of turbulent plasmas in the fluid and kinetic regime and has supervised the thesis of Dr. C Schreiner that precedes this project.
%\end{adjustwidth}
\vspace{0.1cm}
\textsc{Dr. Alex Ivascenko} (alex.ivascenko [at] rub.de)\\
%\begin{adjustwidth}{10pt}{}
A. Ivascenko is a specialist for energetic particle transport. He has developed new methods for the analysis of pitch-angle diffusion coefficients in turbulent plasmas.
%\end{adjustwidth}
\textsc{Conrad Meyer, B.Sc.} (conrad.meyer [at] stud.uni-heidelberg.de)\\
%\begin{adjustwidth}{10pt}{}
C. Meyer is heavily involved in the maintenance and improvement of the ACRONYM codebase. He is currently working on porting ACRONYM to heterogeneous computing systems and will run and evaluate turbulence simulations in the context of this project.
\section{Bibliographic References}
\rule{\textwidth}{0.4pt}\\
\bibliography{bib}
\bigskip
\end{document}
@@ -0,0 +1 @@
30 mtime=1607104719.033886811
File diff suppressed because it is too large Load Diff
Binary file not shown.
+972
View File
@@ -0,0 +1,972 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% gcs.bst %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Bibliography Syle file for articles
% P. Gibbon, FZ-Juelich 2007
% Full italic titles; roman proceeding titles; year in parentheses
% originally based on:
% Bibliography Syle file for articles according to IEEE instructions
ENTRY
{ address
author
booktitle
chapter
edition
editor
howpublished
institution
journal
key
month
note
number
organization
pages
publisher
school
series
title
type
volume
year
}
{}
{ label }
INTEGERS { output.state before.all mid.sentence after.sentence after.block }
FUNCTION {init.state.consts}
{ #0 'before.all :=
#1 'mid.sentence :=
#2 'after.sentence :=
#3 'after.block :=
}
STRINGS { s t }
FUNCTION {output.nonnull}
{ 's :=
output.state mid.sentence =
{ ", " * write$ }
{ output.state after.block =
{ ", " * write$
newline$
" " write$
}
{ output.state before.all =
'write$
{ add.period$ " " * write$ }
if$
}
if$
mid.sentence 'output.state :=
}
if$
s
}
FUNCTION {output}
{ duplicate$ empty$
'pop$
'output.nonnull
if$
}
FUNCTION {output.check}
{ 't :=
duplicate$ empty$
{ pop$ "empty " t * " in " * cite$ * warning$ }
'output.nonnull
if$
}
FUNCTION {output.bibitem}
{ newline$
"\bibitem{" write$
cite$ write$
"}" write$
newline$
""
before.all 'output.state :=
}
FUNCTION {fin.entry}
{ add.period$
write$
newline$
}
FUNCTION {new.block}
{ output.state before.all =
'skip$
{ after.block 'output.state := }
if$
}
FUNCTION {new.sentence}
{ output.state after.block =
'skip$
{ output.state before.all =
'skip$
{ after.sentence 'output.state := }
if$
}
if$
}
FUNCTION {not}
{ { #0 }
{ #1 }
if$
}
FUNCTION {and}
{ 'skip$
{ pop$ #0 }
if$
}
FUNCTION {or}
{ { pop$ #1 }
'skip$
if$
}
FUNCTION {new.block.checka}
{ empty$
'skip$
'new.block
if$
}
FUNCTION {new.block.checkb}
{ empty$
swap$ empty$
and
'skip$
'new.block
if$
}
FUNCTION {new.sentence.checka}
{ empty$
'skip$
'new.sentence
if$
}
FUNCTION {new.sentence.checkb}
{ empty$
swap$ empty$
and
'skip$
'new.sentence
if$
}
FUNCTION {field.or.null}
{ duplicate$ empty$
{ pop$ "" }
'skip$
if$
}
FUNCTION {emphasize}
{ duplicate$ empty$
{ pop$ "" }
{ "{\em " swap$ * "}" * }
if$
}
FUNCTION {boldface}
{ duplicate$ empty$
{ pop$ "" }
{ "{\bf " swap$ * "}" * }
if$
}
FUNCTION {paren}
{ duplicate$ empty$
{ pop$ "" }
{ "" swap$ * "" * }
if$
}
INTEGERS { nameptr namesleft numnames }
FUNCTION {format.names}
{ 's :=
#1 'nameptr :=
s num.names$ 'numnames :=
numnames 'namesleft :=
{ namesleft #0 > }
{ s nameptr "{ff~}{vv~}{ll}{, jj}" format.name$ 't :=
nameptr #1 >
{ namesleft #1 >
{ ", " * t * }
{ numnames #2 >
{ "," * }
'skip$
if$
t "others" =
{ " et~al." * }
{ " and " * t * }
if$
}
if$
}
't
if$
nameptr #1 + 'nameptr :=
namesleft #1 - 'namesleft :=
}
while$
}
FUNCTION {format.authors}
{ author empty$
{ "" }
{ author format.names }
if$
}
FUNCTION {format.editors}
{ editor empty$
{ "" }
{ editor format.names
editor num.names$ #1 >
{ ", (Eds.)" * }
{ ", (Ed.)" * }
if$
}
if$
}
FUNCTION {format.title}
{ title empty$
{ "" }
{ "``" title "t" change.case$ * }
if$
}
FUNCTION {format.booktitle}
{ booktitle empty$
{ "" }
{ "``" booktitle "t" change.case$ * }
if$
}
FUNCTION {n.dashify}
{ 't :=
""
{ t empty$ not }
{ t #1 #1 substring$ "-" =
{ t #1 #2 substring$ "--" = not
{ "--" *
t #2 global.max$ substring$ 't :=
}
{ { t #1 #1 substring$ "-" = }
{ "-" *
t #2 global.max$ substring$ 't :=
}
while$
}
if$
}
{ t #1 #1 substring$ *
t #2 global.max$ substring$ 't :=
}
if$
}
while$
}
FUNCTION {format.date}
{ year empty$
{ month empty$
{ "" }
{ "there's a month but no year in " cite$ * warning$
month
}
if$
}
{ month empty$
{ year }
{ month " " * year * }
if$
}
if$
}
FUNCTION {format.btitle}
{ title emphasize
}
FUNCTION {tie.or.space.connect}
{ duplicate$ text.length$ #3 <
{ "~" }
{ " " }
if$
swap$ * *
}
FUNCTION {either.or.check}
{ empty$
'pop$
{ "can't use both " swap$ * " fields in " * cite$ * warning$ }
if$
}
FUNCTION {format.bvolume}
{ volume empty$
{ "" }
{ "vol." volume tie.or.space.connect
series empty$
'skip$
{ " of " * series emphasize * }
if$
"volume and number" number either.or.check
}
if$
}
FUNCTION {format.number.series}
{ volume empty$
{ number empty$
{ series field.or.null }
{ output.state mid.sentence =
{ "number" }
{ "Number" }
if$
number tie.or.space.connect
series empty$
{ "there's a number but no series in " cite$ * warning$ }
{ " in " * series * }
if$
}
if$
}
{ "" }
if$
}
FUNCTION {format.edition}
{ edition empty$
{ "" }
{ output.state mid.sentence =
{ edition "l" change.case$ " edition" * }
{ edition "t" change.case$ " edition" * }
if$
}
if$
}
INTEGERS { multiresult }
FUNCTION {multi.page.check}
{ 't :=
#0 'multiresult :=
{ multiresult not
t empty$ not
and
}
{ t #1 #1 substring$
duplicate$ "-" =
swap$ duplicate$ "," =
swap$ "+" =
or or
{ #1 'multiresult := }
{ t #2 global.max$ substring$ 't := }
if$
}
while$
multiresult
}
FUNCTION {format.pages}
{ pages empty$
{ "" }
{ pages multi.page.check
{ "pp." pages n.dashify tie.or.space.connect }
{ "p." pages tie.or.space.connect }
if$
}
if$
}
FUNCTION {format.vol.num.pages}
{
volume empty$
{"" }
{ volume field.or.null boldface }
if$
number empty$
'skip$
{", no. " number * *}
if$
pages empty$
'skip$
{ duplicate$ empty$
{ pop$ format.pages }
{ ", " * pages n.dashify * }
if$
}
if$
}
FUNCTION {format.chapter.pages}
{ chapter empty$
'format.pages
{ type empty$
{ "chapter" }
{ type "l" change.case$ }
if$
chapter tie.or.space.connect
pages empty$
'skip$
{ ", " * format.pages * }
if$
}
if$
}
FUNCTION {format.in.ed.booktitle}
{ booktitle empty$
{ "" }
{ editor empty$
{ " in: " booktitle * }
{ " in: " booktitle * ", " * format.editors *}
if$
}
if$
}
FUNCTION {empty.misc.check}
{ author empty$ title empty$ howpublished empty$
month empty$ year empty$ note empty$
and and and and and
{ "all relevant fields are empty in " cite$ * warning$ }
'skip$
if$
}
FUNCTION {format.thesis.type}
{ type empty$
'skip$
{ pop$
type "t" change.case$
}
if$
}
FUNCTION {format.tr.number}
{ type empty$
{ "Tech. {R}ep." }
'type
if$
number empty$
{ "t" change.case$ }
{ number tie.or.space.connect }
if$
}
FUNCTION {format.article.crossref}
{ key empty$
{ journal empty$
{ "need key or journal for " cite$ * " to crossref " * crossref *
warning$
""
}
{ "In {\em " journal * "\/}" * }
if$
}
{ "In " key * }
if$
" \cite{" * crossref * "}" *
}
FUNCTION {format.crossref.editor}
{ editor #1 "{vv~}{ll}" format.name$
editor num.names$ duplicate$
#2 >
{ pop$ " et~al." * }
{ #2 <
'skip$
{ editor #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =
{ " et~al." * }
{ " and " * editor #2 "{vv~}{ll}" format.name$ * }
if$
}
if$
}
if$
}
FUNCTION {format.book.crossref}
{ volume empty$
{ "empty volume in " cite$ * "'s crossref of " * crossref * warning$
"In "
}
{ "vol." volume tie.or.space.connect
" of " *
}
if$
editor empty$
editor field.or.null author field.or.null =
or
{ key empty$
{ series empty$
{ "need editor, key, or series for " cite$ * " to crossref " *
crossref * warning$
"" *
}
{ "{\em " * series * "\/}" * }
if$
}
{ key * }
if$
}
{ format.crossref.editor * }
if$
" \cite{" * crossref * "}" *
}
FUNCTION {format.incoll.inproc.crossref}
{ editor empty$
editor field.or.null author field.or.null =
or
{ key empty$
{ booktitle empty$
{ "need editor, key, or booktitle for " cite$ * " to crossref " *
crossref * warning$
""
}
{ "In {\em " booktitle * "\/}" * }
if$
}
{ "In " key * }
if$
}
{ "In " format.crossref.editor * }
if$
" \cite{" * crossref * "}" *
}
FUNCTION {article}
{ output.bibitem
format.authors "author" output.check
new.block
% italic paper title
format.btitle "title" output.check
new.block
crossref missing$
{ journal "journal" output.check
format.vol.num.pages output
format.date "year" output.check
}
{ format.article.crossref output.nonnull
format.pages output
}
if$
new.block
note output
fin.entry
}
FUNCTION {book}
{ output.bibitem
author empty$
{ format.editors "author and editor" output.check }
{ format.authors output.nonnull
crossref missing$
{ "author and editor" editor either.or.check }
'skip$
if$
}
if$
new.block
format.btitle "title" output.check
crossref missing$
{ format.bvolume output
new.block
format.number.series output
new.sentence
publisher "publisher" output.check
address output
}
{ new.block
format.book.crossref output.nonnull
}
if$
format.edition output
format.date "year" output.check
new.block
note output
fin.entry
}
FUNCTION {booklet}
{ output.bibitem
format.authors output
new.block
format.title "''" * "title" output.check
howpublished address new.block.checkb
howpublished output
address output
format.date output
new.block
note output
fin.entry
}
FUNCTION {inbook}
{ output.bibitem
author empty$
{ format.editors "author and editor" output.check }
{ format.authors output.nonnull
crossref missing$
{ "author and editor" editor either.or.check }
'skip$
if$
}
if$
new.block
format.btitle "title" output.check
crossref missing$
{ format.bvolume output
format.chapter.pages "chapter and pages" output.check
new.block
format.number.series output
new.sentence
publisher "publisher" output.check
address output
}
{ format.chapter.pages "chapter and pages" output.check
new.block
format.book.crossref output.nonnull
}
if$
format.edition output
format.date "year" output.check
new.block
note output
fin.entry
}
FUNCTION {incollection}
{ output.bibitem
format.authors "author" output.check
new.block
format.title "''" * "title" output.check
new.block
crossref missing$
{ format.in.ed.booktitle "booktitle" output.check
format.bvolume output
format.number.series output
format.chapter.pages output
new.sentence
publisher "publisher" output.check
address output
format.edition output
format.date "year" output.check
}
{ format.incoll.inproc.crossref output.nonnull
format.chapter.pages output
}
if$
new.block
note output
fin.entry
}
FUNCTION {inproceedings}
{ output.bibitem
format.authors "author" output.check
new.block
format.btitle "title" output.check
new.block
crossref missing$
{ format.in.ed.booktitle "booktitle" output.check
format.bvolume output
format.number.series output
format.pages output
publisher output
address empty$
{ organization publisher new.sentence.checkb
organization output
format.date "year" output.check
}
{ organization output
address output
format.date "year" output.check
}
if$
}
{ format.incoll.inproc.crossref output.nonnull
format.pages output
}
if$
new.block
note output
fin.entry
}
FUNCTION {conference} { inproceedings }
FUNCTION {manual}
{ output.bibitem
author empty$
{ organization empty$
'skip$
{ organization output.nonnull
address output
}
if$
}
{ format.authors output.nonnull }
if$
new.block
format.btitle "title" output.check
author empty$
{ organization empty$
{ address new.block.checka
address output
}
'skip$
if$
}
{ organization address new.block.checkb
organization output
address output
}
if$
format.edition output
format.date output
new.block
note output
fin.entry
}
FUNCTION {mastersthesis}
{ output.bibitem
format.authors "author" output.check
new.block
format.title "''" * "title" output.check
new.block
"Master's thesis" format.thesis.type output.nonnull
school "school" output.check
address output
format.date "year" output.check
new.block
note output
fin.entry
}
FUNCTION {misc}
{ output.bibitem
format.authors output
title howpublished new.block.checkb
format.title "''" * output
howpublished new.block.checka
howpublished output
format.date output
new.block
note output
fin.entry
empty.misc.check
}
FUNCTION {phdthesis}
{ output.bibitem
format.authors "author" output.check
new.block
format.btitle "title" output.check
new.block
"PhD thesis" format.thesis.type output.nonnull
school "school" output.check
address output
format.date "year" output.check
new.block
note output
fin.entry
}
FUNCTION {proceedings}
{ output.bibitem
editor empty$
{ organization output }
{ format.editors output.nonnull }
if$
new.block
format.btitle "title" output.check
format.bvolume output
format.number.series output
address empty$
{ editor empty$
{ publisher new.sentence.checka }
{ organization publisher new.sentence.checkb
organization output
}
if$
publisher output
format.date "year" output.check
}
{ address output.nonnull
format.date "year" output.check
new.sentence
editor empty$
'skip$
{ organization output }
if$
publisher output
}
if$
new.block
note output
fin.entry
}
FUNCTION {techreport}
{ output.bibitem
format.authors "author" output.check
new.block
format.btitle "title" output.check
new.block
format.tr.number output.nonnull
institution "institution" output.check
address output
format.date "year" output.check
new.block
note output
fin.entry
}
FUNCTION {unpublished}
{ output.bibitem
format.authors "author" output.check
new.block
format.title "''" * "title" output.check
new.block
note "note" output.check
format.date output
fin.entry
}
FUNCTION {default.type} { misc }
MACRO {jan} {"Jan."}
MACRO {feb} {"Feb."}
MACRO {mar} {"Mar."}
MACRO {apr} {"Apr."}
MACRO {may} {"May"}
MACRO {jun} {"June"}
MACRO {jul} {"July"}
MACRO {aug} {"Aug."}
MACRO {sep} {"Sept."}
MACRO {oct} {"Oct."}
MACRO {nov} {"Nov."}
MACRO {dec} {"Dec."}
MACRO {acmcs} {"ACM Computing Surveys"}
MACRO {acta} {"Acta Informatica"}
MACRO {cacm} {"Communications of the ACM"}
MACRO {ibmjrd} {"IBM Journal of Research and Development"}
MACRO {ibmsj} {"IBM Systems Journal"}
MACRO {ieeese} {"IEEE Transactions on Software Engineering"}
MACRO {ieeetc} {"IEEE Transactions on Computers"}
MACRO {ieeetcad}
{"IEEE Transactions on Computer-Aided Design of Integrated Circuits"}
MACRO {ipl} {"Information Processing Letters"}
MACRO {jacm} {"Journal of the ACM"}
MACRO {jcss} {"Journal of Computer and System Sciences"}
MACRO {scp} {"Science of Computer Programming"}
MACRO {sicomp} {"SIAM Journal on Computing"}
MACRO {tocs} {"ACM Transactions on Computer Systems"}
MACRO {tods} {"ACM Transactions on Database Systems"}
MACRO {tog} {"ACM Transactions on Graphics"}
MACRO {toms} {"ACM Transactions on Mathematical Software"}
MACRO {toois} {"ACM Transactions on Office Information Systems"}
MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"}
MACRO {tcs} {"Theoretical Computer Science"}
READ
STRINGS { longest.label }
INTEGERS { number.label longest.label.width }
FUNCTION {initialize.longest.label}
{ "" 'longest.label :=
#1 'number.label :=
#0 'longest.label.width :=
}
FUNCTION {longest.label.pass}
{ number.label int.to.str$ 'label :=
number.label #1 + 'number.label :=
label width$ longest.label.width >
{ label 'longest.label :=
label width$ 'longest.label.width :=
}
'skip$
if$
}
EXECUTE {initialize.longest.label}
ITERATE {longest.label.pass}
FUNCTION {begin.bib}
{ preamble$ empty$
'skip$
{ preamble$ write$ newline$ }
if$
"\begin{thebibliography}{" longest.label * "}" * write$ newline$
}
EXECUTE {begin.bib}
EXECUTE {init.state.consts}
ITERATE {call.type$}
FUNCTION {end.bib}
{ newline$
"\end{thebibliography}" write$ newline$
}
EXECUTE {end.bib}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%% End of gcs %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%