Exemple #1
0
    def sendVelocities(self):
        dim, order, nodes, vertices = self.boundary.mesh.statistics()

        length = 3 * nodes
        field = self.boundary.velocity

        import elc
        elc.sendFieldMPI(self.source, self.sink, field, length)
        return
Exemple #2
0
    def sendPressures(self):
        dim, order, nodes, vertices = self.boundary.mesh.statistics()

        length = nodes
        field = self.boundary.pressure

        import elc
        # source and sink are reversed for this field
        elc.sendFieldMPI(self.sink, self.source, field, length)
        return