#!/usr/bin/env python ### ######################################################### # # Main file for parallel mesh testing. Runs an advection # flow simulation using a rectangular mesh # # # Authors: Steve Roberts June 2005 # Modified by Linda Stals April 2006 # # ######################################################### import sys from os import sep sys.path.append('..'+sep+'pyvolution') # Parallel communication routines import pypar # Mesh partition routines from parallel_meshes import parallel_rectangle # Parallel Domain from parallel_advection import Parallel_Domain from parallel_advection import Transmissive_boundary ############################ # Set the initial conditions ############################ class Set_Stage: """Set an initial condition with constant water height, for xself.x0)&(x