Applies boundary conditions to a matrix by removal of the appropriate rows and columns.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(inout), | dimension(:) | :: | gdof |
An array of the global degrees of freedom to restrain. The array is sorted into ascending order on output. |
|
| real(kind=real64), | intent(in), | dimension(:,:) | :: | x |
The matrix to constrain. |
The altered matrix.
Applies boundary conditions to a vector by removal of the appropriate items.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(inout), | dimension(:) | :: | gdof |
An array of the global degrees of freedom to restrain. The array is sorted into ascending order on output. |
|
| real(kind=real64), | intent(in), | dimension(:) | :: | x |
The vector to constrain. |
The altered vector.
Applies boundary conditions to a CSR-format sparse matrix by removal of the appropriate rows and columns.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(inout), | dimension(:) | :: | gdof |
An array of the global degrees of freedom to restrain. The array is sorted into ascending order on output. |
|
| type(csr_matrix), | intent(in) | :: | x |
The matrix to constrain. |
The altered matrix.