Description
Exercise 1: Checkpoints
Write a subroutine to be used as a checkpoint for debugging.
- Include a control on a logical variable (Debug=.true. or .false.)
- Include an additional (optional) string to be printed
- Include additional (optional) variables to be printed
Exercise 2: Documentation
Rewrite Exercise 3 of Week 1 including:
- Pre- and post- conditions.
- Error handling
- Checkpoints
Exercise 3: Derived Types
In Fortran90 write a MODULE which contains a double complex matrix derived TYPE that includes the components: Matrix elements, Matrix Dimensions, Matrix Trace, and Matrix Determinant.
- Define the correspondent TYPE.
- Define a function/subroutine that initializes this new TYPE(c) Define the functions/subroutines Trace and Adjoint
- Define the correspondent Interfaces of the previous points.
- Define a subroutine that writes on file the Matrix TYPE in a readable form.
- Include everything in a test program.
Page 1 of 1



