Skip to content

Instantly share code, notes, and snippets.

View vojtamolda's full-sized avatar

Vojta Molda vojtamolda

View GitHub Profile

Differentiable Shallow Water PDE Solver

This repository contains source code of a shallow water partial differential equation (PDE) solver. The solver is written in differentiable Swift which allows end-to-end propagation of derivatives through time. In physics this kind of solution is traditionally called adjoint and it unlocks a new class of algorithms for optimal control of PDEs.

More details about the PDE and how to derive it from general Navier-Stokes equations can found for example on Wikipedia.

The following notebook demonstrates how the differentiability of the solver can be leveraged to solve an otherwise tricky optimal control problem.

Showcase.ipynb [![ColabBadge]][ShowcaseColabLink]

@vojtamolda
vojtamolda / !benchmark_swift_c_summation.ipynb
Last active November 28, 2021 06:50 — forked from joaqo/sumlist.c
Simple Benchmark of Summation in C and Swift
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vojtamolda
vojtamolda / keybase.md
Last active March 29, 2020 03:31
keybase.md

Keybase proof

I hereby claim:

  • I am vojtamolda on github.
  • I am vojtamolda (https://keybase.io/vojtamolda) on keybase.
  • I have a public key whose fingerprint is 5F14 3BFB 3C7E AB18 B545 04F1 572B AB05 67DE 1229

To claim this, I am signing this object: