Skip to main content Skip to navigation

Useful stuff

Compiling LES channel flow

f95 -r8 -O4 chan110307.f fourier.f -o output.out

nohup output.out > test.log &

Compiling particle tracking

Directories (remote) - LES/Testing/TRACKING/ T280407.f90

Directories (local) - C:\LES\Tracking\Tracking\T280407.f90

Dos2unix T280407.f90 T280407.f90 -437

Dos2unix para2.f90 para2.f90 -437

F95 T280407.f90 –o output.out

nohup output.out > test.log &

Unix Stuff
  • To kill a process;
  • Ps
  • Kill -9 PID
  •  To check jobs running : jobs

  • Copying file from one directory to another : cp /home/tmp/mbl.color.logo.jpg home/mwaring/images/MBL.jpg . To copy an entire directory, use the -r flag: cp -r dir-to-copy/ new-dir/ . For example: cp -r /home/tmp/images/ /home/mwaring/temp-images

  • Deleting a directory ; rm -r directory1

  • Removing end of line spacing from a dos fortran file on unix : brokenfile.f90 fixedfile.f90 -437
  • Renaming mv file1 file2 renames file1 file2
  • Listing details of a file : ls -l
  • Linking f77 to f90. Always use the f90 switch 1f77Compat
PICO
  • [Pico filename]to lounge Pico
  • CTR-V means next page
  • CTR-Y means previous page.
  • CTRL/a Move to the beginning of the current line.
  • CTRL/e Move to the end of the current line.
  • CTRL/v Move forward one page.
  • CTRL/y Move backward one page.
  • CTRL/w Search for text (whereis).
  • CTRL/L Redraw a garbled screen.
  • CTRL/d Delete the current character.
  • CTRL/^ Begin selecting text. *
  • CTRL/k Remove (cut) current line or selected text.
  • CTRL/u Paste (uncut) last cut text at the cursor position.
  • CTRL/j Format (justify) the current paragraph.
  • CTRL/t Spell check the text.
  • CTRL/r Insert (read in) a file into this file.
  • CTRL/o Save (output) the file.
  • CTRL/g View Pico's online help.
  • CTRL/x Exit Pico, saving the file.