#include <petsc/finclude/petscksp.h>
Go to the source code of this file.
|
| subroutine | petscvectormodule::petsc_vec_create_mm (this, n, name, mem_path) |
| | Create a PETSc vector, with memory.
|
| subroutine | petscvectormodule::petsc_vec_create (this, n) |
| | Create a PETSc vector, with memory.
|
| subroutine | petscvectormodule::petsc_vec_destroy (this) |
| | Clean up.
|
| real(dp) function, dimension(:), pointer, contiguous | petscvectormodule::petsc_vec_get_array (this) |
| | Get a pointer to the underlying data array.
|
| subroutine | petscvectormodule::petsc_vec_get_ownership_range (this, start, end) |
| integer(i4b) function | petscvectormodule::petsc_vec_get_size (this) |
| real(dp) function | petscvectormodule::petsc_vec_get_value_local (this, idx) |
| | Gets a value from the vector at the local index.
|
| subroutine | petscvectormodule::petsc_vec_zero_entries (this) |
| | set all elements to zero
|
| subroutine | petscvectormodule::petsc_vec_set_value_local (this, idx, val) |
| | Set vector value at local index.
|
| subroutine | petscvectormodule::petsc_vec_axpy (this, alpha, vec_x) |
| | Calculate AXPY: y = a*x + y.
|
| real(dp) function | petscvectormodule::petsc_vec_norm2 (this) |
| | Calculate this vector's (global) 2-norm.
|
| subroutine | petscvectormodule::petsc_vec_print (this) |