Skip to content

Commit 51db40c

Browse files
committed
added documentation on installing MFC
1 parent b3657d0 commit 51db40c

File tree

1 file changed

+70
-0
lines changed

1 file changed

+70
-0
lines changed

doc/richardson_MFC.md

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# How to get MFC up and running on Richardson
2+
3+
* Log in
4+
5+
* Make this an alias! e.g. $ richardson
6+
* Append
7+
alias richardson='ssh -Y <your_userid>@richardson.caltech.edu'
8+
RICHARDSON="<user name>@richardson.caltech.edu"
9+
to your ~/.bash_profile
10+
on your local computer
11+
* Add your private key to your Richardson keychain
12+
* $ cat ~/.ssh/id_rsa.pub | ssh <your_userid>@richardson.caltech.edu 'cat >> ~/.ssh/authorized_keys'
13+
14+
* Clone MFC, e.g.
15+
* $ git clone https://github.com/ComputationalFlowPhysics/MFC_private.git
16+
* $ git status
17+
* shows what branch you are on
18+
* $ git checkout <branch>
19+
* switch to branch <branch>
20+
21+
* Compile MFC
22+
* Get open-mpi
23+
* Show currently loaded modules
24+
* $ module list
25+
* Show possible module files
26+
* $ module avail
27+
* Load open-mpi
28+
* For example: $ module load openmpi-1.8/gcc
29+
* Add this to your .bashrc so it happens at login time
30+
* Append
31+
module load openmpi-1.8/gcc
32+
to your ~/.bashrc
33+
on Richardson
34+
* Install FFTW
35+
* $ cd installers
36+
* $ ./install_fftw.sh
37+
* Install LAPACK [if QBMM]
38+
* $ cd installers
39+
* $ ./install_lapack.sh
40+
* Make MFC
41+
* $ cd ../ [or to MFC directory]
42+
* make
43+
* make test
44+
45+
* Moving files from local computer to Richardson [While on local computer. Can't do other way around]
46+
* $ rsync -rvz <local files> <user name>@richardson.caltech.edu:<richardson location>
47+
* or $ rsync -rvz <local files> $RICHARDSON:<richardson location>
48+
* Or from Richardson to local computer
49+
* $ rsync -rvz <user name>@richardson.caltech.edu:<richardson location> <local files>
50+
* or $ rsync -rvz $RICHARDSON:<richardson location> <local files>
51+
* Can also use GUI-based tools like FileZilla
52+
53+
* How to visualize using gnuplot on Richardson
54+
* You need XQuartz on your MacOS [or X11 on Linux]
55+
* Install at https://dl.bintray.com/xquartz/downloads/XQuartz-2.7.8.dmg
56+
* Make sure you logged into Richardson using ssh -Y [or ssh -X]
57+
* Check if your X server is working by logging into Richardson and issuing
58+
$ xclock
59+
* Copy contents of https://raw.githubusercontent.com/sbryngelson/dotfiles/master/.gnuplotrc_x11
60+
into your ~/.bashrc
61+
* now you can use
62+
$ myplot cons.1.0000000
63+
for, e.g., conservative and primitive serial data files cons.* prim.*
64+
$ myplots X probe1.dat
65+
for probe data [variable numeber X]
66+
$ animate1d X cons.1.*
67+
to animate cons.1.* X times
68+
69+
70+

0 commit comments

Comments
 (0)