The Open FUSION Toolkit 1.0.0-beta6
Modeling tools for plasma and fusion research and engineering
Loading...
Searching...
No Matches
petsc_la.F90 File Reference
#include "local.h"

Data Types

type  oft_petsc_matrix
 PETSc matrix implementation. More...
type  oft_petsc_vector
 PETSc vector implementation. More...

Modules

module  oft_petsc_la
 PETSc vector implementation.

Functions/Subroutines

subroutine mat_add_values (self, i_inds, j_inds, b, n, m, iblock, jblock, loc_cache)
 Add values to a matrix.
subroutine mat_apply_cvec (self, a, b)
 Compute matrix-vector product (complex).
subroutine mat_apply_vec (self, a, b)
 Compute matrix-vector product.
subroutine mat_applyt_cvec (self, a, b)
 Apply matrix vector product for matrix transpose (complex vector).
subroutine mat_applyt_vec (self, a, b)
 Apply matrix vector product for matrix transpose.
subroutine mat_assemble (self, diag)
 Finish assembly of matrix and optionally extract diagonals.
subroutine mat_delete (self)
 Delete matrix.
subroutine mat_set_values (self, i_inds, j_inds, b, n, m, iblock, jblock)
 Set values of a matrix.
subroutine mat_zero (self)
 Zero all entries in matrix.
subroutine mat_zero_rows (self, nrows, irows, iblock, keep_diag)
 Zero all entries in the specified rows.
logical function, public oft_petsc_matrix_cast (self, source)
 Cast a oft_matrix object to a oft_petsc_matrix.
logical function, public oft_petsc_vector_cast (self, source)
 Cast a vector object to a oft_petsc_vector.
subroutine vec_add (self, gamma, alpha, a, beta, b)
 Add vectors.
subroutine vec_delete (self)
 Finalize vector.
complex(c8) function vec_dot_cvec (self, a)
 Dot product with a complex vector.
real(r8) function vec_dot_vec (self, a)
 Dot product with a vector.
subroutine vec_get_local (self, array, iblock)
 Get local values from vector.
subroutine vec_get_slice (self, array, iblock)
 Get values for locally-owned portion of vector (slice).
complex(c8) function, dimension(n) vec_mdot_cvec (self, a, n)
 Dot product with an array of complex vectors.
real(r8) function, dimension(n) vec_mdot_vec (self, a, n)
 Dot product with an array of vectors.
subroutine vec_mult (self, a, div_flag)
 Elementwise multiplication with another vector.
subroutine vec_new_cvec (self, new)
 Create a new complex vector as a bare copy of self.
subroutine vec_new_vec (self, new)
 Create a new vector as a bare copy of self.
real(r8) function vec_norm (self, itype)
 Compute norm of vector.
subroutine vec_restore_local (self, array, iblock, add, wait)
 Set/add local values to vector.
subroutine vec_restore_slice (self, array, iblock, wait)
 Set/add values for locally-owned portion of vector (slice).
subroutine vec_scale (self, alpha)
 Scale vector by a scalar.
subroutine vec_set (self, alpha, iblock, random)
 Set all elements to a scalar.
subroutine vec_stitch (self, up_method)
 Perform global stitching.
real(r8) function vec_sum (self)
 Sum reduction over vector.