SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2207.00556 · 2022

Learning to correct spectral methods for simulating turbulent flows

arXiv · PDF · Open in the Atlas

Code that ran

8 of 10 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 7 have no contract verdict; 1 failure of our instrument; 2 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2207.00556.json · badge: /api/ran/2207.00556.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
google/jax-cfd community (classifier label)
classifier basis not recorded on the link
8 ran · 2 no recorded run
FunctionStatusWhere it lives
get_roll_and_shift Ran
ran on a synthesized input
google/jax-cfd/jax_cfd/ml/layers_util.py
code served (permissive licence) · get_code("dad79f9a69c45c28")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import math
from typing import Tuple

# Construct valid arguments for get_roll_and_shift
# The function takes two tuple arguments: input_offset and target_offset
# Both should be tuples of floats representing offsets in some coordinate system

input_offset = (1.5, 2.3, 0.7)
target_offset = (4.2, 1.1, 3.5)

ARGS = {
    "input_offset": input_offset,
    "target_offset": target_offset,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
repeated Ran
ran; our contract draft was wrong, not the code
google/jax-cfd/jax_cfd/ml/model_builder.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from edward-sun/tsm-pde, is pointer only (licence: NONE) · get_code("5bedf6d76e22d532")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from edward-sun/tsm-pde, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

rescale_to_range Ran
ran on a synthesized input
google/jax-cfd/jax_cfd/ml/layers.py
code served (permissive licence) · get_code("e11af25473406c93")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ArrayImpl, ndim 3, dtype family float, shape (2, 4, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import jax
import jax.numpy as jnp
import numpy as np

# Create a small input array with distinct dimensions
# Using shape (2, 4, 3) to have distinct sizes for different dimensions
inputs = jnp.array(np.random.randn(2, 4, 3), dtype=jnp.float32)

# Set min and max values for rescaling
min_value = 0.0
max_value = 1.0

# Define axes across which to find min/max
# Using axes (1, 2) to compute min/max across those dimensions
axes = (1, 2)

ARGS = {
    "inputs": inputs,
    "min_value": min_value,
    "max_value": max_value,
    "axes": axes,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 3, dtype family float, shape (2, 4, 3) — shape (2, 4, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
slice_along_axis Ran
ran on a synthesized input
google/jax-cfd/jax_cfd/base/array_utils.py
code served (permissive licence) · get_code("0793157093df9634")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 3, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import jax
import jax.numpy as jnp

# Create test arrays - using distinct shapes for different dimensions
array1 = jnp.arange(24).reshape(2, 3, 4)  # shape (2, 3, 4)
array2 = jnp.arange(24, 48).reshape(2, 3, 4)  # shape (2, 3, 4)

# Test with a tuple of arrays (PyTree structure)
inputs = (array1, array2)

# axis along which to slice
axis = 1

# idx can be either a slice or an int
idx = 1  # Select index 1 along axis 1

# expect_same_dims flag
expect_same_dims = True

ARGS = {
    "inputs": inputs,
    "axis": axis,
    "idx": idx,
    "expect_same_dims": expect_same_dims,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 3, dtype family int — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
split_along_axis Ran
ran on a synthesized input
google/jax-cfd/jax_cfd/base/array_utils.py
code served (permissive licence) · get_code("d083f2660897ee88")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 5, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import jax
import jax.numpy as jnp

# Create simple JAX arrays with distinct dimensions
array1 = jnp.arange(24).reshape(2, 3, 4)  # shape (2, 3, 4)
array2 = jnp.arange(24, 48).reshape(2, 3, 4)  # shape (2, 3, 4)

# Test with a tuple of arrays (pytree)
inputs = (array1, array2)

# Define arguments for split_along_axis
ARGS = {
    'inputs': inputs,
    'split_idx': 1,
    'axis': 0,
    'expect_same_dims': True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 5, dtype family int — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
split_axis Ran
ran on a synthesized input
google/jax-cfd/jax_cfd/base/array_utils.py
code served (permissive licence) · get_code("9734f7363d2117c4")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import jax
import jax.numpy as jnp

# Create small test inputs as a pytree (nested dict/list of arrays)
# Using distinct sizes for different dimensions: (2, 3, 4, 5)
inputs = {
    'array1': jnp.ones((2, 3, 4, 5)),
    'array2': jnp.ones((2, 3, 4, 5)),
    'nested': {
        'array3': jnp.ones((2, 3, 4, 5))
    }
}

ARGS = {
    'inputs': inputs,
    'axis': 0,
    'keep_dims': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
with_post_processing Ran
ran on a synthesized input
google/jax-cfd/jax_cfd/ml/model_utils.py
code served (permissive licence) · get_code("7558d1909dfd2b2e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned function. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import functools

torch.manual_seed(0)

# Define a simple function that returns multiple outputs (since post_process_fn uses *fn(*args, **kwargs))
def sample_fn(x, y):
    """Returns a tuple of outputs"""
    return (x + 1, y * 2)

# Define a post-processing function that accepts multiple arguments
def sample_post_process_fn(a, b):
    """Processes multiple outputs"""
    return a + b

ARGS = {
    "fn": sample_fn,
    "post_process_fn": sample_post_process_fn
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
with_preprocessing Ran
ran on a synthesized input
google/jax-cfd/jax_cfd/ml/model_utils.py
code served (permissive licence) · get_code("b3167ed7b7ea1e05")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned function. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import functools
import torch
import torch.nn as nn

torch.manual_seed(0)

# Define a simple preprocessing function
def preprocess_fn(x):
    """Simple preprocessing that normalizes input."""
    return x / 2.0

# Define a simple function to be wrapped
def compute_fn(x, scale=1.0):
    """Simple function that scales input."""
    return x * scale

ARGS = {
    'fn': compute_fn,
    'preprocess_fn': preprocess_fn,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
polynomial_accuracy_coefficients Not yet run
unverified (harvested, no recorded run)
google/jax-cfd/jax_cfd/ml/layers_util.py
code served (permissive licence) · get_code("92705495cc5c7c3b")
How it ran

no invocation recorded.

polynomial_accuracy_constraints Not yet run
unverified (harvested, no recorded run)
google/jax-cfd/jax_cfd/ml/layers_util.py
code served (permissive licence) · get_code("d2a94405ee449ecc")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 1 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 1 later) and 9 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
repeated 1 other paper
1 later
2302.08105 (2023-02)
A Neural PDE Solver with Temporal Stencil Modeling

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Despite their ubiquity throughout science and engineering, only a handful of partial differential equations (PDEs) have analytical, or closed-form solutions. This motivates a vast amount of classical work on numerical simulation of PDEs and more recently, a whirlwind of research into data-driven techniques leveraging machine learning (ML). A recent line of work indicates that a hybrid of classical numerical techniques and machine learning can offer significant improvements over either approach alone. In this work, we show that the choice of the numerical scheme is crucial when incorporating physics-based priors. We build upon Fourier-based spectral methods, which are known to be more efficient than other numerical schemes for simulating PDEs with smooth and periodic solutions. Specifically, we develop ML-augmented spectral solvers for three common PDEs of fluid dynamics. Our models are more accurate (2-4x) than standard spectral solvers at the same resolution but have longer overall runtimes (~2x), due to the additional runtime cost of the neural network component. We also demonstrate a handful of key design principles for combining machine learning and numerical methods for solving PDEs.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2207.00556")
get_code_for_paper("2207.00556")
have("2207.00556")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2207.00556.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2207.00556.svg)](https://syntology.ai/paper/2207.00556)

Connect an agent — have() is free.