Meteorology 227 - Computational Meteorology

Home News Syllabus Lectures Problems Programs Misc

Exam archive: 2008

Top Ten Languages You Should Know (eWeek magazine)

Printing on the Meteorology Maproom (3008) Laser Printer

Students should now be able to print on the the meteorology maproom laser printer (3008 Agronomy Hall). Doing so is very similar to printing on the Durham printers described below. The general form of the command is:

lpr -G subsidy_username -Pah3008-lj4250 filename

For example:

lpr -G subsidy_flory -Pah3008-lj4250 my_program.f90

This command should be entered from a terminal window on any of the classroom or maproom machines.

This will create a printout of the designated file and a cover sheet with your ISU NetID identifying the owner of the printout. Printing will cost $0.03 per sheet and you will not be charged for the cover sheet. Once your subsidy runs out, charges will appear on your Ubill. If you want the charges to go directly to your Ubill rather than using your subsidy account, you can type:

lpr -G ubill_username -Pah3008-lj4250 filename

For example:

lpr -G ubill_flory -Pah3008-lj4250 my_program.f90

Creating a file of your output

To create a file of your required test runs, you can use the command 'script' to capture everything that goes to standard output. To use the command, type:

script

at the command prompt. Once done, everything that goes to the screen will be captured in a file called 'typescript'. When you are done capturing your output, enter:

CNTL-D

You should now be able to list the contents of the file 'typescript' using 'more' or 'less'.

If you would like to tell the program what to name the output file, use the -a flag. For example:

script -a hw1_flory.out

will capture everthing sent to the screen to a file called 'hw1_flory.out' when 'CNTL-D' is entered.

Submitting your homework for grading

To turn in your homework for grading, follow the instructions below:
  • Create a copy of your finished program called hw#_YOURLASTNAME.f90. For example, for homework #1, I would create hw1_FLORY.f90.
  • Create a copy of your output called hw#_YOURLASTNAME.out. For example, for homework #1, I would create hw1_FLORY.out.
  • Send both of these files as an attachment to: mteor227@iastate.edu

Printing from the Meteorology computer system

Following the instructions here will cause the files to print at Durham and then appear in a mailbox (bin) there. I also give an alternative method in case the primary one does not work for you.

Primary method To do this, first determine a bin number where you want the file to go. Durham bin numbers are between 200 - 475. You choose a number, but it is best to avoid commonly used simple numbers like 200, 300, 400, 222,333,444. You will also need to specify that you want to use your ISU subsidied account for the print charges. To print your files, enter :

lpr -B ### -G subsidy_username filename

For example:

lpr -B 153 -G subsidy_flory my_program.f90

where ### is the bin number you choose and the option "-B" uses an uppercase letter. The printouts will go that bin in the large computer lab on the first floor of Durham (Durham 139).

Mailing files from the Meteorology computer system

An alternative to method of printing your file would be to mail your program to your account and open it on a machine which has access to a local printer. The method you are probably most comfortable with using is WebMail. Since most of you are more familiar with WebMail than I, I won't describe its use here. Give it a try. There really isn't a good alternative using Linux unless you want to learn a new mail handler.