Data Assimilation Training Course, Reading, 5-14 May 2010 Hands-on derivation of tangent linear and adjoint codes Angela Benedetti with contributions from:

Slides:



Advertisements
Similar presentations
1 CASUS Authoring System 07/2010 E-Learning & E-Teaching Welcome to the CASUS Authoring System!
Advertisements

Chapter 11 Differentiation.
Datamax/MCL Off-Line License Activation Method
Slide 1 Insert your own content. Slide 2 Insert your own content.
Software Re-engineering
Robofest 2005 Introduction to Programming RIS 2.0 RCX Code.
HOW TO USE … SAMIEEE FOR VOLUNTEER POSITIONS WITH AUTOMATIC ACCESS.
Combining Like Terms. Only combine terms that are exactly the same!! Whats the same mean? –If numbers have a variable, then you can combine only ones.
Tangent linear and adjoint models for variational data assimilation
0 - 0.
6.1 day 1: Antiderivatives and Slope Fields Greg Kelly, Hanford High School, Richland, WashingtonPhoto by Vickie Kelly, 2009 Kitt Peak National Observatory,
1 Reverse a Journal Find an existing journal and reverse it in either: A original period B a different period.
Autograph Introducing Autograph - Jim Claffey 7/08/ Using Autograph to Teach Concepts in the Calculus 1.Defining the slope of a curve at a point.
©2010 AECsoft USA Confidential External User Guide AECsoft USA, Inc Yorktown, Suite 435 Houston TX ©2010 AECsoft USA Confidential.
Cummins® INSITE™ Update Manager Training
Copyright © 2010 Pearson Education, Inc. Systems of Linear Equations in Three Variables Learn basic concepts about systems in three variables Learn basic.
1 Media-X eWalk Walkthrough Install Training Office of Institutional Education Programs.
My UM Portal Click on the weblink Register for education and exams
Services Course Evaluation. 2 How to complete the Evaluation The Evaluation consists of 10 multiple choice questions to test.
Freight Management System
Xilinx 6.3 Tutorial Integrated Software Environment (ISE) Set up basic environment Select Gates or Modules to Be simulated (Insert Program Code) Run Waveform.
LFCDS SkyMail & SkyDrive Full Student Orientation
DCMS: Training Manual Help Desk Management July, 2010.
A Producer’s Guide to Chubb’s SMART Application Platform
24-Aug-14 HTML Forms. 2 What are forms? is just another kind of HTML tag HTML forms are used to create (rather primitive) GUIs on Web pages Usually the.
Page 1 of 14 To the Voltage Online Training Course Voltage encryption is used to protect sensitive and personal information sent via to external.
Getting Started with D2A
How creating a course on the e-lastic platform 1.
Addition 1’s to 20.
School Census Summer 2011 Headlines Version Jim Haywood Product Manager for Statutory Returns.
Comparison of Old and New Application
1 MA 1128: Lecture 05 – 9/12/14 Inequalities And Absolute Values.
2.4 – Solving Equations with the Variable on Each Side.
Page 1 of 15 Welcome To the ETS – Crown Mineral Activity Road Allowance Online Training Course This module describes the process for initiating a CMA application.
13-1 Physics I Class 13 General Rotational Motion.
Use addition to eliminate a variable
Page 1 of 16 The Metis Direct Purchase functionality is to allow users to submit a request to acquire Crown Petroleum and Natural Gas (P&NG) and Oil Sands.
Click Here for Download the Installation Files Click Here for Guide How to Extract Installation Files.
Assimilation Algorithms: Tangent Linear and Adjoint models Yannick Trémolet ECMWF Data Assimilation Training Course March 2006.
Y.-R. Guo WRFVar code development Tangent Linear and Adjoint Code Development Yong-Run Guo 1 National Center for Atmospheric Research.
PNPBCEC Examination. REGISTRATION Username Password.
Welcome to (insert course name) (customize with instructor/course/section #)
1 How to start the Online Labs module ?. 22 System Requirement for doing Online Labs Before you start your course, make sure that you have following system.
1 Install FTP for Curriculum Development Professional Development Training.
6.1: Antiderivatives and Slope Fields Greg Kelly, Hanford High School, Richland, Washington.
6.1 day 1: Antiderivatives and Slope Fields Greg Kelly, Hanford High School, Richland, Washington.
1 How to start the Online Labs module ?. 22 System Requirement for doing Online Labs Before you start your course, make sure that you have following system.
6.1: Antiderivatives and Slope Fields. First, a little review: Consider: then: or It doesn’t matter whether the constant was 3 or -5, since when we take.
Milestone SAP Portal Learning at the Lakes August 12, 2009.
In this section, we will consider the derivative function rather than just at a point. We also begin looking at some of the basic derivative rules.
Analytical Toolbox Integral CalculusBy Dr J.P.M. Whitty.
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.
Remote Access Usages. Remote Desktop Remote desktop technology makes it possible to view another computer's desktop on your computer. This means you can.
6.5: RELATED RATES OBJECTIVE: TO USE IMPLICIT DIFFERENTIATION TO RELATE THE RATES IN WHICH 2 THINGS ARE CHANGING, BOTH WITH RESPECT TO TIME.
MicroType™ 4 Victoria Putnam Spring Woods Middle School.
Tangent linear and adjoint models for variational data assimilation
Slope Fields Greg Kelly, Hanford High School, Richland, Washington
Tangent linear and adjoint models for variational data assimilation
How to fix QuickBooks Payroll Update Error 15276
Differential Equations
6.1: Antiderivatives and Slope Fields
6.1 day 1: Antiderivatives and Slope Fields
6.1 day 1: Antiderivatives and Slope Fields
6.1 day 1: Antiderivatives and Slope Fields
Online Purchase :- Purchase MS Office 365 online as it is an easy procedure which merely takes a few minutes. You just need to visit.
6.1: Antiderivatives and Slope Fields
6.1 day 1: Antiderivatives and Slope Fields
5.1 day 1: Antiderivatives and Slope Fields
: Antiderivatives and Slope Fields
Instructions on how to login and create documents
Presentation transcript:

Data Assimilation Training Course, Reading, 5-14 May 2010 Hands-on derivation of tangent linear and adjoint codes Angela Benedetti with contributions from: Marta Janisková and Yannick Tremolet

Data Assimilation Training Course, Reading, 5-14 May 2010 Road map Simple exercise of adjoint derivation Manual derivation of tangent linear for the Lorenz three-variable model (note that the first two equations were derived this morning during the lecture and can be found in the handouts). Derivation of the adjoint code (if time is an issue we will only start this task) Derivation of tangent linear and adjoint codes using an automatic differentiation software online (TAPENADE). for general info for the actual deal Questions Details on the Lorenz code and its use in variational data assimilation can be found in Huang and Yang (1996)

Data Assimilation Training Course, Reading, 5-14 May 2010

Naming conventions Remember that in the tangent linear routines of the ECMWF Integrated Forecasting System, the variables WITHOUT subscripts are the tangent linear variables, i.e. the derivatives, and in the adjoint routines they are the corresponding adjoint variables (gradients). The trajectory is usually indicated by attaching to the variables the suffix 5. In this exercise, we WILL NOT adopt this convention in order to be able to compare more directly with codes derived using the automatic differentiation code TAPENADE. All tangent linear variables will have a suffix d, as well as all adjoint variables. The variables without any suffix are the nonlinear model variables. However, just to further confuse matters, you will note that in TAPENADE, all adjoint variables have a suffix b, while all tangent linear variables have the suffix d. By replacing the suffix d in your manually-derived adjoint code with b, you should be able to check your adjoint code directly with the result of the automatic differentiation without trouble (however, for that, some degree of luck will have to be involved ;) ).

