| 28 | '''Install and configure Cygwin''' |
| 29 | Get Cygwin from http://x.cygwin.com/ |
| 30 | Install it by clicking on the Install Cygwin/X now icon. |
| 31 | At the step where you are asked to Setup |
| 32 | in your Cygwin home directory, you should have (or create) a file called {{{.bashrc}}} |
| 33 | Edit it to indicate where some key stuff resides. Mine looks like |
| 34 | {{{ |
| 35 | export LIB="C:\Program Files\Intel\Compiler\Fortran\9.1\IA32\Bin;C:\Program Files\Intel\Compiler\Fortran\9.1\IA32\Lib;C:\Program Files\Microsoft Visual Studio\VC98\LIB;C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Lib\;C:\Program Files\Microsoft Visual Studio\DF98\IMSL\LIB;C:\Program Files\Microsoft Visual Studio\DF98\LIB" |
| 36 | export NETCDF_INCDIR="/usr/local/include" |
| 37 | export NETCDF_LIBDIR="/usr/local/lib" |
| 38 | export UDUNITS_PATH="/usr/local/lib/udunits.dat" |
| 39 | # Ignore case while completing |
| 40 | set completion-ignore-case on |
| 41 | # Make Bash 8bit clean |
| 42 | set meta-flag on |
| 43 | set convert-meta off |
| 44 | set output-meta on |
| 45 | alias less='/bin/less -r' |
| 46 | # alias ls='/bin/ls -F --color=tty --show-control-chars' |
| 47 | alias cdroms='cd ~/src/roms_sed/branches/crs_branch' |
| 48 | }}} |
| 49 | |
| 50 | On a Windows desktop with a two single processors, and hyperthreading turned on, you can set: |
| 51 | {{{export OMP_NUM_THREADS = 4}}} |
| 52 | |
| 53 | Edit {{{makefile}}} to compile with |
| 54 | {{{ |
| 55 | USE_OpenMP ?= on |
| 56 | ... |
| 57 | FORT ?= ifort |
| 58 | }}} |