| ceed_operator.py (6397b31bcaf7e994aea0d6896897f7cd33505ad1) | ceed_operator.py (0c9255df9a623adc0ceb99aeefa7722cb6624eb3) |
|---|---|
| 1# Copyright (c) 2017, Lawrence Livermore National Security, LLC. Produced at 2# the Lawrence Livermore National Laboratory. LLNL-CODE-734707. All Rights 3# reserved. See files LICENSE and NOTICE for details. 4# 5# This file is part of CEED, a collection of benchmarks, miniapps, software 6# libraries and APIs for efficient high-order finite element and spectral 7# element discretizations for exascale applications. For more information and 8# source code availability see http://github.com/ceed. --- 50 unchanged lines hidden (view full) --- 59 """Assemble the diagonal of a square linear Operator 60 61 Args: 62 d: Vector to store assembled Operator diagonal 63 **request: Ceed request, default CEED_REQUEST_IMMEDIATE""" 64 65 # libCEED call 66 lib.CeedOperatorLinearAssembleDiagonal(self._pointer[0], | 1# Copyright (c) 2017, Lawrence Livermore National Security, LLC. Produced at 2# the Lawrence Livermore National Laboratory. LLNL-CODE-734707. All Rights 3# reserved. See files LICENSE and NOTICE for details. 4# 5# This file is part of CEED, a collection of benchmarks, miniapps, software 6# libraries and APIs for efficient high-order finite element and spectral 7# element discretizations for exascale applications. For more information and 8# source code availability see http://github.com/ceed. --- 50 unchanged lines hidden (view full) --- 59 """Assemble the diagonal of a square linear Operator 60 61 Args: 62 d: Vector to store assembled Operator diagonal 63 **request: Ceed request, default CEED_REQUEST_IMMEDIATE""" 64 65 # libCEED call 66 lib.CeedOperatorLinearAssembleDiagonal(self._pointer[0], |
| 67 d._pointer[0], request) | 67 d._pointer[0], request) |
| 68 69 # Assemble add linear diagonal 70 def linear_assemble_add_diagonal(self, d, request=REQUEST_IMMEDIATE): 71 """Sum the diagonal of a square linear Operator into a Vector 72 73 Args: 74 d: Vector to store assembled Operator diagonal 75 **request: Ceed request, default CEED_REQUEST_IMMEDIATE""" 76 77 # libCEED call 78 lib.CeedOperatorLinearAssembleAddDiagonal(self._pointer[0], | 68 69 # Assemble add linear diagonal 70 def linear_assemble_add_diagonal(self, d, request=REQUEST_IMMEDIATE): 71 """Sum the diagonal of a square linear Operator into a Vector 72 73 Args: 74 d: Vector to store assembled Operator diagonal 75 **request: Ceed request, default CEED_REQUEST_IMMEDIATE""" 76 77 # libCEED call 78 lib.CeedOperatorLinearAssembleAddDiagonal(self._pointer[0], |
| 79 d._pointer[0], request) | 79 d._pointer[0], request) |
| 80 81 # Assemble linear point block diagonal | 80 81 # Assemble linear point block diagonal |
| 82 def linear_assemble_point_block_diagonal(self, d, request=REQUEST_IMMEDIATE): 83 """Assemble the diagonal of a square linear Operator | 82 def linear_assemble_point_block_diagonal( 83 self, d, request=REQUEST_IMMEDIATE): 84 """Assemble the point block diagonal of a square linear Operator |
| 84 85 Args: 86 d: Vector to store assembled Operator point block diagonal, 87 provided in row-major form with an ncomp*ncomp block 88 at each node 89 **request: Ceed request, default CEED_REQUEST_IMMEDIATE""" 90 91 # libCEED call 92 lib.CeedOperatorLinearAssemblePointBlockDiagonal(self._pointer[0], | 85 86 Args: 87 d: Vector to store assembled Operator point block diagonal, 88 provided in row-major form with an ncomp*ncomp block 89 at each node 90 **request: Ceed request, default CEED_REQUEST_IMMEDIATE""" 91 92 # libCEED call 93 lib.CeedOperatorLinearAssemblePointBlockDiagonal(self._pointer[0], |
| 93 d._pointer[0], request) | 94 d._pointer[0], request) |
| 94 95 # Assemble linear point block diagonal | 95 96 # Assemble linear point block diagonal |
| 96 def linear_assemble_add_point_block_diagonal(self, d, request=REQUEST_IMMEDIATE): 97 """Sum the diagonal of a square linear Operator into a Vector | 97 def linear_assemble_add_point_block_diagonal( 98 self, d, request=REQUEST_IMMEDIATE): 99 """Sum the point block diagonal of a square linear Operator into a Vector |
| 98 99 Args: 100 d: Vector to store assembled Operator point block diagonal, 101 provided in row-major form with an ncomp*ncomp block 102 at each node 103 **request: Ceed request, default CEED_REQUEST_IMMEDIATE""" 104 105 # libCEED call 106 lib.CeedOperatorLinearAssembleAddPointBlockDiagonal(self._pointer[0], | 100 101 Args: 102 d: Vector to store assembled Operator point block diagonal, 103 provided in row-major form with an ncomp*ncomp block 104 at each node 105 **request: Ceed request, default CEED_REQUEST_IMMEDIATE""" 106 107 # libCEED call 108 lib.CeedOperatorLinearAssembleAddPointBlockDiagonal(self._pointer[0], |
| 107 d._pointer[0], request) | 109 d._pointer[0], request) |
| 108 109 # Apply CeedOperator 110 def apply(self, u, v, request=REQUEST_IMMEDIATE): 111 """Apply Operator to a vector. 112 113 Args: 114 u: Vector containing input state or CEED_VECTOR_NONE if there are no 115 active inputs --- 90 unchanged lines hidden --- | 110 111 # Apply CeedOperator 112 def apply(self, u, v, request=REQUEST_IMMEDIATE): 113 """Apply Operator to a vector. 114 115 Args: 116 u: Vector containing input state or CEED_VECTOR_NONE if there are no 117 active inputs --- 90 unchanged lines hidden --- |