Skip to main content

gpuwm-ocean

An experimental, differentiable ocean and sea-ice model that runs on the GPU. The model is written from published papers and is not bitwise to MOM6, CICE or any other model. It has three parts:

  • a hydrostatic, Boussinesq ocean on terrain-following levels (z* for the tracers, so heat and salt are conserved; a linear free surface for momentum), no momentum advection and K-profile mixing;
  • elastic-viscous-plastic sea ice on a collocated grid, with a four-layer column;
  • bulk air-sea and air-ice fluxes, with sampled conservative remapping.

A stand-in atmosphere drives it: a single-level air slab that relaxes to fixed targets. It is not an atmosphere model; an outside atmosphere can replace it through the coupling interface (docs/coupling.md). The model runs in float64 on one CUDA card. Its tangent-linear and adjoint are generated from its own kernels by gpuwm's cuda-ad-gen, and they are checked against finite differences of the model itself.

It has not been judged against observations, and it is not a forecast model. docs/ocean.md says what it does and does not do.

pip install "recast-woof-ocean[gpu-cu13,maps]"
gpuwm-ocean run --grid idealized-5deg --days 2 --out run5 --maps
gpuwm-ocean adjoint-test --grid idealized-5deg
gpuwm-ocean sensitivity --grid idealized-5deg --steps 6 --spinup-steps 1440 \
    --response sst:35,60,300,350 --out sens5

sensitivity checks every map against finite differences of the forward model, at its largest values, at the values outside the response box that can be seen on the map, and along the whole gradient, and refuses a map the check refutes (exit 3, no map drawn). Over longer windows the tangent-linear model can grow far faster than the model's own response, and the check then refutes the map; --mixing held (approximate: the mixing held at the run's values in the derivative) is the option for longer windows. docs/adjoint-guide.md has the table of windows; docs/adjoint.md has the measurements.

For real-Earth cases, add the [real] extra (netCDF4, pygrib). One command fetches the public inputs, builds the case, runs it and draws maps every 10 days:

gpuwm-ocean real --date 2026-11-08 --res 1 --days 30 --out month1

(or step by step: gpuwm-ocean fetch, gpuwm-ocean init, gpuwm-ocean run --case). NOAA data are downloaded only when a command asks for them; none is bundled (see NOTICE).

Since 0.1.1, run and real step the model with the fast forward path: fused float64 kernels launched as CUDA graphs. Against the reference kernels (the forward of 0.1.0) the forecast differs at round-off, about as far as a one-ulp change of the starting temperature moves it. On a 16 GB sm_120 card the real 1 degree case of 2026-11-08 took 6.5 ms a step against 22.1 ms (3.4 times), and the real 0.25 degree case 75 ms against 240 ms (3.2 times). GPUWM_OCEAN_FAST=0 runs the reference kernels. --strict and --smooth-forward take the reference kernels by themselves and say so in one line; adjoint-test, sensitivity and every recorded run use them, so a gradient is the reference kernels'. docs/options.md has the measurements.

  • docs/install.md: what it needs, installing from a wheel or from source, checking an installation, a machine with no network.
  • docs/grids-and-start.md: the grids, how a real-Earth grid and start are made from public data, the layout of a case's files, and how to supply a different start.
  • docs/ocean.md: the model as built, its grids, how it behaves, the front door.
  • docs/adjoint-guide.md: taking a gradient: exact or held mixing, which windows hold, how a map is checked, the Python calls, memory and checkpoints.
  • docs/adjoint.md: what is differentiated, the checks and their results, and the limits.
  • docs/options.md: the forward (the fast forward path, the default, and the way back to the reference kernels, GPUWM_OCEAN_FAST=0), then experimental opt-ins, all off by default: named model parameters, smoothed kernels for the derivative, and what is refused by name (float32).
  • docs/coupling.md: the coupling interface for an outside atmosphere (fluxes in, state out, one conservative remap).

Wheels are published for Linux x86-64 (glibc 2.28 or newer) and Windows x86-64, for Python 3.11 or newer; it needs one NVIDIA CUDA card and gpuwm 3.0.8 or a later 3.0 release (pip installs it).

Licence: Apache-2.0 (LICENSE, NOTICE, THIRD-PARTY-NOTICES.md).

Metadata

Release files for recast-woof-ocean 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for recast-woof-ocean 0.1.1
File Size Uploaded Provenance Actions
recast_woof_ocean-0.1.1.tar.gz 487.2 kB With provenance Details for recast_woof_ocean-0.1.1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for recast-woof-ocean 0.1.1
File Interpreter ABI Platform Actions
recast_woof_ocean-0.1.1-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for recast_woof_ocean-0.1.1-py3-none-win_amd64.whl
recast_woof_ocean-0.1.1-py3-none-manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64 Details for recast_woof_ocean-0.1.1-py3-none-manylinux_2_28_x86_64.whl

Total release size: 2.8 MB

Release files / recast_woof_ocean-0.1.1.tar.gz

Download URL recast_woof_ocean-0.1.1.tar.gz
Size 487.2 kB
Tags Source
SHA-256 checksum
How to use checksums
91d34c3582f153e185cba910fd3f380feaac53375b90715ae408fce30db1f32f
BLAKE2b-256 checksum
How to use checksums
34326b0e1549593b2488ee5410052dc0ede49655e6854f1b2416e2db29caa6dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 6, 2026.

Transparency log

Release files / recast_woof_ocean-0.1.1-py3-none-win_amd64.whl

Download URL recast_woof_ocean-0.1.1-py3-none-win_amd64.whl
Size 1.1 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
c11b92a2e3df6bad5d8f7d0e08675eaf5123dacd9effc3e2cb0f4f07ccb7a392
BLAKE2b-256 checksum
How to use checksums
f031d3d9be39902915213863ee28b80e1d43f723ac3f8737ab6aac29f61ec001
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 6, 2026.

Transparency log

Release files / recast_woof_ocean-0.1.1-py3-none-manylinux_2_28_x86_64.whl

Download URL recast_woof_ocean-0.1.1-py3-none-manylinux_2_28_x86_64.whl
Size 1.2 MB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
6b551507ccff8198df5bce48c9efa1c76242b76a67ea410ae5b3625706d18b53
BLAKE2b-256 checksum
How to use checksums
e911774c9632e446ca06025f9ed4895c9063a4827966f900c81489848bafd48b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 6, 2026.

Transparency log

Security for recast-woof-ocean 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 3 files in this release have been uploaded with provenance metadata.

Select from 3 files

Attestation for recast_woof_ocean-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 6, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

3 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page