svn checkout http://pencil-code.googlecode.com/svn/trunk/ pencil-codeYou would normally do this from your $HOME directory. Note: if you do have a password for pencil-code.googlecode.com, check out the code from the https site (instead of the http one):
svn checkout https://pencil-code.googlecode.com/svn/trunk/ pencil-code --username AxelBrandenburgwhere you replace AxelBrandenburg by your gmail name, and the password is the one generated by pencil-code.googlecode.com (→profile →settings).
# # path for pencil code # if (! $?PENCIL_HOME) setenv PENCIL_HOME $HOME/pencil-code if (-r $PENCIL_HOME/sourceme.csh) then set _sourceme_quiet; source $PENCIL_HOME/sourceme.csh; unset _sourceme_quiet endifNote: If you want to change your default $SHELL to tcsh, type
chsh /bin/tcshThe first command prompts you for your normal unix password.
# # path for pencil code # if [ -z $PENCIL_HOME ]; then export PENCIL_HOME=$HOME/pencil-code; fi if [ -e $PENCIL_HOME/sourceme.sh ]; then set _sourceme_quiet; source $PENCIL_HOME/sourceme.sh; unset _sourceme_quiet fi
alias pc 'cd $PENCIL_HOME'
alias pc='cd $PENCIL_HOME'
source .cshrc
source .bashrc
pc |
move to the PC directory |
cd samples/conv-slab |
move to the sample 'conv-slab' which is in a 'samples' directory |
pc_setupsrc |
initialize the local 'src' directory, copy necessary files, etc... |
make |
compile the code |
mkdir data |
create the data directory where all the outputs will be written |
start.csh |
compute the initial setup at time t=0 |
run.csh |
launch the main code that advances the equations in time |
1) log in under a Failsafe session.
2) move the pencil-code directory to the local /scratch disk by typing:
mv pencil-code /scratch3) then add in your home directory a symbolic link pointing to the new location:
ln -s /scratch/pencil-code .