Changeset 9500


Ignore:
Timestamp:
Jan 26, 2015, 8:24:59 PM (10 years ago)
Author:
steve
Message:

setup up to move anuga_parllel to anuga.parallel

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  
    8686# Parallel api
    8787#----------------------------
    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
     97from anuga.parallel.parallel_api import distribute
     98from anuga.parallel.parallel_api import myid, numprocs, get_processor_name
     99from anuga.parallel.parallel_api import send, receive
     100from anuga.parallel.parallel_api import pypar_available, barrier, finalize
    92101
    93102if pypar_available:
    94     from anuga_parallel.parallel_api import sequential_distribute_dump
    95     from anuga_parallel.parallel_api import sequential_distribute_load
     103    from anuga.parallel.parallel_api import sequential_distribute_dump
     104    from anuga.parallel.parallel_api import sequential_distribute_load
    96105
    97106
     
    226235
    227236if pypar_available:
    228     from anuga_parallel.parallel_operator_factory import Inlet_operator
    229     from anuga_parallel.parallel_operator_factory import Boyd_box_operator
    230     from anuga_parallel.parallel_operator_factory import Boyd_pipe_operator
    231     from anuga_parallel.parallel_operator_factory import Weir_orifice_trapezoid_operator
     237    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
    232241else:
    233242    from anuga.structures.inlet_operator import Inlet_operator
  • trunk/anuga_core/source/anuga/utilities/quad_tree.c

    r8691 r9500  
    340340void quad_tree_make_children(quad_tree *node){
    341341
    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;
    344344  double width = (node->xmax-node->xmin);
    345345  double height = (node->ymax-node->ymin);
  • trunk/anuga_core/source/anuga/utilities/setup.py

    r9494 r9500  
    1616
    1717    config.add_extension('sparse_matrix_ext',
    18                          sources='sparse_matrix_ext.c')
     18                         sources=['sparse_matrix_ext.c', 'sparse_dok.c'])
    1919
    2020
     
    2424    config.add_extension('cg_ext',
    2525                         sources='cg_ext.c',
    26                          extra_compile_args=['-fopenmp'])
     26                         extra_compile_args=['-fopenmp'],
     27                         extra_link_args=['-fopenmp'])
    2728
    2829    config.add_extension('quad_tree_ext',
  • trunk/anuga_core/source/anuga_parallel/distribute_mesh.py

    r9291 r9500  
    3232    import local_config as config
    3333except:
    34     import anuga_parallel.config as config
     34    import config as config
    3535
    3636
  • trunk/anuga_core/source/anuga_parallel/parallel_api.py

    r9330 r9500  
    1515# ANUGA parallel engine (only load if pypar can)
    1616if pypar_available:
    17     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
     17    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
    2323
    2424    # Mesh partitioning using Metis
    25     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
     25    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
    2929   
    3030   
  • trunk/anuga_core/source/anuga_parallel/parallel_operator_factory.py

    r9429 r9500  
    1919from parallel_weir_orifice_trapezoid_operator import Parallel_Weir_orifice_trapezoid_operator#added by PM 22/10/2013
    2020
    21 from anuga_parallel import distribute, myid, numprocs, finalize
     21from . import distribute, myid, numprocs, finalize
    2222from anuga.geometry.polygon import inside_polygon, is_inside_polygon, line_intersect
    2323
     
    2929
    3030from anuga.utilities.numerical_tools import ensure_numeric
    31 from anuga_parallel.parallel_shallow_water import Parallel_domain
     31from anuga.parallel.parallel_shallow_water import Parallel_domain
    3232
    3333import math
  • trunk/anuga_core/source/anuga_parallel/parallel_shallow_water.py

    r9261 r9500  
    1414from anuga import Domain
    1515
    16 import anuga_parallel.parallel_generic_communications as generic_comms
     16import parallel_generic_communications as generic_comms
     17
    1718import anuga.utilities.parallel_abstraction as pypar
    1819
  • trunk/anuga_core/source/anuga_parallel/sequential_distribute.py

    r9416 r9500  
    99from anuga import Domain
    1010
    11 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
     11from anuga.parallel.distribute_mesh  import send_submesh
     12from anuga.parallel.distribute_mesh  import rec_submesh
     13from anuga.parallel.distribute_mesh  import extract_submesh
    1414
    1515# Mesh partitioning using Metis
    16 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
     16from anuga.parallel.distribute_mesh import build_submesh
     17from anuga.parallel.distribute_mesh import pmesh_divide_metis_with_map
     18
     19from anuga.parallel.parallel_shallow_water import Parallel_domain
    2020
    2121
  • trunk/anuga_core/source/anuga_parallel/test/test_distribute_mesh.py

    r9424 r9500  
    99from anuga import rectangular_cross
    1010
    11 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
     11from anuga.parallel.distribute_mesh import pmesh_divide_metis
     12from anuga.parallel.distribute_mesh import build_submesh
     13from anuga.parallel.distribute_mesh import submesh_full, submesh_ghost, submesh_quantities
     14from anuga.parallel.distribute_mesh import extract_submesh, rec_submesh, send_submesh
    1515
    1616import numpy as num
  • trunk/anuga_core/source/anuga_parallel/test/test_failure.py

    r9433 r9500  
    2020import numpy as num
    2121#from parallel_inlet_operator import Parallel_Inlet_operator
    22 from anuga_parallel import distribute, myid, numprocs, finalize
     22from anuga.parallel import distribute, myid, numprocs, finalize
    2323from anuga.geometry.polygon import inside_polygon, is_inside_polygon, line_intersect
    2424
Note: See TracChangeset for help on using the changeset viewer.