Chi-Tech
nl_keigen_ags_solver.cc File Reference
#include "nl_keigen_ags_solver.h"
#include "A_LBSSolver/IterativeMethods/snes_k_monitor.h"
#include "nl_keigen_ags_residual_func.h"
#include "math/PETScUtils/petsc_utils.h"
#include "chi_runtime.h"
#include "chi_log.h"
#include <petscsnes.h>
#include <iomanip>

Go to the source code of this file.

Namespaces

namespace  lbs
 

Macros

#define SNESTypes   Mat,Vec,SNES
 
#define CheckContext(x)
 
#define GetNLKAGSContextPtr(x)
 

Macro Definition Documentation

◆ CheckContext

#define CheckContext (   x)
Value:
if (not x) \
throw std::runtime_error(std::string(__PRETTY_FUNCTION__) + \
": context casting failure")

Definition at line 17 of file nl_keigen_ags_solver.cc.

◆ GetNLKAGSContextPtr

#define GetNLKAGSContextPtr (   x)
Value:
std::dynamic_pointer_cast<NLKEigenAGSContext<Vec,SNES>>(x); \
CheckContext(x)

Definition at line 21 of file nl_keigen_ags_solver.cc.

◆ SNESTypes

#define SNESTypes   Mat,Vec,SNES

Definition at line 16 of file nl_keigen_ags_solver.cc.