#include "petscts.h" PetscErrorCode TSGetSolutionComponents(TS ts,PetscInt *n,Vec *v)Not Collective, but Vec returned is parallel if TS is parallel
ts | - the TS context obtained from TSCreate() (input parameter). | |
n | - If v is PETSC_NULL, then the number of solution components is returned through n, else the n-th solution component is returned in v. | |
v | - the vector containing the n-th solution component (may be PETSC_NULL to use this function to find out the number of solutions components). |