Die Präsentation wird geladen. Bitte warten

Die Präsentation wird geladen. Bitte warten

Projektübung Klimamodellierung André Paul. Vorbesprechung Projektübung Klimamodellierung (05-3034) – A. Paul.

Ähnliche Präsentationen


Präsentation zum Thema: "Projektübung Klimamodellierung André Paul. Vorbesprechung Projektübung Klimamodellierung (05-3034) – A. Paul."—  Präsentation transkript:

1 Projektübung Klimamodellierung André Paul

2 Vorbesprechung Projektübung Klimamodellierung (05-3034) – A. Paul

3 Veranstaltungsdaten Veranstaltungskennziffer: 05-3034 ECTS-Punkte: 2.5 2 SWS, Mi von 13:00-15:00, GEO 1480/90

4 Website http://www.palmod.uni- bremen.de/~apau/projektuebun g/Material_zur_LV.html

5 Inhalt Einführung in die wissenschaftliche Programmierung anhand einfacher Beispielprogramme und ihrer schrittweisen Veränderung Beschreibung des Klimasystems mit Hilfe von Erhaltungsgleichungen Zeitliche und räumliche Diskretisierung von Erhaltungsgleichungen Numerische Lösung diskretisierter Erhaltungsgleichungen auf einem Computer Numerische Experimente mit physikalischen Ozean- und Atmosphärenmodellen

6 Ziel Einführung in die Methoden der Klimamodellierung und deren praktische Anwendung (weg vom Klimamodell als "black box")

7 Bewertung Anforderungen: selbstständige Lösung von Übungsaufgaben auf dem Computer (während der Übung/im Computerraum) Referat

8 Literatur Stocker, T (2005) Skript zur Vorlesung Einführung in die Klimamodellierung, 141 Seiten, PDF (16 MB), korrigierte Version 15.2.2005 –http://www.climate.unibe.ch/~stock er/papers/skript0405.pdf

9 Verwendung von MATLAB o. ä. freigestellt Schleifen, Lesen und Schreiben von Dateien, usw. Einführung in die wissenschaftliche Programmierung mit Fortran 90

10 Reading The following notes are based on –Ellis, T.M.R., Phillips, Ivor R., and Lahey, Thomas M.: Fortran 90 Programming, Addison-Wesley Publishing Company.

11 Telling a Computer What To Do To get a computer to perform a specific task it must be given a sequence of unambiguous instructions or a program. Generating a program: 1. Text file with instructions (Source Code; Fortran 90) 2. Translation into computer-compatible form (Compiler) 3. Executable Program

12 The Linux look and feel Cygwin is a Linux-like environment for Windows that consists of two parts: –A DLL (Dynamic Link Library, cygwin1.dll) –A collection of tools, which provide Linux look and feel Link: http://www.cygwin.com

13 A few useful Linux commands pwd – print name of current/working directory ls – list directory contents cd – change directory mkdir – make directories rm – remove files or diretories man – format and display the on-line manual pages (e.g. man pwd )

14 How to start cygwin Open cygwin window by double-clicking on the start_cygwin DOS batchfile provided with this exercise.

15 Creating and Running a Program Invoke the editor from the Start menu, or type notepad hello.f90 & into the cygwin window to create a file called hello.f90.

16 Creating and Running a Program Type the following source code: Compile by typing g95 hello.f90 (in the cygwin window) Run the program by typing./a.exe ( g95 by default creates an executable called a.exe ) PROGRAM hello PRINT *,hello END PROGRAM hello

17 Basic Fortran 90 concepts All words which have a special meaning in Fortran are known as keywords. Every main program unit must start with a PROGRAM statement which consists of the word PROGRAM followed by the name of the program as given by the programmer.

18 Avoid implicit declaration The special IMPLICIT NONE statement should always be placed immediately after the PROGRAM statement. It instructs the compiler that all variables must be declared before use.

19 Basic building blocks A main program unit: PROGRAM hydrostatic_balance IMPLICIT NONE ! Parameter declarations ! Variable declarations ! Executable statements END PROGRAM hydrostatic_balance


Herunterladen ppt "Projektübung Klimamodellierung André Paul. Vorbesprechung Projektübung Klimamodellierung (05-3034) – A. Paul."

Ähnliche Präsentationen


Google-Anzeigen