Changeset 8507


Ignore:
Timestamp:
Aug 13, 2012, 4:50:25 PM (13 years ago)
Author:
steve
Message:

Just adding extra mpi facility via pypar_ext

Location:
trunk/anuga_core/source/anuga_parallel
Files:
12 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga_parallel/parallel_inlet_operator.py

    r8471 r8507  
    3535                 line,
    3636                 Q = 0.0,
     37                 default = None,
    3738                 description = None,
    3839                 label = None,
     
    8485        self.set_logging(logging)
    8586
     87
     88        self.set_default(default)
     89
     90
    8691    def __call__(self):
    8792
     
    114119        """
    115120        # Only one processor should call this function unless Q is parallelizable
     121
     122        from anuga.fit_interpolate.interpolate import Modeltime_too_early, Modeltime_too_late
     123       
    116124        if callable(self.Q):
    117             Q = self.Q(t)[0]
     125            try:
     126                Q = self.Q(t)[0]
     127            except Modeltime_too_early, e:
     128                raise Modeltime_too_early(e)
     129            except Modeltime_too_late, e:
     130                Q = self.get_default(t)
    118131        else:
    119132            Q = self.Q
    120133
    121134        return Q
     135   
    122136
    123137    def statistics(self):
  • trunk/anuga_core/source/anuga_parallel/parallel_operator_factory.py

    r8440 r8507  
    3939                   line,
    4040                   Q,
     41                   default = None,
    4142                   description = None,
    4243                   label = None,
     
    5253                                                              line,
    5354                                                              Q,
     55                                                              default = default,
    5456                                                              description = description,
    5557                                                              label = label,
     
    8183                                       line,
    8284                                       Q,
     85                                       default = default,
    8386                                       description = description,
    8487                                       label = label,
  • trunk/anuga_core/source/anuga_parallel/test_parallel_frac_op.py

    r8425 r8507  
    5050
    5151length = 40.
    52 width = 15.
    53 
    54 dx = dy = 0.5          # Resolution: Length of subdivisions on both axes
     52width = 16.
     53
     54dx = dy = 2           # Resolution: Length of subdivisions on both axes
    5555
    5656#----------------------------------------------------------------------
     
    222222    ##-----------------------------------------------------------------------
    223223
    224     for t in domain.evolve(yieldstep = 2.0, finaltime = 2.0):
     224    for t in domain.evolve(yieldstep = 2.0, finaltime = 20.0):
    225225        if myid == 0 and verbose:
    226226            domain.write_time()
Note: See TracChangeset for help on using the changeset viewer.