Skip to content

Commit

Permalink
CHG: making python test identical to MATLAB
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuMorlighem committed Oct 2, 2024
1 parent 8f25deb commit 2adee40
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/NightlyRun/test362.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
md = triangle(model(), '../Exp/Square.exp', 50000.)
md.mesh.x = md.mesh.x / 100
md.mesh.y = md.mesh.y / 100
md.miscellaneous.name = 'testChannels'

# Miscellaneous
md = setmask(md, '', '') # Everywhere grounded
Expand All @@ -23,7 +22,7 @@

# Some constants
md.constants.g = 9.8
md.materials.rho_ice = 910
md.materials.rho_ice = 910.

# Geometry
md.geometry.surface = -0.02 * md.mesh.x + 320
Expand All @@ -35,7 +34,7 @@
md.initialization.vx = 1.0e-6 * md.constants.yts * np.ones((md.mesh.numberofvertices))
md.initialization.vy = np.zeros((md.mesh.numberofvertices))
md.initialization.temperature = (273. - 20.) * np.ones((md.mesh.numberofvertices))
md.initialization.watercolumn = 0.03 * np.ones((md.mesh.numberofvertices))
md.initialization.watercolumn = 0.2 * np.ones((md.mesh.numberofvertices))
md.initialization.hydraulic_potential = md.materials.rho_ice * md.constants.g * md.geometry.thickness

#cMaterials
Expand Down

0 comments on commit 2adee40

Please sign in to comment.