£199.99 £139.99 for one year of Unlimited learning. Offer ends on 14 November 2022 at 23:59 (UTC). T&Cs apply

Find out more
Introduction to week 3
Skip main navigation

Introduction to week 3

In week 3, you will learn about modules, interfaces, object-oriented programming, memory allocation and pointers.
Welcome to week three of Fortran for Scientific Computing. This week, we’ll deal with user-defined types and with interfaces, as well as dynamic memory allocation. And those form the basis for object-oriented programming in Fortran, and that’s the main topic of this week. So, let’s dive in.

In this week you will learn about modules. As the name suggests, modules allow you to develop modular and reusable code.

Interfaces are a nice feature that you can use to pass procedures as arguments to procedures among other things.

Dynamic memory management helps you to deal with large amounts of data efficiently by allocating and dallocating memory as required by the application.

User defined types form the basis of object-oriented programming. You can add type-bound procedures to user defined type to define methods applicable to objects of these types.

This article is from the free online

Fortran for Scientific Computing

Created by
FutureLearn - Learning For Life

Our purpose is to transform access to education.

We offer a diverse selection of courses from leading universities and cultural institutions from around the world. These are delivered one step at a time, and are accessible on mobile, tablet and desktop, so you can fit learning around your life.

We believe learning should be an enjoyable, social experience, so our courses offer the opportunity to discuss what you’re learning with others as you go, helping you make fresh discoveries and form new ideas.
You can unlock new opportunities with unlimited access to hundreds of online short courses for a year by subscribing to our Unlimited package. Build your knowledge with top universities and organisations.

Learn more about how FutureLearn is transforming access to education