#! /usr/bin/env python # import sys, petsc4py petsc4py.init(sys.argv) from petsc4py import PETSc import PISM, math # Default constants that may get overridden later. Ly = 25e3 # 25 km Lx = 50e3 # 50 km Lz = 4000 My = 13 Mx = 23 Mz = 21 sea_level = 0; # m sea level elevation H0 = 60.; # ice thickness at cliff alpha = 0.008 # constant surface slope Lext = 15e3 # width of strip beyond cliff Lstream_x = 50e3 Lstream_y = 30e3 Hext = 0. # m ice thickeness beyond the cliff tauc_hi = 2e6 # Pa tauc_lo = 1e4 # Pa tauc_free_bedrock = 0 # Will get set later enth0 = 528668.35; # Hmmm. 263.15 Kelvin at depth=0. bed0 = 0; def geometry(x,y): x0=-Lx+Lext; if x