Changeset 3095
- Timestamp:
- Jun 6, 2006, 12:14:01 PM (19 years ago)
- Location:
- inundation
- Files:
-
- 3 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/parallel/documentation/code/RunParallelSwMerimbulaMetis.py
r2909 r3095 25 25 ######################################################### 26 26 import sys 27 import p ypar# The Python-MPI interface27 import parallel.pypar as pypar # The Python-MPI interface 28 28 import time 29 29 30 30 from os import sep 31 sys.path.append('..'+sep+'pyvolution') 32 sys.path.append('..'+sep+'parallel') 31 32 # ADD directory ..../anuga/inundation to PYTHONPATH instead 33 #sys.path.append('..'+sep+'pyvolution') 34 #sys.path.append('..'+sep+'parallel') 33 35 34 36 # Numeric arrays … … 38 40 # pmesh 39 41 40 from shallow_water import Domain41 from parallel _shallow_water import Parallel_Domain42 from p mesh2domain import pmesh_to_domain_instance42 from pyvolution.shallow_water import Domain 43 from parallel.parallel_shallow_water import Parallel_Domain 44 from pyvolution.pmesh2domain import pmesh_to_domain_instance 43 45 44 46 # Mesh partition routines 45 47 46 from p mesh_divide import pmesh_divide_metis47 from build_submesh import build_submesh48 from build_local import build_local_mesh49 from build_commun import send_submesh, rec_submesh, extract_hostmesh48 from parallel.pmesh_divide import pmesh_divide_metis 49 from parallel.build_submesh import build_submesh 50 from parallel.build_local import build_local_mesh 51 from parallel.build_commun import send_submesh, rec_submesh, extract_hostmesh 50 52 51 53 ############################### … … 156 158 # Define the boundaries, including the ghost boundary 157 159 158 from parallel _shallow_water import Transmissive_boundary, Reflective_boundary160 from parallel.parallel_shallow_water import Transmissive_boundary, Reflective_boundary 159 161 160 162 T = Transmissive_boundary(domain) -
inundation/parallel/pmesh_divide.py
r2850 r3095 84 84 # 85 85 ######################################################### 86 path.append('..' + sep + 'pymetis')87 86 88 from metis import partMeshNodal 87 #path.append('..' + sep + 'pymetis') 88 from pymetis.metis import partMeshNodal 89 89 90 90 def pmesh_divide_metis(domain, n_procs): -
inundation/pyvolution/generic_boundary_conditions.py
r2884 r3095 231 231 self.F = file_function(filename, domain, 232 232 interpolation_points=self.midpoint_coordinates, 233 verbose =verbose)233 verbose=verbose) 234 234 self.domain = domain 235 235
Note: See TracChangeset
for help on using the changeset viewer.