def __init__(self, coordinates, vertices, boundary=None, full_send_dict=None, ghost_recv_dict=None, velocity=None): Domain.__init__(self, coordinates, vertices, boundary, velocity=velocity, full_send_dict=full_send_dict, ghost_recv_dict=ghost_recv_dict, processor=pypar.rank(), numproc=pypar.size()) N = self.number_of_elements self.communication_time = 0.0 self.communication_reduce_time = 0.0 print 'processor', self.processor print 'numproc', self.numproc
def __init__(self, coordinates=None, vertices=None, boundary=None, source=None, triangular=None, conserved_quantities=None, evolved_quantities=None, other_quantities=None, tagged_elements=None, geo_reference=None, use_inscribed_circle=False, mesh_fulename=None, use_cache=False, verbose=False, full_send_dict=None, ghost_recv_dict=None, starttime=0.0, processor=0, numproc=1, number_of_full_nodes=None, number_of_full_triangles=None, ghost_layer_width=2 ): """The init routain of the ANUGA to create the mesh.""" Domain.__init__(self, coordinates, vertices, boundary, full_send_dict=full_send_dict, ghost_recv_dict=ghost_recv_dict, number_of_full_nodes=number_of_full_nodes, number_of_full_triangles=number_of_full_triangles, geo_reference=geo_reference) #jj added this
def __init__(self, coordinates, vertices, boundary = None, full_send_dict = None, ghost_recv_dict = None, velocity = None): Domain.__init__(self, coordinates, vertices, boundary, velocity = velocity, full_send_dict=full_send_dict, ghost_recv_dict=ghost_recv_dict, processor=pypar.rank(), numproc=pypar.size() ) N = self.number_of_elements self.communication_time = 0.0 self.communication_reduce_time = 0.0 print 'processor',self.processor print 'numproc',self.numproc
def __init__(self, coordinates, vertices, boundary=None, full_send_dict=None, ghost_recv_dict=None, number_of_full_nodes=None, number_of_full_triangles=None, geo_reference=None): #jj added this Domain.__init__(self, coordinates, vertices, boundary, full_send_dict=full_send_dict, ghost_recv_dict=ghost_recv_dict, number_of_full_nodes=number_of_full_nodes, number_of_full_triangles=number_of_full_triangles, geo_reference=geo_reference) #jj added this
def __init__( self, coordinates, vertices, boundary=None, full_send_dict=None, ghost_recv_dict=None, number_of_full_nodes=None, number_of_full_triangles=None, geo_reference=None, processor=None, numproc=None, number_of_global_triangles=None, ## SR added this number_of_global_nodes=None, ## SR added this s2p_map=None, p2s_map=None, #jj added this tri_l2g=None, ## SR added this node_l2g=None, #): ## SR added this ghost_layer_width=2): ## SR added this #----------------------------------------- # Sometimes we want to manually # create instances of the parallel_domain # otherwise ... #---------------------------------------- if processor is None: processor = pypar.rank() if numproc is None: numproc = pypar.size() Domain.__init__( self, coordinates, vertices, boundary, full_send_dict=full_send_dict, ghost_recv_dict=ghost_recv_dict, processor=processor, numproc=numproc, number_of_full_nodes=number_of_full_nodes, number_of_full_triangles=number_of_full_triangles, geo_reference=geo_reference, #) #jj added this ghost_layer_width=ghost_layer_width) self.parallel = True # PETE: Find the number of full nodes and full triangles, this is a temporary fix # until the bug with get_number_of_full_[nodes|triangles]() is fixed. if number_of_full_nodes is not None: self.number_of_full_nodes_tmp = number_of_full_nodes else: self.number_of_full_nodes_tmp = self.get_number_of_nodes() if number_of_full_triangles is not None: self.number_of_full_triangles_tmp = number_of_full_triangles else: self.number_of_full_triangles_tmp = self.get_number_of_triangles() generic_comms.setup_buffers(self) self.global_name = 'domain' self.number_of_global_triangles = number_of_global_triangles self.number_of_global_nodes = number_of_global_nodes self.s2p_map = s2p_map self.p2s_map = p2s_map self.s2p_map = None self.p2s_map = None self.tri_l2g = tri_l2g self.node_l2g = node_l2g self.ghost_counter = 0
def __init__(self, coordinates, vertices, boundary=None, full_send_dict=None, ghost_recv_dict=None, number_of_full_nodes=None, number_of_full_triangles=None, geo_reference=None, processor = None, numproc = None, number_of_global_triangles=None, ## SR added this number_of_global_nodes= None, ## SR added this s2p_map=None, p2s_map=None, #jj added this tri_l2g = None, ## SR added this node_l2g = None, #): ## SR added this ghost_layer_width = 2): ## SR added this #----------------------------------------- # Sometimes we want to manually # create instances of the parallel_domain # otherwise ... #---------------------------------------- if processor is None: processor = pypar.rank() if numproc is None: numproc = pypar.size() Domain.__init__(self, coordinates, vertices, boundary, full_send_dict=full_send_dict, ghost_recv_dict=ghost_recv_dict, processor=processor, numproc=numproc, number_of_full_nodes=number_of_full_nodes, number_of_full_triangles=number_of_full_triangles, geo_reference=geo_reference, #) #jj added this ghost_layer_width = ghost_layer_width) self.parallel = True # PETE: Find the number of full nodes and full triangles, this is a temporary fix # until the bug with get_number_of_full_[nodes|triangles]() is fixed. if number_of_full_nodes is not None: self.number_of_full_nodes_tmp = number_of_full_nodes else: self.number_of_full_nodes_tmp = self.get_number_of_nodes() if number_of_full_triangles is not None: self.number_of_full_triangles_tmp = number_of_full_triangles else: self.number_of_full_triangles_tmp = self.get_number_of_triangles() generic_comms.setup_buffers(self) self.global_name = 'domain' self.number_of_global_triangles=number_of_global_triangles self.number_of_global_nodes = number_of_global_nodes self.s2p_map = s2p_map self.p2s_map = p2s_map self.s2p_map = None self.p2s_map = None self.tri_l2g = tri_l2g self.node_l2g = node_l2g self.ghost_counter = 0