Changeset 7702
- Timestamp:
- Apr 29, 2010, 3:50:10 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga_parallel/run_parallel_sw_merimbula.py
r7676 r7702 16 16 #------------------------------------------------------------------------------ 17 17 18 import unittest19 18 import os 20 19 import sys 21 20 import time 22 21 import pypar 23 24 22 import numpy as num 25 23 26 27 28 24 #------------------------ 25 # ANUGA Modules 26 #------------------------ 29 27 from anuga.utilities.numerical_tools import ensure_numeric 30 28 from anuga.utilities.util_ext import double_precision … … 48 46 #-------------------------------------------------------------------------- 49 47 50 #mesh_filename = "merimbula_10785_1.tsh" 51 mesh_filename = "merimbula_43200.tsh" 52 #mesh_filename = "test-100.tsh" 53 yieldstep = 5 048 #mesh_filename = "merimbula_10785_1.tsh" ; x0 = 756000.0 ; x1 = 756500.0 49 #mesh_filename = "merimbula_43200.tsh" ; x0 = 756000.0 ; x1 = 756500.0 50 mesh_filename = "test-100.tsh" ; x0 = 0.25 ; x1 = 0.5 51 yieldstep = 5 54 52 finaltime = 200 55 quantity = 'stage'56 53 verbose = True 57 54 … … 60 57 #-------------------------------------------------------------------------- 61 58 class Set_Stage: 62 """Set an initial condition with constant water height, for x <x059 """Set an initial condition with constant water height, for x0<x<x1 63 60 """ 64 61 … … 76 73 if myid == 0: 77 74 domain = create_domain_from_file(mesh_filename) 78 domain.set_quantity('stage', Set_Stage( 756000.0, 756500.0, 2.0))75 domain.set_quantity('stage', Set_Stage(x0, x1, 2.0)) 79 76 else: 80 77 domain = None … … 86 83 if myid == 0 and verbose: print 'DISTRIBUTING DOMAIN' 87 84 domain = distribute(domain) 85 86 domain.smooth = False 88 87 89 88 #------------------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.