Cloned SEACAS for EXODUS library with extra build files for internal package management.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

24 lines
693 B

/*
* Copyright(C) 1999-2020, 2023 National Technology & Engineering Solutions
* of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
* NTESS, the U.S. Government retains certain rights in this software.
*
* See packages/seacas/LICENSE for details
*/
#include "defs.h"
#include "structs.h"
/* Check an eigenpair of A by direct multiplication. */
double checkeig(double *err, struct vtx_data **A, double *y, int n, double lambda, double *vwsqrt,
double *work)
{
double resid;
double normy;
splarax(err, A, n, y, vwsqrt, work);
scadd(err, 1, n, -lambda, y);
normy = ch_norm(y, 1, n);
resid = ch_norm(err, 1, n) / normy;
return (resid);
}