The Pencil Code is a high-order finite-difference code for compressible hydrodynamic flows with magnetic fields and particles. It is highly modular and can easily be adapted to different types of problems. The code runs efficiently under MPI on massively parallel shared- or distributed-memory computers.
where <your-username> is your GitHub username that you should use identically to register on account.pencil-code.org for write access to the code repository.
For read-only access via SVN, a username is not required:
See pencil-code/config/hosts/*/*.conf for sample config files. For more
details, see the manual in the doc/ directory (also available
here).
If you are using bash and you do not want to “source sourceme.sh” on each
session, you can insert the following into your .bashrc and/or .bash_profile:
export PENCIL_HOME=$HOME/pencil-code [or wherever you have the code]
_sourceme_quiet=1; . $PENCIL_HOME/sourceme.sh; unset _sourceme_quiet
Around 100 people have contributed to various extent during the
nearly 20 years of Pencil Code history.
The current list of contributors shows the temporal
check-in activity of the those who stayed connected with the code
over the various host changes (Nordita 2001-2007, Google Code 2007-2015,
and Github since 2015).
Some additional contributors are also listed in the manual.
How to contribute to the Pencil Code
For all changes to the code, make sure the auto-test still runs
If you have write access: check in your changes and make sure you can
fix possible problems emerging on travis-ci.com as well as the
minutely, hourly, and daily auto-tests.
If you have only read access: fork this repository and use pull requests to contribute.
The Pencil Code
The Pencil Code is a high-order finite-difference code for compressible hydrodynamic flows with magnetic fields and particles. It is highly modular and can easily be adapted to different types of problems. The code runs efficiently under MPI on massively parallel shared- or distributed-memory computers.
The Pencil Code is available from pencil-code.org and is mirrored to GitHub. It was previously hosted at Google Code.
In order to checkout the code with read-write premissions Subversion, use the command
where
<your-username>is your GitHub username that you should use identically to register on account.pencil-code.org for write access to the code repository.For read-only access via SVN, a username is not required:
To get started, run one of the samples:
To set up the symbolic links and compile the code:
To create the initial condition and run the code:
See
pencil-code/config/hosts/*/*.conffor sample config files. For more details, see the manual in thedoc/directory (also available here).If you are using bash and you do not want to “source sourceme.sh” on each session, you can insert the following into your .bashrc and/or .bash_profile:
Documentation
List of Contributors
How to contribute to the Pencil Code
For all changes to the code, make sure the auto-test still runs
If you have write access: check in your changes and make sure you can fix possible problems emerging on travis-ci.com as well as the minutely, hourly, and daily auto-tests.
If you have only read access: fork this repository and use pull requests to contribute.
Code of Conduct
License