Skip to content
Snippets Groups Projects
Commit 7c631494 authored by Dominik Zobel's avatar Dominik Zobel
Browse files

Reformat Fortran part as second exercise

parent 3329970b
No related branches found
No related tags found
1 merge request!56Debugging Strategies lecture notes
Pipeline #67079 passed
......@@ -2,7 +2,7 @@
title: "Debugging strategies"
---
### Explain your approach on locating bugs
### 1. Approach on locating Python bugs
_The tasks should be done using the test repository <https://github.com/gweis/isodate>,
specifically commit 8856fdf0 (HEAD of `master` branch at the moment of writing this)._
......@@ -23,9 +23,23 @@ Document the actual output stating that.
Document your strategy of narrowing it down step by step.
**This task is NOT about fixing any of the issues^[You can try, if you want. But this is NOT part of the homework]!**
3. Check out the Fortran code [schnecke_flt.f90](../lectures/debugging-strategies/static/schnecke_flt.f90) and try to identify the line that is causing the problem.
To compile: `gfortran schnecke_flt.f90`
### 2. Approach on locating Fortran bugs
and use additional compiler flags and gdb to locate the error. Document your approach.
For this exercise, check out the Fortran code [schnecke_flt.f90](../lectures/debugging-strategies/static/schnecke_flt.f90).
You can compile it on Levante e.g. by loading GCC 11.2.0 compilers with
```bash
module load gcc/11.2.0-gcc-11.2.0
```
and then run
```bash
gfortran schnecke_flt.f90
```
**Task**
- Use additional compiler flags and `gdb` to locate the error. Document your approach.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment