Coder Social home page Coder Social logo

konosubakonoakua / beam-zgoubi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from radiasoft/zgoubi

0.0 0.0 0.0 13.56 MB

Git repo for zgoubi source code

Home Page: https://sourceforge.net/projects/zgoubi/

License: GNU General Public License v2.0

Shell 0.04% C++ 0.51% Python 0.26% C 1.04% Objective-C 0.01% Fortran 96.40% Assembly 0.02% TeX 0.53% Gnuplot 0.04% Makefile 0.64% CMake 0.52%

beam-zgoubi's Introduction

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:

  • one or more zgoubi input data files for a given example (a file with suffix .dat), and the corresponding result files (*.res suffix), and sometimes in addition *.eps plot files or other forms of computation outputs,
  • or just one or more result files (suffix .res)

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:

  • running compare will run some of the examples, and compare their outcomes (logged in compare.out) with reference ones logged in compare.out_reference. Absence of (major) differences between compare.out_reference and compare.out is a sign of a good installation of zgoubi.

beam-zgoubi's People

Contributors

bnash avatar dtabell avatar moellep avatar rouson avatar zbeekman avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.