Changeset 8011
- Timestamp:
- Sep 11, 2010, 5:50:07 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga_parallel/pymetis/test_metis.py
r7487 r8011 9 9 # path.append('..' + sep + 'pymetis') 10 10 11 import pymetis.metis as metis11 import anuga_parallel.pymetis.metis as metis 12 12 13 13 class TestMetis(unittest.TestCase): -
trunk/anuga_core/source/anuga_parallel/run_parallel_sw_merimbula.py
r7705 r8011 28 28 from anuga.utilities.util_ext import double_precision 29 29 from anuga.utilities.norms import l1_norm, l2_norm, linf_norm 30 31 from anuga import Domain 32 from anuga import Reflective_boundary 33 from anuga import Dirichlet_boundary 34 from anuga import Time_boundary 35 from anuga import Transmissive_boundary 30 36 31 from anuga.interface import Domain 32 from anuga.interface import Reflective_boundary 33 from anuga.interface import Dirichlet_boundary 34 from anuga.interface import Time_boundary 35 from anuga.interface import Transmissive_boundary 36 37 from anuga.interface import rectangular_cross 38 from anuga.interface import create_domain_from_file 37 from anuga import rectangular_cross 38 from anuga import create_domain_from_file 39 39 40 40 … … 84 84 domain = distribute(domain) 85 85 86 domain.smooth = False 86 #domain.smooth = False 87 88 domain.set_default_order(2) 89 domain.set_timestepping_method('rk2') 90 domain.set_CFL(0.7) 91 domain.set_beta(1.5) 92 domain.set_name('meribula') 87 93 88 94 #------------------------------------------------------------------------------ -
trunk/anuga_core/source/anuga_parallel/run_parallel_sw_rectangle.py
r7877 r8011 31 31 from anuga_parallel.interface import Parallel_shallow_water_domain 32 32 from anuga_parallel.interface import parallel_rectangle 33 from anuga_parallel.interface import myid, numprocs, get_processor_name33 from anuga_parallel.interface import myid, numprocs, finalize, get_processor_name 34 34 35 35 ############################### 36 36 # Read in processor information 37 37 ############################### 38 numprocs = numprocs()39 myid = myid()38 #numprocs = numprocs() 39 #myid = myid() 40 40 processor_name = get_processor_name() 41 41 … … 62 62 63 63 64 #Boundaries65 64 66 65 66 67 68 domain.set_name('sw_rectangle') 69 70 #Boundaries 67 71 T = Transmissive_boundary(domain) 68 72 R = Reflective_boundary(domain) … … 97 101 domain.set_default_order(2) 98 102 domain.set_timestepping_method('rk2') 103 domain.set_CFL(0.7) 104 domain.set_beta(1.5) 99 105 100 print domain.get_timestepping_method() 101 106 #print domain.get_timestepping_method() 102 107 #domain.use_edge_limiter = True 103 108 #domain.tight_slope_limiters = True 104 109 #domain.use_centroid_velocities = False 105 110 106 domain.CFL = 1.0107 111 108 domain.set_beta(0.8)109 112 110 113 … … 129 132 130 133 131 yieldstep = 0. 1132 finaltime = 1.0134 yieldstep = 0.05 135 finaltime = 2.0 133 136 134 137 #Check that the boundary value gets propagated to all elements … … 152 155 153 156 if visualise: vis.join() 154 pypar.finalize() 157 158 finalize() -
trunk/anuga_core/source/anuga_parallel/test_all.py
r7812 r8011 201 201 test_verbose = False 202 202 suite = regressionTest(test_verbose) 203 runner = unittest.TextTestRunner( ) #verbosity=2203 runner = unittest.TextTestRunner(verbosity=2) 204 204 runner.run(suite) 205 205 -
trunk/anuga_core/source/anuga_parallel/test_distribute_mesh.py
r7459 r8011 6 6 7 7 8 from anuga .interfaceimport Domain9 from anuga .interfaceimport rectangular_cross8 from anuga import Domain 9 from anuga import rectangular_cross 10 10 11 11 from anuga_parallel.distribute_mesh import pmesh_divide_metis -
trunk/anuga_core/source/anuga_parallel/test_parallel_distribute_mesh.py
r7562 r8011 6 6 from math import sqrt 7 7 8 9 from anuga .interfaceimport Domain10 from anuga .interfaceimport rectangular_cross8 9 from anuga import Domain 10 from anuga import rectangular_cross 11 11 12 12 from anuga_parallel.distribute_mesh import pmesh_divide_metis … … 43 43 if not numprocs == 3: return 44 44 45 print numprocs45 #print numprocs 46 46 47 47 barrier() … … 272 272 273 273 def test_distribute_three_processors(self): 274 print "Expect this test to fail if not run from the parallel directory."274 # Expect this test to fail if not run from the parallel directory. 275 275 result = os.system("mpirun -np 3 python test_parallel_distribute_mesh.py") 276 276 assert_(result == 0) -
trunk/create_win_installer.py
r7902 r8011 37 37 # path to and required contents of documentation directory 38 38 DOC_PATH = os.path.join('anuga_core', 'documentation', 'user_manual') 39 DOC_FILES = ['anuga_user_manual.p fd',39 DOC_FILES = ['anuga_user_manual.pdf', 40 40 'anuga_installation_guide.pdf', 41 41 'anuga_whats_new.pdf']
Note: See TracChangeset
for help on using the changeset viewer.