Changeset 9500
- Timestamp:
- Jan 26, 2015, 8:24:59 PM (10 years ago)
- Location:
- trunk/anuga_core/source
- Files:
-
- 2 added
- 1 deleted
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/__init__.py
r9457 r9500 86 86 # Parallel api 87 87 #---------------------------- 88 from anuga_parallel.parallel_api import distribute 89 from anuga_parallel.parallel_api import myid, numprocs, get_processor_name 90 from anuga_parallel.parallel_api import send, receive 91 from anuga_parallel.parallel_api import pypar_available, barrier, finalize 88 ## from anuga_parallel.parallel_api import distribute 89 ## from anuga_parallel.parallel_api import myid, numprocs, get_processor_name 90 ## from anuga_parallel.parallel_api import send, receive 91 ## from anuga_parallel.parallel_api import pypar_available, barrier, finalize 92 93 ## if pypar_available: 94 ## from anuga_parallel.parallel_api import sequential_distribute_dump 95 ## from anuga_parallel.parallel_api import sequential_distribute_load 96 97 from anuga.parallel.parallel_api import distribute 98 from anuga.parallel.parallel_api import myid, numprocs, get_processor_name 99 from anuga.parallel.parallel_api import send, receive 100 from anuga.parallel.parallel_api import pypar_available, barrier, finalize 92 101 93 102 if pypar_available: 94 from anuga _parallel.parallel_api import sequential_distribute_dump95 from anuga _parallel.parallel_api import sequential_distribute_load103 from anuga.parallel.parallel_api import sequential_distribute_dump 104 from anuga.parallel.parallel_api import sequential_distribute_load 96 105 97 106 … … 226 235 227 236 if pypar_available: 228 from anuga _parallel.parallel_operator_factory import Inlet_operator229 from anuga _parallel.parallel_operator_factory import Boyd_box_operator230 from anuga _parallel.parallel_operator_factory import Boyd_pipe_operator231 from anuga _parallel.parallel_operator_factory import Weir_orifice_trapezoid_operator237 from anuga.parallel.parallel_operator_factory import Inlet_operator 238 from anuga.parallel.parallel_operator_factory import Boyd_box_operator 239 from anuga.parallel.parallel_operator_factory import Boyd_pipe_operator 240 from anuga.parallel.parallel_operator_factory import Weir_orifice_trapezoid_operator 232 241 else: 233 242 from anuga.structures.inlet_operator import Inlet_operator -
trunk/anuga_core/source/anuga/utilities/quad_tree.c
r8691 r9500 340 340 void quad_tree_make_children(quad_tree *node){ 341 341 342 double xmid = (node->xmin+node->xmax)/2;343 double ymid = (node->ymin+node->ymax)/2;342 //double xmid = (node->xmin+node->xmax)/2; 343 //double ymid = (node->ymin+node->ymax)/2; 344 344 double width = (node->xmax-node->xmin); 345 345 double height = (node->ymax-node->ymin); -
trunk/anuga_core/source/anuga/utilities/setup.py
r9494 r9500 16 16 17 17 config.add_extension('sparse_matrix_ext', 18 sources= 'sparse_matrix_ext.c')18 sources=['sparse_matrix_ext.c', 'sparse_dok.c']) 19 19 20 20 … … 24 24 config.add_extension('cg_ext', 25 25 sources='cg_ext.c', 26 extra_compile_args=['-fopenmp']) 26 extra_compile_args=['-fopenmp'], 27 extra_link_args=['-fopenmp']) 27 28 28 29 config.add_extension('quad_tree_ext', -
trunk/anuga_core/source/anuga_parallel/distribute_mesh.py
r9291 r9500 32 32 import local_config as config 33 33 except: 34 import anuga_parallel.config as config34 import config as config 35 35 36 36 -
trunk/anuga_core/source/anuga_parallel/parallel_api.py
r9330 r9500 15 15 # ANUGA parallel engine (only load if pypar can) 16 16 if pypar_available: 17 from anuga _parallel.sequential_distribute import sequential_distribute_dump18 from anuga _parallel.sequential_distribute import sequential_distribute_load19 20 from anuga _parallel.distribute_mesh import send_submesh21 from anuga _parallel.distribute_mesh import rec_submesh22 from anuga _parallel.distribute_mesh import extract_submesh17 from anuga.parallel.sequential_distribute import sequential_distribute_dump 18 from anuga.parallel.sequential_distribute import sequential_distribute_load 19 20 from anuga.parallel.distribute_mesh import send_submesh 21 from anuga.parallel.distribute_mesh import rec_submesh 22 from anuga.parallel.distribute_mesh import extract_submesh 23 23 24 24 # Mesh partitioning using Metis 25 from anuga _parallel.distribute_mesh import build_submesh26 from anuga _parallel.distribute_mesh import pmesh_divide_metis_with_map27 28 from anuga _parallel.parallel_shallow_water import Parallel_domain25 from anuga.parallel.distribute_mesh import build_submesh 26 from anuga.parallel.distribute_mesh import pmesh_divide_metis_with_map 27 28 from anuga.parallel.parallel_shallow_water import Parallel_domain 29 29 30 30 -
trunk/anuga_core/source/anuga_parallel/parallel_operator_factory.py
r9429 r9500 19 19 from parallel_weir_orifice_trapezoid_operator import Parallel_Weir_orifice_trapezoid_operator#added by PM 22/10/2013 20 20 21 from anuga_parallelimport distribute, myid, numprocs, finalize21 from . import distribute, myid, numprocs, finalize 22 22 from anuga.geometry.polygon import inside_polygon, is_inside_polygon, line_intersect 23 23 … … 29 29 30 30 from anuga.utilities.numerical_tools import ensure_numeric 31 from anuga _parallel.parallel_shallow_water import Parallel_domain31 from anuga.parallel.parallel_shallow_water import Parallel_domain 32 32 33 33 import math -
trunk/anuga_core/source/anuga_parallel/parallel_shallow_water.py
r9261 r9500 14 14 from anuga import Domain 15 15 16 import anuga_parallel.parallel_generic_communications as generic_comms 16 import parallel_generic_communications as generic_comms 17 17 18 import anuga.utilities.parallel_abstraction as pypar 18 19 -
trunk/anuga_core/source/anuga_parallel/sequential_distribute.py
r9416 r9500 9 9 from anuga import Domain 10 10 11 from anuga _parallel.distribute_mesh import send_submesh12 from anuga _parallel.distribute_mesh import rec_submesh13 from anuga _parallel.distribute_mesh import extract_submesh11 from anuga.parallel.distribute_mesh import send_submesh 12 from anuga.parallel.distribute_mesh import rec_submesh 13 from anuga.parallel.distribute_mesh import extract_submesh 14 14 15 15 # Mesh partitioning using Metis 16 from anuga _parallel.distribute_mesh import build_submesh17 from anuga _parallel.distribute_mesh import pmesh_divide_metis_with_map18 19 from anuga _parallel.parallel_shallow_water import Parallel_domain16 from anuga.parallel.distribute_mesh import build_submesh 17 from anuga.parallel.distribute_mesh import pmesh_divide_metis_with_map 18 19 from anuga.parallel.parallel_shallow_water import Parallel_domain 20 20 21 21 -
trunk/anuga_core/source/anuga_parallel/test/test_distribute_mesh.py
r9424 r9500 9 9 from anuga import rectangular_cross 10 10 11 from anuga _parallel.distribute_mesh import pmesh_divide_metis12 from anuga _parallel.distribute_mesh import build_submesh13 from anuga _parallel.distribute_mesh import submesh_full, submesh_ghost, submesh_quantities14 from anuga _parallel.distribute_mesh import extract_submesh, rec_submesh, send_submesh11 from anuga.parallel.distribute_mesh import pmesh_divide_metis 12 from anuga.parallel.distribute_mesh import build_submesh 13 from anuga.parallel.distribute_mesh import submesh_full, submesh_ghost, submesh_quantities 14 from anuga.parallel.distribute_mesh import extract_submesh, rec_submesh, send_submesh 15 15 16 16 import numpy as num -
trunk/anuga_core/source/anuga_parallel/test/test_failure.py
r9433 r9500 20 20 import numpy as num 21 21 #from parallel_inlet_operator import Parallel_Inlet_operator 22 from anuga _parallel import distribute, myid, numprocs, finalize22 from anuga.parallel import distribute, myid, numprocs, finalize 23 23 from anuga.geometry.polygon import inside_polygon, is_inside_polygon, line_intersect 24 24
Note: See TracChangeset
for help on using the changeset viewer.