Merge branch 'master' of github.com:OpenCFD/OpenFOAM-1.7.x
[OpenFOAM-1.7.x.git] / etc / aliases.sh
blob8fedcca66663b9d6aaa327ce3bd404e656d66e34
1 #----------------------------------*-sh-*--------------------------------------
2 # ========= |
3 # \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4 # \\ / O peration |
5 # \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
6 # \\/ M anipulation |
7 #------------------------------------------------------------------------------
8 # License
9 # This file is part of OpenFOAM.
11 # OpenFOAM is free software: you can redistribute it and/or modify it
12 # under the terms of the GNU General Public License as published by
13 # the Free Software Foundation, either version 3 of the License, or
14 # (at your option) any later version.
16 # OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19 # for more details.
21 # You should have received a copy of the GNU General Public License
22 # along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
24 # Script
25 # aliases.sh
27 # Description
28 # Aliases for working with OpenFOAM
29 # Sourced from OpenFOAM-??/etc/bashrc and/or ~/.bashrc
31 #------------------------------------------------------------------------------
33 # Change compiled version aliases
34 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
35 alias wm64='export WM_ARCH_OPTION=64; . $WM_PROJECT_DIR/etc/bashrc'
36 alias wm32='export WM_ARCH_OPTION=32; . $WM_PROJECT_DIR/etc/bashrc'
37 alias wmSP='export WM_PRECISION_OPTION=SP; . $WM_PROJECT_DIR/etc/bashrc'
38 alias wmDP='export WM_PRECISION_OPTION=DP; . $WM_PROJECT_DIR/etc/bashrc'
40 # Toggle wmakeScheduler on/off
41 # - also need to set WM_HOSTS
42 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
43 alias wmSchedON='export WM_SCHEDULER=$WM_PROJECT_DIR/wmake/wmakeScheduler'
44 alias wmSchedOFF='unset WM_SCHEDULER'
46 # Change directory aliases
47 # ~~~~~~~~~~~~~~~~~~~~~~~~
48 alias src='cd $FOAM_SRC'
49 alias lib='cd $FOAM_LIB'
50 alias run='cd $FOAM_RUN'
51 alias foam='cd $WM_PROJECT_DIR'
52 alias foamsrc='cd $FOAM_SRC/$WM_PROJECT'
53 alias foamfv='cd $FOAM_SRC/finiteVolume'
54 alias app='cd $FOAM_APP'
55 alias util='cd $FOAM_UTILITIES'
56 alias sol='cd $FOAM_SOLVERS'
57 alias tut='cd $FOAM_TUTORIALS'
58 alias foam3rdParty='cd $WM_THIRD_PARTY_DIR'
60 # -----------------------------------------------------------------------------