Introduction to Fortran and Fortran Compiling. Outline  Surfing www.mcsr.olemiss.edu websitewww.mcsr.olemiss.edu  Logging into the system via ssh 

Slides:



Advertisements
Similar presentations
Legal Meetings: Extended Instructions on Movica and Screencast.
Advertisements

Introduction to HT-IDE3000 Micro-C development System Department.
Remote Access Work from any location into your office PC.
How to access AUXDATA March If you have not received a Username from your DSO-IS, do not go any further. Send a request to your FSO-IS/SO-IS asking.
CSCI 1411 FUNDAMENTALS OF COMPUTING LAB Lab Introduction 1 Shane Transue MSCS.
Introduction to IMSL and VNI Welcome to IT’s seminar on Visual Numerics Inc (VNI) package Sam Gordji, Weir 107.
Introducing the Command Line CMSC 121 Introduction to UNIX Much of the material in these slides was taken from Dan Hood’s CMSC 121 Lecture Notes.
INF 123: Software Architectures, Distributed Systems, and Interoperability Discussion Session Week 3 - Spring 2008 Instructor: Prof. Richard N. Taylor.
The Internet. Telnet Telnet means using your computer as a terminal. All commands you type are sent to the host computer you are connected to and executed.
CS1020: Intro Workshop. Topics CS1020Intro Workshop Login to UNIX operating system 2. …………………………………… 3. …………………………………… 4. …………………………………… 5. ……………………………………
Dayu Zhang 9/3/2014 Lab01. Lab Instructor: Dayu Zhang Office Hour Mon/Wed 10:40am – 11:10am Room A201 Lab Website
Course Introduction and Getting Started with C 1 USF - COP C for Engineers Summer 2008.
A Guide to MySQL 3. 2 Objectives Start MySQL and learn how to use the MySQL Reference Manual Create a database Change (activate) a database Create tables.
Activating Pilot Account ( first time users ) Web-based Activation Browse to 1. Click on the link on the lower right that says.
Engineering H192 - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect 4P. 1Winter Quarter Introduction to UNIX.
1 C/C++ Compiling. 2 Outline Surfing websitewww.mcsr.olemiss.edu Logging into the system via ssh Brief History of C/C++ languages.
1 C/C++ UM/MCSR Last modified: September 3, 2008.
A crash course in njit’s Afs
Agenda What is Computer Programming? The Programming Process
LGC Website and Customer On-line Tools LGC RESOURCE 2014.
BIF713 Operating Systems & Project Management Instructor: Murray Saul
CS110/CS119 Introduction to Computing (Java)
1 Working with MS SQL Server. 2 Objectives You will be able to Use Visual Studio for GUI based interactive access to a Microsoft SQL Server database.
Overview of Linux CS3530 Spring 2014 Dr. José M. Garrido Department of Computer Science.
Connecting to USF Network for Web Site SSH Secure Shell is the FTP program you will use to download your http files onto the USF server. To get the SSH.
1 C/C++ UM/MCSR. 2 Logging into the system using ssh Logging into the system from Windows: –Start the secure shell client: Start->Programs->SSH.
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
1 INITIAL SETUP OF THE ST ScI ELECTRONIC GRANTS MANAGEMENT SYSTEM BY AO DESIGNEES September, 2000.
O.S.C.A.R. Cluster Installation. O.S.C.A.R O.S.C.A.R. Open Source Cluster Application Resource Latest Version: 2.2 ( March, 2003 )
CCPR Workshop Introduction to the Cluster July 13, 2006.
1 Lab 2 “Hello world” in Unix/Linux #include "std_lib_facilities_4.h" int main(){ cout
Getting started: Basics Outline: I.Connecting to cluster: ssh II.Connecting outside UCF firewall: VPN client III.Introduction to Linux IV.Intoduction to.
Compiling a C Program. Before we can begin we must open a telnet session to phobos. There are a number of ways to do this, but the easiest is to click.
Introduction to Fortran Welcome to IT’s seminar on Fortran Sam Gordji, Weir 107.
REMOTE LOGIN. TEAM MEMBERS AMULYA GURURAJ 1MS07IS006 AMULYA GURURAJ 1MS07IS006 BHARGAVI C.S 1MS07IS013 BHARGAVI C.S 1MS07IS013 MEGHANA N. 1MS07IS050 MEGHANA.
Unix and Samba By: IC Labs (Raj Kidambi). What is Unix?  Unix stands for UNiplexed Information and Computing System. (It was originally spelled "Unics.")
Creating Programs on UNIX This term you can create programs on UNIX or you can create programs using a C++ compiler on your PC. This set of slides steps.
1 ACTIVATION OF THE ST ScI ELECTRONIC GRANTS MANAGEMENT SYSTEM BY INSTITUTIONAL AUTHORIZING OFFICIALS January, 2001.
] COREY PEARSON [ ASUG INSTALLATION MEMBER MEMBER SINCE: 2008 CHAVONE JACOBS [ ASUG INSTALLATION MEMBER MEMBER SINCE: 2003 ALLAN FISHER [ ASUG INSTALLATION.
Introduction to Programming Using C An Introduction to Operating Systems.
VDI-in-a-box TM 1 Kaviza Client End User Quick Start Manual.
Unix Machine In Computer Science for Teaching Cliff Zou Spring 2015.
Lesson 3-Touring Utilities and System Features. Overview Employing fundamental utilities. Linux terminal sessions. Managing input and output. Using special.
1 Day 2 Logging in, Passwords, Man, talk, write. 2 Logging in Unix is a multi user system –Many people can be using it at the same time. –Connections.
Introduction to SAS/willow (Unix) Sam Gordji Weir 107.
Unix Servers Used in This Class  Two Unix servers set up in CS department will be used for some programming projects  Machine name: eustis.eecs.ucf.edu.
1 Getting Started with C++ Part 2 Linux. 2 Getting Started on Linux Now we will look at Linux. See how to copy files between Windows and Linux Compile.
Introduction to IMSL and VNI Welcome to OIT’s seminar on IMSL Numerical Libraries Sam Gordji, Weir 107.
Agenda Overview of Seneca Computer System File Servers / Student Computer Accounts Telnet application How to Logon to Learn / Phobos accounts How to Change.
THE C PROGRAMMING ENVIRONMENT. Four parts of C environment  Main menu  Editor status line and edit window  Compiler message window  “Hot Keys” quick.
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
Oracle Business Intelligence Foundation – Testing and Deploying OBI Repository.
Object Oriented Programming COP3330 / CGS5409.  Compiling with g++  Using Makefiles  Debugging.
BIF703 FTP (File Transfer Protocol) Utility vi editor Utility.
CS 120 Extra: The CS1 Server Tarik Booker CS 120.
Object Oriented Programming COP3330 / CGS5409.  Assignment Submission Overview  Compiling with g++  Using Makefiles  Misc. Review.
PuTTY Introduction to Web Programming Kirkwood Continuing Education by Fred McClurg © Copyright 2016, All Rights Reserved ssh client.
Assignprelim.1 Assignment Preliminaries © 2012 B. Wilkinson/Clayton Ferner. Modification date: Jan 16a, 2014.
Linux & Joker – An Introduction
GRID COMPUTING.
CS1010: Intro Workshop.
Andy Wang Object Oriented Programming in C++ COP 3330
Introduction to Programming the WWW I
Creating Programs on UNIX
File Transfer Olivia Irving and Cameron Foss
INSTALLING AND SETTING UP APACHE2 IN A LINUX ENVIRONMENT
Web Programming Essentials:
Andy Wang Object Oriented Programming in C++ COP 3330
Class Projects and Environment
Presentation transcript:

Introduction to Fortran and Fortran Compiling

Outline  Surfing websitewww.mcsr.olemiss.edu  Logging into the system via ssh  Basic Structure and Syntax of Fortran  A quick glance on PICO editor  More detailed look on compilers and compiling commands  Application of Fortran Compiling

Logging into the system using ssh  Logging into the system from Windows: Start the secure shell client: Start->Programs->SSH Secure Shell->Secure Shell Client Connect to willow: From the secure shell window, click Quick Connect. Then, from the Connect to Remote Host pop-up window, enter: Hostname: HostName User Name: UserName Click Connect.  Logging into the system from Unix: Start the Terminal: Finder  Utilities  Terminal Type the following command: ssh Enter your password  If you are a windows user and you want to download ssh; Go to IT and click on the SSH Secure Shell 3.1 link. Secure Shell 3.1  If you are a Unix user, ssh will come with the operating system

Simple Fortran Program c This program adds two numbers and displays the result program add double precision a,b,c write(*,*) 'Input two numbers (include a decimal point)' read (*,*) a,b c=a+b write (*,*) 'The sum of the numbers you entered is', c stop end

The PICO Editor  General Command Write editor contents to a file[Ctrl] o Save the file and exit pico[Ctrl] x Spell Check[Ctrl] t Justify the text[Ctrl] j  Moving around in your file Move one character to the right[Ctrl] f or right arrow key Move one character to the left[Ctrl] b or left arrow key Move up one line[Ctrl] p or up arrow key Move down one line[Ctrl] n or down arrow key

More detailed look into Compilers and Compiling commands  Fortran Compilers at UM/MCSR: MIPSPro Fortran Compilers, version 7.4, on sweetgum Portland Group and MPICH Fortran compilers on mimosa Intel Fortran Compilers(7.1, 8.0 and 9.0) on redwood GUI g77 on willow Sun’s Forte f90 on willow

Sweetgum  MIPSPro Fortran Compilers, version 7.4 To compile with f77 on sweetgum, enter:  f77 filename.for To compile with f90 on sweetgum, enter:  f90 filename.for

Mimosa  Portland Group and MPICH Fortran compilers To compile with the MPICH Fortran compilers, enter:  /usr/local/apps/pgi-5.2/linux86/5.2/bin/pgf77 filename.for To compile with the PGI SDK compilers, enter:  / usr/local/apps/pgi-6.1/linux86/6.1/bin/pgf90 filename.for

Redwood  Intel Fortran Compilers(7.1, 8.0 and 9.0) Before using the Fortran Compiler on redwood, you must first load the appropriate Intel compiler module. Then, to compile:  ifc filename.forif using the 7.1 compiler  ifort filename.forif using the 8.0 or 9.0 compilers

Loading the appropriate Intel Compiler Module  Several versions/builds of Intel compilers are available on redwood. To compile, you must first pick which compiler version module you want to load, then load it. Before you can use the module command, you must source the correct setup file for your shell.. /usr/share/modules/init/sh (if using ssh) (There should be a space between. and /opt)  Then you use the module command: module list (to see if any other versions of compiler modules are loaded) module purge (to unload any other versions of compiler modules) module list (to verify that other versions were successfully unloaded) module avail (to see what versions of compiler modules are available to load)  For example, to load the latest 9.1 version of the F Compilers: module load f91 module list  These are the names of the modules and the compiler versions they correspond to: intel-compilers for fortran 7.1 intel-compilers for fortran 8.0 intel-compilers for fortran 8.0 intel-compilers for fortran 9.0 intel-compilers for fortran 9.1

Willow  Sun’s Forte f90 To compile with f90, enter:  f90 filename.for  If there are no compilation errors this creates an executable file called a.out. To execute the Fortran program, enter:./a.out.  GUI g77 To compile with g77, enter:  g77 filename.for  If there are no compilation errors this creates an executable file called a.out. To execute the Fortran program, enter:./a.out.

More about Compiling Commands  If there are no compilation errors, the previously mentioned Fortran Commands create an executable file called a.out. To execute the Fortran program, enter:./a.out.  To create an executable file with another filename, use the –o flag, for example: f90 –o exefilename filename.for  For more information about Fortran compilers, Go to: Software  Fortran

How to run a compiled files  The compiling commands create an executable file known as a.out unless specified otherwise.  To execute your program, type:./a.out and press Enter.

MCSR Fortran Compilers MCSR's Fortran compilers and platforms are available for instructional or research use for all students, faculty, and staff of Mississippi's eight public universities. Users should decide which compiler is best suited for their application. Compilers on SUN are for fast jobs with a quick turn around, while compilers on sweetgum and magnolia are designed for larger, more computationally intensive jobs.

MCSR Accounts  MCSR is pleased to provide free computer accounts on redwood, sweetgum, and mimosa for any student, faculty, or research staff member at any of Mississippi's 8 publicly funded universities.  If you can't access an existing account, please e- mail or call one of the consultants at You may request a password reset from the MCSR Online Account Manager.