Agentic Coding · Masterclass · Numerical computing

Modernising Fortran and MATLAB Code: A Masterclass in Step-by-Step Migration with Coding Agents

Make proven numerical routines maintainable without putting their results at risk: the agent helps you understand, secure and translate, and tests decide every step.

  • Workshops & trainings since 2014
  • jocapps GmbH · Freiburg, Germany
  • The team behind Mathe-VollLogo
Format
Masterclass
Duration
1 day (7.5 hours)
Delivery
Live online · On-site (in-house) · Hybrid
Group size
4–10 participants
Level
Advanced
Language
German or English

Tools: Claude Code · ChatGPT Codex · Fortran · MATLAB · f2py · NumPy

Many institutes and engineering departments rely on routines that have produced dependable results for a long time but that hardly anyone dares to touch: fixed-form source, COMMON blocks, implicit typing or MATLAB scripts without tests. Modernising Fortran and MATLAB code starts with certainty about what the existing code does. This masterclass shows how coding agents explain code, generate characterisation tests and translate routines step by step, to Python, to modern Fortran or behind a new interface. You learn when bit-for-bit equality is realistic and when justified tolerances apply.

Who the code modernisation masterclass is for

Experienced developers, computing teams and research groups who look after long-lived Fortran or MATLAB code and want to modernise it, move it to Python or connect it to new systems.

What you'll walk away with

  • Map, document and assess existing Fortran and MATLAB code with the agent's help
  • Generate characterisation tests with recorded inputs and outputs before anything changes
  • Recognise typical translation traps such as index base, memory order, implicit typing and rounding differences
  • Choose a migration strategy: wrapping with f2py, modernising in Fortran or rewriting in Python
  • Justify and document tolerances for comparing results

Typical scenarios

  1. A fluid dynamics institute wraps a proven Fortran solver with f2py so that new analyses can be written in Python while the computational core stays untouched.
  2. An engineering department moves MATLAB scripts for vibration analysis to Python and compares every translated function with stored MATLAB results.
  3. A research group replaces COMMON blocks with modules and has the agent run the characterisation tests after every step.

Does this fit your team?

Pick a few dates that suit you. The request is non-binding, and the agenda is tailored in a short call beforehand.

Request dates

What the code modernisation masterclass covers

  1. Understand before you changeThe agent explains call structure, data flow and side effects; you verify the explanations at selected points.
  2. Freezing behaviourCharacterisation tests with representative inputs, stored outputs and documented tolerances.
  3. Translation trapsOne-based indexing, column-major storage, integer division, implicit typing and differences in standard library functions.
  4. Three migration routesWrap, modernise or rewrite: criteria, effort and risks, worked through on one running example.
  5. Step by step with the agentSmall changes, tests after every step and pull requests reviewed by a person who knows the science.

Before the code modernisation masterclass: prerequisites

  • Experience with Fortran or MATLAB and with Python
  • An extract of your own code with sample inputs and outputs, if you are allowed to bring it
  • Version control with Git

Materials you keep

  • A decision guide for wrapping, modernising or rewriting
  • A template for characterisation tests with a rationale for tolerances
  • A checklist of common translation traps between Fortran, MATLAB and Python

How it works

  1. Request with preferred datesTick the date proposals that suit you or name a period of your own.
  2. Short callWe talk about your goals, prior knowledge and the tools your team already uses.
  3. Agenda for your teamYou receive a plan tailored to your group, with exercises that match your subject and material.
  4. Course and materialsThe course runs online, on-site or hybrid, and you keep the materials afterwards.

Why train with us

  • jocapps GmbH has offered workshops and trainings since 2014. The topics have moved with the technology; today the focus is on agentic coding and prompt engineering.
  • Hands-on rather than slides: you practise on realistic examples from maths and STEM, or on your own tasks, code or prompts if you wish.
  • Online, on-site or hybrid, held in German or English.
  • jocapps GmbH is certified to ISO 27001 (information security) and ISO 9001 (quality management).

Questions about the code modernisation masterclass

Can an agent translate our entire code base in one go?

Plenty of code appears quickly, but without safeguards you can hardly check whether it computes the same thing. The masterclass therefore relies on small steps with tests. For numerical routines in particular, this route is more reliable and usually quicker in the end.

Why are results not exactly identical after translation?

Different compilers, libraries, summation orders and floating-point optimisations change the last digits. That is often harmless but sometimes points to a real bug. We show how to set tolerances on solid grounds and investigate discrepancies systematically.

May we work on proprietary code with a coding agent?

That depends on licences, contracts and your institution's rules. Check in advance with your legal department or compliance which services and settings are permitted. For the masterclass, an approved or recreated extract that contains the typical patterns is enough if necessary.

Is the masterclass held online or on-site, and in which language?

Both are possible: live online, at your premises (in-house) or hybrid. The course is held in German or English; you choose when you send the request.

Can the content be tailored to our team?

Yes. The agenda, examples and emphasis are agreed in the call beforehand, based on your team's prior knowledge, subjects and tools. On request we work with your own exercises, data or code.