radiasoft / zgoubi

Git repo for zgoubi source code
https://sourceforge.net/projects/zgoubi/
GNU General Public License v2.0
9 stars 3 forks source link

zgoubi

Building in Docker

To download and build zgoubi and execute the tests on a system with Docker installed and the Docker service running, execute the following in a command-line shell such as bash:

git clone https://github.com/radiasoft/zgoubi
cd zgoubi
./travis.sh

This will use cmake to build the master branch of the zgoubi repository. Then it will use the companion package ctest to run the zgoubi test suite. Please submit an issue describing any problems you encounter.

Launching an Interactive Docker Session

For an interactive, command-line interface to the docker image, execute the following docker command:

docker run -it --rm -u vagrant -v "$PWD":/home/vagrant/src/radiasoft/zgoubi "${1:-radiasoft/beamsim}" bash

Examples

These examples are maintained. Efforts are made to ensure that they are executable with the latest version of zgoubi on the author's master branch. In particular, some are part of the tools/compare procedure which tests their repeatability.

The example sub-folders found in exemple have the similar following content:

Zgoubi needs a zgoubi.dat as input file. That zgoubi.dat is obtained by copy-pasting thisExampleDataFile.dat or thisExampleDataFile.res file in that folder, to zgoubi.dat. (that works with a .res file since the first part of a .res zgoubi result file is a copy of the zgoubi.dat file that it stems from). Note that Zgoubi, instead, also accepts the command zgoubi -inFile thisExampleDataFile.dat/.res.

Some of these examples are discussed in Part C of the users' guide.

The folder exemples/tools is dedicated to the following: