GCC Code Coverage Report


Directory: ./
File: src/pep/impls/krylov/stoar/ftn-custom/zstoarf.c
Date: 2026-05-04 03:58:11
Exec Total Coverage
Lines: 0 12 0.0%
Functions: 0 1 0.0%
Branches: 0 64 0.0%

Line Branch Exec Source
1 /*
2 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3 SLEPc - Scalable Library for Eigenvalue Problem Computations
4 Copyright (c) 2002-, Universitat Politecnica de Valencia, Spain
5
6 This file is part of SLEPc.
7 SLEPc is distributed under a 2-clause BSD license (see LICENSE).
8 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
9 */
10
11 #include <petsc/private/ftnimpl.h>
12 #include <slepcpep.h>
13
14 #if defined(PETSC_HAVE_FORTRAN_CAPS)
15 #define pepstoargetinertias_ PEPSTOARGETINERTIAS
16 #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE)
17 #define pepstoargetinertias_ pepstoargetinertias
18 #endif
19
20 SLEPC_EXTERN void pepstoargetinertias_(PEP *pep,PetscInt *nshift,PetscReal *shifts,PetscInt *inertias,PetscErrorCode *ierr)
21 {
22 PetscReal *oshifts;
23 PetscInt *oinertias;
24 PetscInt n;
25
26 CHKFORTRANNULLREAL(shifts);
27 CHKFORTRANNULLINTEGER(inertias);
28 *ierr = PEPSTOARGetInertias(*pep,&n,&oshifts,&oinertias); if (*ierr) return;
29 if (shifts) { *ierr = PetscArraycpy(shifts,oshifts,n); if (*ierr) return; }
30 if (inertias) { *ierr = PetscArraycpy(inertias,oinertias,n); if (*ierr) return; }
31 *nshift = n;
32 *ierr = PetscFree(oshifts);if (*ierr) return;
33 *ierr = PetscFree(oinertias);
34 }
35