#!/usr/bin/env python3 """CFL bound verification sweep for Burgers step correspondence.""" import random, math, json, hashlib from datetime import datetime, timezone Q16 = 65536 random.seed(42) def step(u, N, nu, dx, dt): nu_q = int(nu*Q16); dt_q = int(dt*Q16); dx_q = int(dx*Q16) new = [0]*N for i in range(N): ux = ((u[(i+1)%N] - u[(i-1)%N]) // (2*dx_q)) if i>0 and i0 and i