\section{Outputs of the program}

This section outlines the outputs of PIANOS, that is, the generated Fortran program and its outputs.

\subsection{Outputs of the generator}


The generator outputs Fortran source code into Fortran module files. These files are:
\begin{itemize}
\item definitions.f90, the file containing the Fortran data structures necessary for the simulation
\item proposal.f90, the module that handles proposing new values for variables
\item input.f90, the module that handles reading of data into the Fortran program
\item output.f90, the module that writes out results of the simulation
\item main.f90, the main program, uses other modules and runs the simulation
\end{itemize}

The generator also produces a modified data file and a binary map of missing values for each data file, named datafile\_1.txt and datafile\_missing.txt (naming may vary). These must be in the same relative path that the data files are defined in the model file for the Fortran program.
In addition to these, running of the result program requires \textit{user\_dist.f90}, a Fortran module file that contains the user-defined distributions necessary for the model (or an empty module if none are necessary). This should be in the same directory with the other modules.

\subsection{Outputs of the Fortran program}
\label{outputsfortran}

The Fortran program, once compiled and run, produces three files. The \textit{last values} file that contains the last values at the end of the simulation (replace the initial values file with this to continue the simulation with these), the \textit{update summary} file that details the number of updates proposed for each variable that has been chosen to output and a ratio of accepted updates, and \textit{update values} that contains the values of variables chosen to output for each round of updates not thinned out. Note that the names of the \textit{update summary} and \textit{update values} files must be given in the parameters to output file (See \ref{inputs_tooutput}). The name of the last values file is given when starting the program (See \ref{starting_program})