lab13

CREATING ARCHIVES ON DISK

The time has come to archive your work on a CD. This lab will pace you through the steps required for burning a CD. The lab will approach the subject from a command line format and a gui format. For the gui format a powerful burn utility called k3b exists that is extremely easy to use and user friendly. But, some times the command line format is useful too.
When data is burned onto a CD it creates an imaged of the data: iso image file. This image file is then burned on CD where the data is takes its original form. When using the command line then user will have to execute 2 steps
  • creating an iso image
  • recording the iso image on the disk
The iso image is created using the
  • mkisofs command
The iso image is recorded on the disk using the
  • cdrecord command

SUMMARY OF STEPS:

  1. Insert the cd into the drive
  2. make an iso image of the data (dirs, files, etc.)
  3. use cdrecord to record the iso image onto the disk
  4. the disk will eject
  5. Re-insert the disk
  6. mount the disk using
    • <bash> mount /mnt/cdrom
  7. list the contents in /mnt/cdrom. Check if everything is ok
  8. make sure all shells are not in /mnt/cdrom
  9. eject the cd using
    • <bash> eject /mnt/cdrom

BURNING A CD

ACCESSING TECPLOT USING THE POSIX LIBRARY FUNCTIONS

In the previous lab the user was able to access the matlab program from an f90 code, similarly using the "POSIX" functions that allow the C, C++, f77 and f90 to interface with unix command line operations the tecplot program can be invoked from the f90 source code. In this example the program is "code.x" is executed with a second argument which is the tecplot .plt file that needs to be opened. The program calls the tecplot program using the second argument as the input file. Download this snippet of a code along with the airfoil.plt file. Place the files in their appropriate directories.
NOTE: When using the intel compiler v71 ( the current one) the -Vaxlib libraries need to accessed when linking the code.

Build the executable
<bash> ifc -w -g main.f90 -o ../bin/code.x -Vaxlib
execute the code
<bash> cd ../bin/
<bash> ./code.x ../dat/airfoil.plt