HLRS Vlad: addad GCS Template for application (extension of project WGTSPseudo2d)
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 96 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 63 KiB |
File diff suppressed because one or more lines are too long
Binary file not shown.
|
After Width: | Height: | Size: 46 KiB |
Binary file not shown.
@@ -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,338 @@
|
||||
\documentclass [a4paper, 11pt]{article}
|
||||
|
||||
\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.9-2024JUL01}
|
||||
|
||||
\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{11/2024 - 3/2025}
|
||||
|
||||
\bigskip
|
||||
\textbf{Project title}\\
|
||||
\phantom{MM}\textit{Simulations of the KATRIN WGTS}
|
||||
|
||||
\bigskip
|
||||
\textbf{Type of project}\\
|
||||
\phantom{MM} \textit{project extension}
|
||||
|
||||
\bigskip
|
||||
\textbf{HPC system(s) and corresponding centre(s)}\\
|
||||
\phantom{MM} \textit{Hawk, HLRS}
|
||||
|
||||
\bigskip
|
||||
\textbf{Project ID or project acronym}\\
|
||||
\phantom{MM} \textit{WGTSPseudo2d}
|
||||
|
||||
\bigskip
|
||||
\textbf{Principal investigator}\\
|
||||
\phantom{MM} \textit{Dr. Felix Spanier\\\phantom{MMM} Institut für Theoretische Astrophysik, Universität Heidelberg\\\phantom{MMM} Albert-Ueberle-Str. 2, 69120 Heidelberg, Germany\\\phantom{MMM}felix.spanier@uni-heidelberg.de}
|
||||
|
||||
\bigskip
|
||||
\textbf{Project contributor(s)}\\
|
||||
\phantom{MM} \textit{Anna Josephine Schulze\\\phantom{MMM} Institut für Theoretische Astrophysik, Universität Heidelberg\\\phantom{MMM} Albert-Ueberle-Str. 2, 69120 Heidelberg, Germany\\\phantom{MMM} anna.schulze@stud.uni-heidelberg.de}\\
|
||||
\phantom{MM} \textit{Christian Matthias Sendlinger\\\phantom{MMM} Institut für Theoretische Astrophysik, Universität Heidelberg\\\phantom{MMM} Albert-Ueberle-Str. 2, 69120 Heidelberg, Germany\\\phantom{MMM} christian.sendlinger@stud.uni-heidelberg.de}
|
||||
|
||||
|
||||
\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}
|
||||
\textit{Give a short outline of the scientific background of your research, including references.}\\
|
||||
|
||||
\textit{(about 0.5 to 1 page)}
|
||||
\section{Preliminary Work}
|
||||
\rule{\textwidth}{0.4pt}
|
||||
\textit{Provide a brief summary of your preliminary work in connection with the proposed project, including references.}\\
|
||||
|
||||
\textit{(about 1 to 2 pages)}
|
||||
\section{Description of the Project}
|
||||
\rule{\textwidth}{0.4pt}
|
||||
\subsection{Project Details}
|
||||
\textit{Describe your research project in detail, structured in sub-projects, if applicable. Include discussion of the scientific questions that you are planning to address and the overall scientific goals of the project. It is important that you describe the innovative aspects, impact and topicality of the proposal.}
|
||||
\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}
|
||||
|
||||
\subsubsection{Sub-project 1}
|
||||
\subsubsection{Sub-project 2}
|
||||
\textit{...}\\
|
||||
|
||||
\textit{(1 to 2 pages per sub-project)}
|
||||
\subsection{Review Processes}
|
||||
\textit{Has the underlying research project already successfully undergone a scientific review process? Is the project funded by public money? If yes, please also provide information about the funding source (e.g. State, BMWi, BMBF, DFG, EU, $\dots$) and the funding time frame. If possible, please provide the corresponding review report and upload it as supplemental material.}
|
||||
\section{Numerical Methods and Algorithms}
|
||||
\rule{\textwidth}{0.4pt}
|
||||
\textit{Describe the numerical methods and algorithms that you are planning to use, improve, or develop.}\\
|
||||
|
||||
\textit{(1 to 2 pages)}
|
||||
\bigskip
|
||||
|
||||
\section{Computer Resources}
|
||||
\rule{\textwidth}{0.4pt}
|
||||
\subsection{Code performance and workflow}
|
||||
\textit{Describe \textbf{all} codes, packages or libraries that you need to undertake the project, and how these will enable the research to be achieved. Include for \textbf{\underline{each} code to be used} information about}
|
||||
\begin{itshape}
|
||||
\begin{itemize}\setlength{\itemsep}{-2pt}
|
||||
\item Which code will be used
|
||||
\item On which hardware the code will be used (CPUs, GPUs, etc. or combinations, if applicable)
|
||||
\item How the code is parallelized (pure MPI, mixed MPI/OpenMP, Pthreads, CUDA, etc.)
|
||||
\item The amount of memory necessary (per core, per node and in total)
|
||||
\item Scaling plots \textbf{and} tables with speedup results for runs with typical, parameter sets, problem size, and I/O \textbf{of the planned project} (no general benchmark results are accepted). Scaling data should start with the lowest number of cores possible
|
||||
\item Describe architecture, machine/system name, and problem size used for the scaling plots
|
||||
\item Current job profile (independent jobs, chained jobs, workflow, etc.)
|
||||
\item Describe memory requirements, requirements concerning the High Performance network and I/O requirements
|
||||
|
||||
\end{itemize}
|
||||
\end{itshape}
|
||||
|
||||
{\it \textbf{Important:} please consider the corresponding technical guidelines and requirements (e.g. required minimal code scalability, memory restrictions, etc.) of the chosen machine(s)!}\\
|
||||
|
||||
\textit{If you use third-party codes, include}
|
||||
\begin{itshape}
|
||||
\begin{itemize}\setlength{\itemsep}{-2pt}
|
||||
\item Name, version, licensing model and conditions
|
||||
\item Web page and other references
|
||||
\item Contact information of the code developers.
|
||||
\item Your relationship to the code (developer, collaborator to main developers, end user, etc.)
|
||||
\end{itemize}
|
||||
\end{itshape}
|
||||
\textit{Here we give an example table and plot for presenting scaling and performance information. The presented scaling should range from a single core to the maximal possible number of cores. If this is not doable, the presented scaling should range from the lowest possible number to the maximal possible number of cores for your case. Please \textbf{replace} the text in {\tt Courier} by the appropriate information.}
|
||||
|
||||
\begin{table}[H]
|
||||
\caption{\label{tab_scaling} Scaling behavior of {\tt LINPACK} on {\tt HAWK/Hunter, JUWELS/JUPITER, SuperMUC-NG} at {\tt HLRS, JSC, LRZ}. This test was performed with $5\cdot 10^6$ particles, absolute timings per time step (s) and relative speedup normalized to 1 core are given.}
|
||||
\begin{center}
|
||||
\setlength{\tabcolsep}{10pt}
|
||||
\renewcommand{\arraystretch}{1.2}
|
||||
\begin{tabular}{lrrrr}
|
||||
\#cores & absolute timing (s) & speedup & Performance per core [MFLOP/s]\\
|
||||
\hline
|
||||
1 & 3781.2 & 1.0 & 800 \\
|
||||
2 & \phantom{1}1890.6 & 2.0 & 800 \\
|
||||
4 & \phantom{1} 945.3 & 4.0 & 800 \\
|
||||
8 & \phantom{1} 472.7 & 8.0 & 800 \\
|
||||
16 & \phantom{1} 236.3 & 16.0 & 800 \\
|
||||
32 & \phantom{1} 118.1 & 32.0 & 800 \\
|
||||
64 & \phantom{1} 59.1 & 64.0 & 800 \\
|
||||
128 & \phantom{1} 32.8 & 115.2 & 720 \\
|
||||
256 & \phantom{1} 18.4 & 204.8 & 640 \\
|
||||
512 & \phantom{1} 10.5 & 358.4 & 559 \\
|
||||
1024 & \phantom{1} 6.2 & 614.4 & 480 \\
|
||||
2048 & \phantom{1} 3.7 & 1024.0 & 400 \\
|
||||
4096 & \phantom{1} 2.3 & 1638.4 & 320 \\
|
||||
|
||||
\end{tabular}
|
||||
\end{center}
|
||||
\end{table}
|
||||
|
||||
\begin{figure}[H]
|
||||
\begin{center}
|
||||
\includegraphics[scale=0.75]{Figures/scaling_example.pdf}
|
||||
\end{center}
|
||||
\caption{\label{fig_scaling}Scaling behavior of {\tt code} on {\tt architecture and system} at {\tt location}. This data was obtained with a problem size of {\tt size}.}
|
||||
\end{figure}
|
||||
|
||||
\textit{(1 to 2 pages)}
|
||||
\newpage
|
||||
\subsection{Justification of resources requested}
|
||||
\textit{Outline the amount of resources you request for the current granting period, structured in sub-projects, if applicable.}\\
|
||||
|
||||
\textit{\textbf{If you are requesting different types of resources (e.g. CPUs, GPUs, etc.), please provide the following information and table for \underline{each} type of resource \underline{separately}. If you request resources on several HPC systems or modules, please justify why this is necessary for your project.}}
|
||||
\begin{itshape}
|
||||
\begin{itemize}\setlength{\itemsep}{-2pt}
|
||||
\item Type of run (e.g. pre- /post-processing run, production run, visualization, etc.)
|
||||
\item Problem size for planned runs (e.g. \# particles or the like)
|
||||
\item Number of runs planned
|
||||
\item Number of steps per run
|
||||
\item Wall-clock time per run
|
||||
\item Number of cores used per run (for GPUs: number of cores of the host CPUs)
|
||||
\item Total amount of requested computing time
|
||||
\item Resources for data analytics, if applicable
|
||||
\end{itemize}
|
||||
\end{itshape}
|
||||
|
||||
\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 &
|
||||
Preproc. &
|
||||
P1 &
|
||||
R1 &
|
||||
S1 &
|
||||
W1 &
|
||||
C1 &
|
||||
R1$\cdot$S1$\cdot$W1$\cdot$C1 \\
|
||||
~ &
|
||||
Type 1 &
|
||||
P2 &
|
||||
R2 &
|
||||
S2 &
|
||||
W2 &
|
||||
C2 &
|
||||
R2$\cdot$S2$\cdot$W2$\cdot$C2 \\
|
||||
$\cdots$ &\multicolumn{7}{c}{$\cdots$}\\
|
||||
\hline\hline
|
||||
TOTAL & & & & & & & sum of above\\
|
||||
\end{tabular}
|
||||
\end{center}
|
||||
\end{table}
|
||||
|
||||
\begin{table}[H]
|
||||
\caption{\label{tab_GPU_resources}The following GPU 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/ &
|
||||
\# host cores/ &
|
||||
Total \\
|
||||
&
|
||||
of run &
|
||||
size &
|
||||
&
|
||||
run &
|
||||
step [hours] &
|
||||
run &
|
||||
[core-h] \\
|
||||
\hline\hline
|
||||
Sub-proj. 1 &
|
||||
MD 1 &
|
||||
P3 &
|
||||
R3 &
|
||||
S3 &
|
||||
W3 &
|
||||
C3 &
|
||||
R3$\cdot$S3$\cdot$W3$\cdot$C3 \\
|
||||
~ &
|
||||
MD 2 &
|
||||
P4 &
|
||||
R4 &
|
||||
S4 &
|
||||
W4 &
|
||||
C4 &
|
||||
R4$\cdot$S4$\cdot$W4$\cdot$C4 \\
|
||||
$\cdots$ &\multicolumn{7}{c}{$\cdots$}\\
|
||||
\hline\hline
|
||||
TOTAL & & & & & & & sum of above\\
|
||||
\end{tabular}
|
||||
\end{center}
|
||||
\end{table}
|
||||
\bigskip
|
||||
\textit{(0.5 to 1 page)}
|
||||
|
||||
\section{Resource Management and Work Schedule}
|
||||
\rule{\textwidth}{0.4pt}
|
||||
\subsection{Resource management}
|
||||
\textit{Describe how you intend to manage the resources you have requested. This should include a description of the methods you will deploy to monitor progress of the project and how project results are documented.}\\
|
||||
|
||||
\textit{(0.5 to 1 page)}
|
||||
|
||||
\subsection{Work schedule}
|
||||
\textit{Provide tables and Gantt charts for a clear presentation of the work schedule, structured in sub-projects, if applicable.}
|
||||
|
||||
\subsubsection{Sub-project 1}
|
||||
\textit{...}
|
||||
|
||||
\subsubsection{Sub-project 2}
|
||||
\textit{...}\\
|
||||
|
||||
\bigskip
|
||||
\textit{Example for a Gantt chart:}
|
||||
\begin{figure}[H]
|
||||
\begin{flushleft}
|
||||
\includegraphics[scale=0.82]{Figures/gantt_chart.jpg}
|
||||
\end{flushleft}
|
||||
\caption{\label{fig_workschedule}Work schedule for the project.}
|
||||
\end{figure}
|
||||
|
||||
\section{Key Personnel and Experiences}
|
||||
\rule{\textwidth}{0.4pt}\\
|
||||
\textit{Give a short introduction of the key persons involved in the project and their experience (max 3 persons).}\\
|
||||
|
||||
\textit{(half a page)}
|
||||
|
||||
\section{Bibliographic References}
|
||||
\rule{\textwidth}{0.4pt}\\
|
||||
\textit{Provide recent/most important bibliographic references that are relevant to the project.}\\
|
||||
|
||||
\bigskip
|
||||
|
||||
\end{document}
|
||||
@@ -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 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
Reference in New Issue
Block a user