Original version
Rearranged folder tree
Updated Makefile, added different compile modes
Added scripts for profiling output
Modified makefile, included options for gfortran
Small code cleanup: initialized previously uninitialized variables, removed unused variables.
Added output for grid size analysis to file '_grid.dat'
Added full twiss file for CLIC main linac from Adrian as input-files/CLIC-ML-orig-twiss.dat
Changed algorithms in particles_distribute* and particles_move*
to replace the use of floor() by (int).
Results have been verified to produce no change in output for
CLIC-ML-test case.
Rewrote initialization of 'grid->dist' array in 'grid_init_phys()' so that Green's function is calculated only once for every point.
Introduced new array 'grid->pot' as a help array for storing Green's function.
In grid_init_phys, re-corrected the half a cell offset in the initialization of grid->offset to the original expression. NOTE: This changes the output results from previous version!

The previous offset shifted the indeces in particles_move such that, in particular on the boundary in x+, the routine was using indeces outside of the phi-array for the calculation of the electric fields, leading to random unphysical behaviour at the boundary.

With the previous routine CIC was centred on cell corners, with the new one, CIC is centred on the cell centre. In cases where the beam becomes smaller than a grid cell (e.g CLIC-ML), the centering of the CIC can be crucial for resolving the seeds of the instability.
Added a loop around the lattice in main, to be able to run several turns.
Added a required line in config file, specifiying the number of turns.

Also changed the upper limit index in the main loop over interaction points to
one less, so that the last twiss line is used only as a 'next' lattice point.
NOTE: This changes the output from previous versions for LINEAR structures!
More precisely, it removes the last interaction point output for the CLIC
Main Linac, which was giving nonsence results.
For looping around the lattice consistently in circular machines, the
first line in the twiss file should be repeated at the bottom of the file,
but with s -> s (of first line) + C (the circumference of the machine).

Also added config and twiss files for the CLIC Damping Ring, consistent
with the modifications, and a .gitignore file.
Modified limits on particle coordinates in distribute functions, to be consistent with recent change in grid offset.
Added CERN copyright and licence info to .c files.