forked from teuben/nemo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nemo_start.csh.in
179 lines (141 loc) · 5.39 KB
/
nemo_start.csh.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
#! /bin/csh
#
# nemo_start.csh:
#
# @WARNING@
#
# source this file to start NEMO; this file has some commented lines,
# which you can place in your personal
# ~/.nemo_local.csh
# or site installation
# $NEMO/nemo_local.csh
#
# CSH users can place this in their ~/.cshrc file
# Things via configure
setenv NEMO @NEMO@
setenv NEMOHOST @NEMOHOST@
setenv YAPP @YAPP_DEF@
setenv PGPLOT_DIR @PGPLOT_DIR@
# Basic derived environment variables
setenv NEMOLIB $NEMO/lib
setenv NEMOBIN $NEMO/bin
setenv NEMOOBJ $NEMO/obj
setenv NEMODOC $NEMO/man/doc
setenv NEMODAT $NEMO/data
setenv NEMOINC $NEMO/inc
setenv NEMOSRC $NEMO/src
setenv BTRPATH .:$NEMO/obj/bodytrans
setenv POTPATH .:$NEMO/obj/potential:$NEMO/obj/acc
setenv ACCPATH .:$NEMO/obj/potential:$NEMO/obj/acc
setenv MANIPPATH .:$NEMO/obj/manip:$NEMO/usr/dehnen/falcON/manip
setenv NEMOVER `cat $NEMO/VERSION`
setenv NEMOSYS `uname -s`
setenv NEMOSITE `hostname`
# MANPATH isn't so standard as you may think....
# Ultrix doesn't handle MANPATH
# IRIX is also particular about MANPATH
# Linux needs to have their stuff added back in if none present
if ($?MANPATH == 0) then
if (-e /etc/man.config) then
# this works on linux redhat and mandrake....
set _mandirs=(`grep -w ^MANPATH /etc/man.config | awk '{print $2}'`)
else
# try something else 'sensible'
set _mandirs=(/usr/man /usr/share/man /usr/local/man /local/man /opt/man /opt/SUNWspro/man /usr/openwin/man)
endif
setenv MANPATH $NEMO/man
foreach _mandir ($_mandirs)
if (-e $_mandir) then
setenv MANPATH ${MANPATH}:$_mandir
endif
end
else
echo $MANPATH | grep -s $NEMO/man >& /dev/null
if ($status) setenv MANPATH $NEMO/man:$MANPATH
endif
setenv MANPATH ${MANPATH}:${NEMO}/usr/dehnen/falcON/man
# Set various 'external' things we sometimes need, but only if not set
#if ($?NUMRECLIB == 0) setenv NUMRECLIB $NEMOLIB/libnumrec.a
#if ($?GRAVSIM == 0) setenv GRAVSIM $NEMO/usr/mbellon/gravsim
#if ($?PLPLOT_LIB == 0) setenv PLPLOT_LIB $NEMOLIB
# some useful (?) aliases
#alias keys "ls *.def"
#if (-e $NEMOBIN/miriad) alias nemo "miriad -b $NEMOBIN -p $NEMODOC -d ."
#alias motd 'more $NEMO/etc/motd'
#alias lmake 'make -f $NEMOLIB/Makefile.lib'
#alias omake 'make -f $NEMOLIB/Makefile.obj'
#alias bake 'make -f $NEMOLIB/Makefile.lib'
#alias Test 'make -f Testfile'
#alias makedefs 'make -f $NEMOLIB/makedefs makedefs_help'
# Required dummy defaults that should be overriden in NEMORC.local
# setenv YAPPLIB $YAPP_NULL
# Set your default YAPPLIB, the current YAPP_NULL will do nothing.
# most likely you want to make it $YAPP_PGPLOT or so, but in most of
# those cases you will need to tailor various path elements.
# the next two are actually not really needed, derived from PGPLOT_DIR
# setenv PGPLOT_LIB $PGPLOT_DIR
# setenv PGPLOT_FONT $PGPLOT_DIR/grfont.dat
# you can optionally uncomment and set some of the following PGPLOT variables
# see also "man 5 yapp" for more info
#setenv PGPLOT_BACKGROUND 0 # 0=black in /xs
#setenv PGPLOT_FOREGROUND 1 # 1=white in /xs
#setenv PGPLOT_BACKGROUND white # reverse option for /gif
#setenv PGPLOT_FOREGROUND black # reverse option for /gif
#setenv PGPLOT_GIF_WIDTH 512
#setenv PGPLOT_GIF_HEIGHT 512
#setenv PGPLOT_PS_WIDTH 7800
#setenv PGPLOT_PS_HEIGHT 10500
#setenv PGPLOT_PS_HOFFSET 350
#setenv PGPLOT_PS_VOFFSET 250
# If you use the VoGL library for xyzview, this is the only reasonable default
setenv VDEVICE X11
# tabpp needs this
#setenv $PP_DIR /somewhere/pp_dir
# Particularly if you use shared libraries (e.g. pgplot in $NEMOLIB) you
# may need to change LD_LIBRARY_PATH;
# Change 0 -> 1 if you need this
if (1) then
if ($?LD_LIBRARY_PATH) then
setenv LD_LIBRARY_PATH ${NEMOLIB}:${LD_LIBRARY_PATH}
else
setenv LD_LIBRARY_PATH ${NEMOLIB}
endif
if ("$PGPLOT_DIR" != "$NEMOLIB") then
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:$PGPLOT_DIR
endif
# Hack for Mac, i guess it won't hurt on linux
# on Mac here's another problem: might need to use DYLD_INSERT_LIBRARIES
# similar to the LD_PRELOAD on linux. This might be needed for
# libunsio.{dylib,so} is a case where this was needed
if ($?DYLD_LIBRARY_PATH) then
setenv DYLD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${DYLD_LIBRARY_PATH}
else
setenv DYLD_LIBRARY_PATH $LD_LIBRARY_PATH
endif
endif
# for unsio 1.0.0: $NEMO/py/modules
if (1) then
if ($?PYTHONPATH) then
setenv PYTHONPATH $NEMO/py/modules:$PYTHONPATH
else
setenv PYTHONPATH $NEMO/py/modules
endif
endif
# optional ZENO
if (-e $NEMO/usr/zeno/ZENORC) source $NEMO/usr/zeno/ZENORC
# optional local and personal NEMO things
if (-e $NEMO/nemo_local.csh) source $NEMO/nemo_local.csh
if (-e $HOME/.nemo_local.csh) source $HOME/.nemo_local.csh
if ($path[1] == ".") then
set path = ( . $NEMOBIN $path[2-] )
else
set path = ( $NEMOBIN $path )
endif
rehash
# provide alias to load falcON, if present
#alias falcON 'setenv FALCON $NEMO/usr/dehnen/falcON; source $FALCON/falcON_start'
setenv FALCON $NEMO/usr/dehnen/falcON
source $FALCON/falcON_start
# provide alias to end NEMO
#alias omen 'source $NEMO/nemo_end; unalias omen; alias nemo source $NEMO/nemo_start'
#alias omen 'source $NEMO/nemo_end; unalias omen'