Changeset 8436
- Timestamp:
- May 20, 2012, 1:24:01 PM (13 years ago)
- Location:
- trunk/anuga_core
- Files:
-
- 5 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/operators/base_operator.py
r8419 r8436 63 63 """By default an operator is not parallel safe 64 64 """ 65 66 print "ZZZZ in --parallel_safe base_oprator"67 65 return False 68 66 -
trunk/anuga_core/source/anuga/utilities/sparse_ext.c
r7276 r8436 79 79 80 80 81 int dimensions[ 1], M, err, columns, rows;81 int dimensions[2], M, err, columns, rows; 82 82 83 83 // Convert Python arguments to C -
trunk/anuga_core/validation_tests/Tests/Analytical/deep_wave/run_wave.py
r8431 r8436 39 39 # Setup domain 40 40 #------------------------------------------------------------------------------ 41 dx = 1000.41 dx = 500. 42 42 dy = dx 43 43 L = 100000. … … 55 55 # Setup Algorithm 56 56 #------------------------------------------------------------------------------ 57 #domain.set_flow_algorithm(2.0) 57 58 #domain.set_timestepping_method('rk2') 58 59 #domain.set_default_order(2) … … 100 101 Bw2 = anuga.shallow_water.boundaries.Transmissive_n_momentum_zero_t_momentum_set_stage_boundary(domain, waveform) 101 102 #Bw3 = swb2_boundary_conditions.Transmissive_momentum_nudge_stage_boundary(domain, waveform) 102 103 104 def zero_fun(t): 105 return 0.0 106 Bw0 = anuga.shallow_water.boundaries.Transmissive_n_momentum_zero_t_momentum_set_stage_boundary(domain, zero_fun) 103 107 104 108 -
trunk/anuga_core/validation_tests/Tests/Analytical/steep_slope/channel_SU_2plot.py
r8434 r8436 95 95 pyplot.plot(p2.y[v],p2.xvel[100,v], 'o', label='Numerical') 96 96 pyplot.plot((0,100),(uana,uana),label='Analytical') 97 pyplot.ylim([1.0,3.0]) 97 98 pyplot.xlabel('Distance along the line x==50 (across the slope) (m)') 98 99 pyplot.ylabel('Velocity m/s') -
trunk/anuga_core/validation_tests/Tests/Analytical/steep_slope/channel_SU_sparse.py
r8434 r8436 3 3 """ 4 4 import sys 5 6 #---------------7 # I am having trouble with my environmental variables -- this is a8 # quick fix -- PYTHONPATH should have this value9 #---------------10 #sys.path[0]='/nas/gemd/georisk_models/inundation/sandpits/gdavies/trunk/anuga_core/source'11 12 #--------------13 # Then from here, write the script as usual14 #--------------15 5 16 6 #------------------------------------------------------------------------------ … … 33 23 domain.set_name('channel_SU_2_v2') # Output name 34 24 domain.set_store_vertices_uniquely(True) 35 domain.CFL=1.0 25 domain.set_flow_algorithm(2.0) 26 #domain.CFL=1.0 27 #domain.set_sloped_mannings_function() 36 28 #------------------------------------------------------------------------------ 37 29 # Setup initial conditions … … 45 37 return stg#*(stg>topo) + topo*(stg<=topo) 46 38 47 line1=[ [ 0.,0.], [0., 100.] ]39 line1=[ [1.,0.], [1., 100.] ] 48 40 Qin=20. 49 Inlet_operator(domain, line1, Qin)41 Inlet_operator(domain, line1, Qin) 50 42 51 43 domain.set_quantity('elevation', topography) # Use function for elevation
Note: See TracChangeset
for help on using the changeset viewer.