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).

  • 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: 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.0

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.0
File Size Uploaded Provenance Actions
recast_woof_ocean-0.1.0.tar.gz 443.4 kB With provenance Details for recast_woof_ocean-0.1.0.tar.gz

Built distributions (wheels)

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

Total release size: 2.7 MB

Release files / recast_woof_ocean-0.1.0.tar.gz

Download URL recast_woof_ocean-0.1.0.tar.gz
Size 443.4 kB
Tags Source
SHA-256 checksum
How to use checksums
14012f988b2bfa811668b67237a984ea2b7d514e3556587d0c10d3f504f7c9f3
BLAKE2b-256 checksum
How to use checksums
d0f74557e706be898b48c0d7195164c87980bfe8863905a010ed84512ee63e93
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 3, 2026.

Transparency log

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

Download URL recast_woof_ocean-0.1.0-py3-none-win_amd64.whl
Size 1.1 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
71045df45c8ba5e00861d153fedecf3d857ca4e2138db20124d3d39f39288465
BLAKE2b-256 checksum
How to use checksums
7df0d67b4fc46a41aff4d87db462f17dcb8cefda9e70e5dd677180189a5742d7
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 3, 2026.

Transparency log

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

Download URL recast_woof_ocean-0.1.0-py3-none-manylinux_2_28_x86_64.whl
Size 1.1 MB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
585d478088afbd77ea63d383e2183a41c5e06e87a407db3c08497c5bd5eb5a6f
BLAKE2b-256 checksum
How to use checksums
987e9b2a6c5a6c8d2c9de397c9c11be2467f7cfcbc13cdcd0bebb2836626cac1
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 3, 2026.

Transparency log

Security for recast-woof-ocean 0.1.0

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.0.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 3, 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.0 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