SYNCH

Here you can find a cleaned-up version of the SYNCH accelerator design code. It is basically a version from 1994, plus some recent changes by Ernest Courant, with fixes so that it compiles reasonably cleanly on a modern compiler. The files currently available are:

To build a SYNCH executable, all you really need to do is to enter the directory that the ZIP file unpacks into, and type make. This creates an executable called synch09 which will not do any graphics.

If you wish graphics capabilities, you need to perform some extra steps. First, unpack the gli-gks library. Change into the directory that it unpacks into, then type patch -p1 -i dir/gli-gks-nox.patch, where dir is the directory in which the GLI-GKS patch file resides. Type make. Now go back into the SYNCH directory, and type make synch09-gks GLI=dir, where dir is the directory where the GLI-GKS library is located. This will create an executable called synch09-gks. Note that the code is only capable of producing PostScript graphics. The code produces output files SYNCH###.PS, where ### is replaced with 000 for the first PostScript file output, 001 for the second, etc.

If you use the shell script, it takes one argument (call it name), which is the name of the SYNCH input file. If that filename doesn't exits, then it looks for a file called name.syn. Say the resulting input file is of the form base.ext. It then runs SYNCH, and renames the output to base.syo, and if any PostScript files were output they are renamed to base-###.ps. In addition, it creates Encapsulated PostScript files from these and names them base-###.eps. The shell script should be modified to contain the location of your synch executable.

For compiling under Microsoft Windows, the most straightforward method is to first install cygwin. Then one can follow all the above instructions in the cygwin environment. You will need at least to install the gcc4-fortran, make, and patch packages to follow the instructions here. For the shell script to run, you will also need the ghostscript and ed packages.