Data Assimilation Training Course, Reading, 5-14 May 2010 Lorenz model code (FORTRAN) SUBROUTINE model(x,dt,nstep) REAL,INTENT(INOUT) :: x(3) REAL,INTENT(IN) :: dt ! constant INTEGER, INTENT(IN):: nstep DO i = 1,nstep CALL lorenz(x,dxdt) CALL step (x,dxdt,dt) ENDDO END SUBROUTINE model ! SUBROUTINE lorenz(x,dxdt) REAL,INTENT(IN) :: x(3) REAL,INTENT(OUT):: dxdt(3) REAL :: p, r ! constants dxdt(1) = -p*x(1)+p*x(2) dxdt(2) = x(1)*(r-x(3))-x(2) dxdt(3) = x(1)*x(2)-b*x(3) END SUBROUTINE lorenz ! SUBROUTINE step(x,dxdt,dt) REAL,INTENT(INOUT):: x(3) REAL,INTENT(IN) :: dxdt(3),dt DO i = 1,3 x(i) = x(i)+dt*dxdt(i) ENDDO END SUBROUTINE step

Data Assimilation Training Course, Reading, 5-14 May 2010 Steps to use the automatic differentiation software 1.Work in groups of 2-3 people 2.Make sure you have access to the internet from your desktops 3.Open a terminal window 4.Type ftp ftp.ecmwf.intftp.ecmwf.int 5. Login: benedetti 6.Password: ang31a 7.cd Lorenz 8.mget * (you will be acquiring three files: model.f95 lorenz.f95 and step.f95) 9.Open an internet browser and go to: Upload files model.f95, lorenz.f95, step.f95 as source 11. Enter model as top routine (leave the rest blank) 12. Differentiate in: Tangent mode for tangent linear and Reverse for adjoint code 13.You can look at the resulting codes directly on the screen by clicking on the specific routine or download them onto your desktop 14. There will be slight differences with respect to your manually-derived codes, ask if you are confused. 15. Have fun!