Changeset 9501
- Timestamp:
- Jan 27, 2015, 7:19:44 AM (10 years ago)
- Location:
- trunk/anuga_core/source/anuga
- Files:
-
- 16 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/parallel/parallel_generic_communications.py
r9261 r9501 40 40 41 41 42 import anuga _parallel.pypar_extras as par_exts42 import anuga.parallel.pypar_extras as par_exts 43 43 44 44 par_exts.allreduce(domain.local_timestep, pypar.MIN, … … 176 176 # Do all the comuunication using isend/irecv via the buffers in the 177 177 # full_send_dict and ghost_recv_dict 178 from anuga _parallel.pypar_extras import mpiextras178 from anuga.parallel.pypar_extras import mpiextras 179 179 180 180 mpiextras.send_recv_via_dicts(domain.full_send_dict,domain.ghost_recv_dict) -
trunk/anuga_core/source/anuga/parallel/pymetis/test_metis.py
r8784 r9501 9 9 # path.append('..' + sep + 'pymetis') 10 10 11 import anuga _parallel.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/sequential_distribute.py
r9500 r9501 248 248 249 249 250 from anuga _parallelimport myid, numprocs250 from anuga import myid, numprocs 251 251 252 252 from os.path import join -
trunk/anuga_core/source/anuga/parallel/test/test_failure.py
r9500 r9501 77 77 filename=os.path.join(path, 'example_rating_curve.csv') 78 78 79 80 mod_path = get_pathname_from_package('anuga.parallel') 81 79 82 line0 = [[10.0, 10.0], [30.0, 10.0]] 80 83 #line0 = [[29.0, 10.0], [30.0, 10.0]] 81 84 line1 = [[0.0, 10.0], [0.0, 15.0]] 82 Q0 = file_function(os.path.join( '..','data','test_hydrograph.tms'), quantities=['hydrograph'])85 Q0 = file_function(os.path.join(mod_path,'data','test_hydrograph.tms'), quantities=['hydrograph']) 83 86 Q1 = 5.0 84 87 -
trunk/anuga_core/source/anuga/parallel/test/test_parallel_boyd_box_op_apron.py
r9433 r9501 28 28 29 29 import numpy as num 30 from anuga _parallel.parallel_inlet_operator import Parallel_Inlet_operator31 from anuga _parallel import distribute, myid, numprocs, finalize30 from anuga.parallel.parallel_inlet_operator import Parallel_Inlet_operator 31 from anuga.parallel import distribute, myid, numprocs, finalize 32 32 from anuga.geometry.polygon import inside_polygon, is_inside_polygon, line_intersect 33 33 34 from anuga _parallel.parallel_operator_factory import Inlet_operator, Boyd_box_operator34 from anuga.parallel.parallel_operator_factory import Inlet_operator, Boyd_box_operator 35 35 36 36 import random … … 87 87 #filename=os.path.join(path, 'example_rating_curve.csv') 88 88 89 mod_path = get_pathname_from_package('anuga.parallel') 89 90 line0 = [[10.0, 10.0], [30.0, 10.0]] 90 91 #line0 = [[29.0, 10.0], [30.0, 10.0]] 91 92 line1 = [[0.0, 10.0], [0.0, 15.0]] 92 Q0 = file_function(os.path.join( '..','data','test_hydrograph.tms'), quantities=['hydrograph'])93 Q0 = file_function(os.path.join(mod_path,'data','test_hydrograph.tms'), quantities=['hydrograph']) 93 94 Q1 = 5.0 94 95 -
trunk/anuga_core/source/anuga/parallel/test/test_parallel_boyd_box_operator.py
r9433 r9501 34 34 35 35 import numpy as num 36 from anuga _parallel.parallel_inlet_operator import Parallel_Inlet_operator37 from anuga _parallel import distribute, myid, numprocs, finalize36 from anuga.parallel.parallel_inlet_operator import Parallel_Inlet_operator 37 from anuga.parallel import distribute, myid, numprocs, finalize 38 38 from anuga.geometry.polygon import inside_polygon, is_inside_polygon, line_intersect 39 39 40 from anuga _parallel.parallel_operator_factory import Inlet_operator, Boyd_box_operator40 from anuga.parallel.parallel_operator_factory import Inlet_operator, Boyd_box_operator 41 41 42 42 import random … … 93 93 #filename=os.path.join(path, 'example_rating_curve.csv') 94 94 95 mod_path = get_pathname_from_package('anuga.parallel') 96 95 97 line0 = [[10.0, 10.0], [30.0, 10.0]] 96 98 #line0 = [[29.0, 10.0], [30.0, 10.0]] 97 99 line1 = [[0.0, 10.0], [0.0, 15.0]] 98 Q0 = file_function(os.path.join( '..','data','test_hydrograph.tms'), quantities=['hydrograph'])100 Q0 = file_function(os.path.join(mod_path,'data','test_hydrograph.tms'), quantities=['hydrograph']) 99 101 Q1 = 5.0 100 102 -
trunk/anuga_core/source/anuga/parallel/test/test_parallel_boyd_pipe_operator.py
r9433 r9501 28 28 #from parallel_inlet_operator import Parallel_Inlet_operator 29 29 30 from anuga _parallel import distribute, myid, numprocs, finalize30 from anuga.parallel import distribute, myid, numprocs, finalize 31 31 from anuga.geometry.polygon import inside_polygon, is_inside_polygon, line_intersect 32 32 33 from anuga _parallel.parallel_operator_factory import Inlet_operator34 from anuga _parallel.parallel_operator_factory import Boyd_pipe_operator33 from anuga.parallel.parallel_operator_factory import Inlet_operator 34 from anuga.parallel.parallel_operator_factory import Boyd_pipe_operator 35 35 36 36 import random … … 87 87 #filename=os.path.join(path, 'example_rating_curve.csv') 88 88 89 mod_path = get_pathname_from_package('anuga.parallel') 90 89 91 line0 = [[10.0, 10.0], [30.0, 10.0]] 90 92 #line0 = [[29.0, 10.0], [30.0, 10.0]] 91 93 line1 = [[0.0, 10.0], [0.0, 15.0]] 92 Q0 = file_function(os.path.join( '..','data','test_hydrograph.tms'), quantities=['hydrograph'])94 Q0 = file_function(os.path.join(mod_path,'data','test_hydrograph.tms'), quantities=['hydrograph']) 93 95 Q1 = 5.0 94 96 -
trunk/anuga_core/source/anuga/parallel/test/test_parallel_distribute_domain.py
r9433 r9501 15 15 import sys 16 16 17 17 from anuga.utilities.system_tools import get_pathname_from_package 18 18 19 19 import numpy as num … … 48 48 49 49 50 from anuga _parallel import distribute, myid, numprocs, finalize50 from anuga.parallel import distribute, myid, numprocs, finalize 51 51 52 52 … … 55 55 #-------------------------------------------------------------------------- 56 56 57 mesh_filename = os.path.join('..','data','merimbula_10785_1.tsh') 58 #mesh_filename = os.path.join('..','data','test-100.tsh') 57 mod_path = get_pathname_from_package('anuga.parallel') 58 59 mesh_filename = os.path.join(mod_path,'data','merimbula_10785_1.tsh') 60 #mesh_filename = os.path.join(mod_path,'data','test-100.tsh') 59 61 yieldstep = 1 60 62 finaltime = 20 -
trunk/anuga_core/source/anuga/parallel/test/test_parallel_distribute_mesh.py
r9424 r9501 10 10 from anuga import rectangular_cross 11 11 12 from anuga _parallel.distribute_mesh import pmesh_divide_metis13 from anuga _parallel.distribute_mesh import build_submesh14 from anuga _parallel.distribute_mesh import submesh_full, submesh_ghost, submesh_quantities15 from anuga _parallel.distribute_mesh import extract_submesh, rec_submesh, send_submesh16 17 from anuga _parallel import myid, numprocs, barrier, finalize12 from anuga.parallel.distribute_mesh import pmesh_divide_metis 13 from anuga.parallel.distribute_mesh import build_submesh 14 from anuga.parallel.distribute_mesh import submesh_full, submesh_ghost, submesh_quantities 15 from anuga.parallel.distribute_mesh import extract_submesh, rec_submesh, send_submesh 16 17 from anuga.parallel import myid, numprocs, barrier, finalize 18 18 19 19 import numpy as num -
trunk/anuga_core/source/anuga/parallel/test/test_parallel_file_boundary.py
r9424 r9501 56 56 from anuga import create_domain_from_file 57 57 58 from anuga _parallel import distribute, myid, numprocs, send, receive, barrier, finalize59 60 from anuga.file.test _mux import Test_Mux58 from anuga.parallel import distribute, myid, numprocs, send, receive, barrier, finalize 59 60 from anuga.file.test.test_mux import Test_Mux 61 61 62 62 verbose = False -
trunk/anuga_core/source/anuga/parallel/test/test_parallel_frac_op.py
r9433 r9501 29 29 30 30 import numpy as num 31 from anuga _parallel.parallel_inlet_operator import Parallel_Inlet_operator32 from anuga _parallel import distribute, myid, numprocs, finalize31 from anuga.parallel.parallel_inlet_operator import Parallel_Inlet_operator 32 from anuga.parallel import distribute, myid, numprocs, finalize 33 33 from anuga.geometry.polygon import inside_polygon, is_inside_polygon, line_intersect 34 34 … … 87 87 88 88 #filename=os.path.join(path, 'example_rating_curve.csv') 89 mod_path = get_pathname_from_package('anuga.parallel') 89 90 90 91 line0 = [[10.0, 10.0], [30.0, 10.0]] 91 92 #line0 = [[29.0, 10.0], [30.0, 10.0]] 92 93 line1 = [[0.0, 10.0], [0.0, 15.0]] 93 Q0 = file_function(os.path.join( '..','data','test_hydrograph.tms'), quantities=['hydrograph'])94 Q0 = file_function(os.path.join(mod_path,'data','test_hydrograph.tms'), quantities=['hydrograph']) 94 95 Q1 = 5.0 95 96 -
trunk/anuga_core/source/anuga/parallel/test/test_parallel_inlet_operator.py
r9433 r9501 34 34 35 35 import numpy as num 36 from anuga _parallel.parallel_inlet_operator import Parallel_Inlet_operator37 from anuga _parallel import distribute, myid, numprocs, finalize36 from anuga.parallel.parallel_inlet_operator import Parallel_Inlet_operator 37 from anuga.parallel import distribute, myid, numprocs, finalize 38 38 from anuga.geometry.polygon import inside_polygon, is_inside_polygon, line_intersect 39 39 40 from anuga _parallel.parallel_operator_factory import Inlet_operator40 from anuga.parallel.parallel_operator_factory import Inlet_operator 41 41 42 42 import random … … 93 93 #filename=os.path.join(path, 'example_rating_curve.csv') 94 94 95 mod_path = get_pathname_from_package('anuga.parallel') 95 96 line0 = [[10.0, 10.0], [30.0, 10.0]] 96 97 #line0 = [[29.0, 10.0], [30.0, 10.0]] 97 98 line1 = [[0.0, 10.0], [0.0, 15.0]] 98 Q0 = file_function(os.path.join( '..','data','test_hydrograph.tms'), quantities=['hydrograph'])99 Q0 = file_function(os.path.join(mod_path,'data','test_hydrograph.tms'), quantities=['hydrograph']) 99 100 Q1 = 5.0 100 101 -
trunk/anuga_core/source/anuga/parallel/test/test_parallel_shallow_domain.py
r9433 r9501 39 39 from anuga.utilities.util_ext import double_precision 40 40 from anuga.utilities.norms import l1_norm, l2_norm, linf_norm 41 from anuga.utilities.system_tools import get_pathname_from_package 41 42 42 43 from anuga import Domain … … 50 51 51 52 52 from anuga _parallelimport distribute, myid, numprocs, finalize53 from anuga import distribute, myid, numprocs, finalize 53 54 54 55 … … 56 57 # Setup parameters 57 58 #-------------------------------------------------------------------------- 59 60 mod_path = get_pathname_from_package('anuga.parallel') 58 61 59 62 mesh_filename = os.path.join('..','data','merimbula_10785_1.tsh') -
trunk/anuga_core/source/anuga/parallel/test/test_parallel_sw_flow.py
r9424 r9501 25 25 from anuga import Time_boundary 26 26 from anuga import Transmissive_boundary 27 28 27 from anuga import rectangular_cross_domain 29 28 30 31 from anuga_parallel import distribute, myid, numprocs, send, receive, barrier, finalize 29 from anuga import distribute, myid, numprocs, send, receive, barrier, finalize 32 30 33 31 #-------------------------------------------------------------------------- -
trunk/anuga_core/source/anuga/parallel/test/test_sequential_dist_sw_flow.py
r9433 r9501 29 29 30 30 31 from anuga _parallelimport distribute, myid, numprocs, send, receive, barrier, finalize32 33 from anuga _parallel.sequential_distribute import sequential_distribute_dump34 from anuga _parallel.sequential_distribute import sequential_distribute_load31 from anuga import distribute, myid, numprocs, send, receive, barrier, finalize 32 33 from anuga.parallel.sequential_distribute import sequential_distribute_dump 34 from anuga.parallel.sequential_distribute import sequential_distribute_load 35 35 36 36 import anuga.utilities.plot_utils as util -
trunk/anuga_core/source/anuga/structures/riverwall.py
r9348 r9501 1 1 import os 2 from anuga _parallelimport barrier, numprocs, myid2 from anuga import barrier, numprocs, myid 3 3 import numpy 4 4
Note: See TracChangeset
for help on using the changeset viewer.