LCOV - code coverage report
Current view: top level - eps/impls/davidson - dvdtestconv.c (source / functions) Hit Total Coverage
Test: SLEPc Lines: 10 10 100.0 %
Date: 2024-11-21 00:40:22 Functions: 2 2 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       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             :    SLEPc eigensolver: "davidson"
      12             : 
      13             :    Step: test for convergence
      14             : */
      15             : 
      16             : #include "davidson.h"
      17             : 
      18       10400 : static PetscBool dvd_testconv_slepc_0(dvdDashboard *d,PetscScalar eigvr,PetscScalar eigvi,PetscReal r,PetscReal *err)
      19             : {
      20       10400 :   PetscFunctionBegin;
      21       10400 :   PetscCallAbort(PetscObjectComm((PetscObject)d->eps),(*d->eps->converged)(d->eps,eigvr,eigvi,r,err,d->eps->convergedctx));
      22       10400 :   PetscFunctionReturn(PetscNot(*err>=d->eps->tol));
      23             : }
      24             : 
      25         291 : PetscErrorCode dvd_testconv_slepc(dvdDashboard *d, dvdBlackboard *b)
      26             : {
      27         291 :   PetscFunctionBegin;
      28             :   /* Setup the step */
      29         291 :   if (b->state >= DVD_STATE_CONF) {
      30          97 :     PetscCall(PetscFree(d->testConv_data));
      31          97 :     d->testConv = dvd_testconv_slepc_0;
      32             :   }
      33         291 :   PetscFunctionReturn(PETSC_SUCCESS);
      34             : }

Generated by: LCOV version 1.14