Changeset 8248


Ignore:
Timestamp:
Nov 15, 2011, 4:36:00 PM (12 years ago)
Author:
steve
Message:

commiting at the anuga_core level

Location:
trunk
Files:
2 added
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/compile_all.py

    r8129 r8248  
    2828
    2929os.chdir('..')
     30os.chdir('geometry')
     31execfile('..' + os.sep + 'utilities' + os.sep + 'compile.py')
     32
     33os.chdir('..')
    3034os.chdir('structures')
    3135execfile('..' + os.sep + 'utilities' + os.sep + 'compile.py')
     
    4347execfile('..' + os.sep + 'utilities' + os.sep + 'compile.py')
    4448
    45 os.chdir('..')
    46 os.chdir('shallow_water_balanced')
    47 execfile('..' + os.sep + 'utilities' + os.sep + 'compile.py')
    4849
    4950os.chdir('..')
  • trunk/anuga_core/source/anuga/__init__.py

    r8226 r8248  
    305305    """
    306306
    307     from anuga.shallow_water.shallow_water_domain import Domain
     307    #from anuga.shallow_water.shallow_water_domain import Domain
    308308    from anuga.pmesh.mesh_interface import create_mesh_from_regions
    309309   
     
    321321                             use_cache=False,
    322322                             verbose=verbose)
     323
    323324    domain = Domain(mesh_filename, use_cache=False, verbose=verbose)
    324325
  • trunk/anuga_core/source/anuga/compile_all.py

    r8129 r8248  
    1010execfile('compile.py')
    1111
    12 os.chdir('..')
    13 os.chdir('advection')
    14 execfile('..' + os.sep + 'utilities' + os.sep + 'compile.py')
     12#os.chdir('..')
     13#os.chdir('advection')
     14#execfile('..' + os.sep + 'utilities' + os.sep + 'compile.py')
    1515
    1616os.chdir('..')
    1717os.chdir('operators')
     18execfile('..' + os.sep + 'utilities' + os.sep + 'compile.py')
     19
     20
     21os.chdir('..')
     22os.chdir('geometry')
    1823execfile('..' + os.sep + 'utilities' + os.sep + 'compile.py')
    1924
     
    3439execfile('..' + os.sep + 'utilities' + os.sep + 'compile.py')
    3540
    36 os.chdir('..')
    37 os.chdir('shallow_water_balanced')
    38 execfile('..' + os.sep + 'utilities' + os.sep + 'compile.py')
     41#os.chdir('..')
     42#os.chdir('shallow_water_balanced')
     43#execfile('..' + os.sep + 'utilities' + os.sep + 'compile.py')
    3944
    4045os.chdir('..')
  • trunk/anuga_core/source/anuga/operators/base_operator.py

    r8228 r8248  
    2828
    2929    def __parallel_safe(self):
    30 
    31         return True
     30        """By default an operator is not parallel safe
     31        """
     32        return False
    3233
    3334    def statistics(self):
     
    3536        message = 'You need to implement operator statistics for your operator'
    3637        return message
     38   
    3739
    3840    def print_statistics(self):
  • trunk/anuga_validation/okushiri_2005/run_okushiri.py

    r7492 r8248  
    2222
    2323# Module imports
    24 from anuga.interface import Domain
    25 from anuga.interface import Reflective_boundary
    26 from anuga.interface import Time_boundary
    27 from anuga.interface import Transmissive_momentum_set_stage_boundary
    28 from anuga.interface import Transmissive_n_momentum_zero_t_momentum_set_stage_boundary
    29 from anuga.interface import file_function
     24from anuga import Domain
     25from anuga import Reflective_boundary
     26from anuga import Time_boundary
     27from anuga import Transmissive_momentum_set_stage_boundary
     28from anuga import Transmissive_n_momentum_zero_t_momentum_set_stage_boundary
     29from anuga import file_function
    3030
    3131import project
     
    8484triangle_id = domain.get_triangle_containing_point([4.521, 1.196])
    8585# This should get triangle id 32833 with centroid (4.5244, 1.1972)
     86print 'triangle_id = ',triangle_id
    8687bdry_id = domain.get_triangle_containing_point([0.000, 1.696])
     88# This should get triangle id 56474
    8789print 'bdry_id = ',bdry_id
    8890
     
    9698for t in domain.evolve(yieldstep = 0.05, finaltime = 22.5):
    9799    domain.write_time()
    98     print  function(domain.get_time())[0],' bdry_d = ',bdry_id,' ',\
     100    print '   ',function(domain.get_time())[0],' bdry_d = ',bdry_id,' ',\
    99101          domain.get_conserved_quantities(bdry_id, edge=0)[0],' ',\
    100102          domain.get_conserved_quantities(bdry_id, edge=1)[0],' ',\
  • trunk/anuga_work/shallow_water_balanced_steve/run_step.py

    r8202 r8248  
    1212import sys
    1313import anuga
     14#from anuga import Domain
    1415from swb_domain import *
    1516
     
    4647# structured mesh
    4748points, vertices, boundary = anuga.rectangular_cross(int(L/dx), int(W/dy), L, W, (0.0, -W/2))
     49
     50
     51create_mesh_from_regions(bounding_polygon,
     52                             boundary_tags,
     53                             maximum_triangle_area=maximum_triangle_area,
     54                             interior_regions=interior_regions,
     55                             filename=mesh_filename,
     56                             interior_holes=interior_holes,
     57                             hole_tags=hole_tags,
     58                             poly_geo_reference=poly_geo_reference,
     59                             mesh_geo_reference=mesh_geo_reference,
     60                             minimum_triangle_angle=minimum_triangle_angle,
     61                             fail_if_polygons_outside=fail_if_polygons_outside,
     62                             use_cache=False,
     63                             verbose=verbose)
    4864
    4965domain = Domain(points, vertices, boundary)
  • trunk/anuga_work/shallow_water_balanced_steve/run_wave.py

    r8202 r8248  
    1212import sys
    1313import anuga
    14 from swb_domain import *
     14from anuga import Domain
     15#from swb_domain import *
    1516
    1617from math import cos
     
    5657domain.set_timestepping_method('rk2')
    5758domain.set_default_order(2)
     59domain.set_beta(2.0)
    5860
    5961print domain.get_timestepping_method()
     
    7981Bd = anuga.Dirichlet_boundary([1,0.,0.]) # Constant boundary values
    8082amplitude = 1
    81 wave_length = 1000.0
     83wave_length = 300.0
    8284Bw = anuga.Time_boundary(domain=domain,     # Time dependent boundary
    8385## Sine wave
  • trunk/anuga_work/shallow_water_balanced_steve/swb_domain.py

    r8206 r8248  
    7777        self.forcing_terms[1] = swb_gravity
    7878
     79        print "Swb_domain"
    7980
    8081    def check_integrity(self):
Note: See TracChangeset for help on using the changeset viewer.