tstCRAM.cpp File Reference
#include <ctime>
#include <iostream>
#include <vector>
#include "Nemesis/gtest/nemesis_gtest.hh"
#include "Origen/Core/dc/FakeFactory.h"
#include "Origen/Core/dc/TransitionMatrixP.h"
#include "Origen/Core/io/LibraryIO.h"
#include "Standard/Interface/Reporter.h"
#include "Origen/Solver/cram/src/kernel_cram.hpp"
#include "tstCRAMcommons.hpp"

Classes

class  tstCRAM
 
class  tstOrigenToCRSMatrix
 
class  tstCRAMNegativeSource
 

Macros

#define MAKE_BLESSED_RESULTS   0
 

Functions

const std::string tstCRAM5_blessed_results_path ("tstCRAM5_BlessedResults.txt")
 
void CheckErrors (int itot, double *n, double *n_ref, double abs_tol, double rel_tol, int *ZAI)
 
void CheckCRSMatrix (int a_n, double *a_val, int *a_ci, int *a_rp, int *a_diag_idx, int a_nnz, int *newIdx, int *oldIdx, double *src_dummy_n0, int itot, int non, int *non0, int *kd, double *diag, double *a, int *loc, double **source_term, int source_order, int zero_flux_step, int is_adjoint, int sort_nuclides, int *ZAI)
 
 TEST (tstOrigenToCRSMatrix_simple, 1)
 
 TEST (tstOrigenToCRSMatrix_simple, 2)
 
 TEST (tstOrigenToCRSMatrix_simple, 3)
 
 TEST_F (tstOrigenToCRSMatrix, DecayNoSort)
 
 TEST_F (tstOrigenToCRSMatrix, ActivationNoSort)
 
 TEST_F (tstOrigenToCRSMatrix, ActivationWithSort)
 
 TEST_F (tstOrigenToCRSMatrix, AdjointActivationWithSort)
 
 TEST_F (tstOrigenToCRSMatrix, AdjointDecayNoSort)
 
 TEST_F (tstOrigenToCRSMatrix, ActivationWithSource1)
 
 TEST_F (tstOrigenToCRSMatrix, ActivationWithSource2)
 
 TEST_F (tstOrigenToCRSMatrix, ActivationWithSource3)
 
 TEST_F (tstOrigenToCRSMatrix, AdjointActivationWithSource)
 
 TEST_F (tstOrigenToCRSMatrix, DecayWithSourceNoSort)
 
 TEST_F (tstOrigenToCRSMatrix, Order4Source)
 
 TEST_F (tstOrigenToCRSMatrix, Order3SourceAdjoint)
 
 TEST (tstCRAM2, simple2x2)
 
 TEST (tstCRAMcutoff, simple2x2)
 
Vec_Dbl GetRefResultsNoSRC ()
 
Vec_Dbl GetRefResultsWithSRC ()
 
 TEST_F (tstCRAM, FreshFuelDepletion)
 
 TEST_F (tstCRAM, FreshFuelDepletionWithSource)
 
Vec_Dbl GetInitialComposition ()
 
Vec_Dbl GetReferenceResultsOldFuel ()
 
Vec_Dbl GetReferenceResultsRandomSource ()
 
 TEST_F (tstCRAM, OldFuelDecayNoSource)
 
 TEST_F (tstCRAM, DecayFromRandomSource)
 
 TEST_F (tstCRAM, CompareToBlessed)
 
 TEST_F (tstCRAMNegativeSource, NegativeSourceNoInitial)
 
 TEST_F (tstCRAMNegativeSource, NegativeSourceWithInitial)
 
 TEST_F (tstCRAMNegativeSource, MixedSourceWithInitial)
 
 TEST_F (tstCRAM, TestAdjointNoSource)
 
 TEST_F (tstCRAM, TestAdjointWithSource)
 
 TEST (tstCRAM8, SingleTermSource)
 
 TEST (tstCRAM8, MultiTermSource)
 
 TEST_F (tstCRAM, FullSystemLinearSource)
 

Macro Definition Documentation

#define MAKE_BLESSED_RESULTS   0
Examples:
tstCRAM.cpp.

Referenced by TEST_F().

Function Documentation

const std::string tstCRAM5_blessed_results_path ( "tstCRAM5_BlessedResults.txt"  )
Examples:
tstCRAM.cpp.

Referenced by TEST_F().

void CheckErrors ( int  itot,
double *  n,
double *  n_ref,
double  abs_tol,
double  rel_tol,
int *  ZAI 
)
Examples:
tstCRAM.cpp.

Referenced by TEST_F().

void CheckCRSMatrix ( int  a_n,
double *  a_val,
int *  a_ci,
int *  a_rp,
int *  a_diag_idx,
int  a_nnz,
int *  newIdx,
int *  oldIdx,
double *  src_dummy_n0,
int  itot,
int  non,
int *  non0,
int *  kd,
double *  diag,
double *  a,
int *  loc,
double **  source_term,
int  source_order,
int  zero_flux_step,
int  is_adjoint,
int  sort_nuclides,
int *  ZAI 
)
TEST ( tstOrigenToCRSMatrix_simple  ,
 
)
Examples:
tstCRAM.cpp.

References OrigenToCRSMatrix().

TEST ( tstOrigenToCRSMatrix_simple  ,
 
)

References OrigenToCRSMatrix().

TEST ( tstOrigenToCRSMatrix_simple  ,
 
)

References OrigenToCRSMatrix().

TEST_F ( tstOrigenToCRSMatrix  ,
DecayNoSort   
)
Examples:
tstCRAM.cpp.
TEST_F ( tstOrigenToCRSMatrix  ,
ActivationNoSort   
)
TEST_F ( tstOrigenToCRSMatrix  ,
ActivationWithSort   
)
TEST_F ( tstOrigenToCRSMatrix  ,
AdjointActivationWithSort   
)
TEST_F ( tstOrigenToCRSMatrix  ,
AdjointDecayNoSort   
)
TEST_F ( tstOrigenToCRSMatrix  ,
ActivationWithSource1   
)
TEST_F ( tstOrigenToCRSMatrix  ,
ActivationWithSource2   
)
TEST_F ( tstOrigenToCRSMatrix  ,
ActivationWithSource3   
)
TEST_F ( tstOrigenToCRSMatrix  ,
AdjointActivationWithSource   
)
TEST_F ( tstOrigenToCRSMatrix  ,
DecayWithSourceNoSort   
)
TEST_F ( tstOrigenToCRSMatrix  ,
Order4Source   
)
TEST_F ( tstOrigenToCRSMatrix  ,
Order3SourceAdjoint   
)
TEST ( tstCRAM2  ,
simple2x2   
)

References kernel_cram().

TEST ( tstCRAMcutoff  ,
simple2x2   
)

References kernel_cram().

Vec_Dbl GetRefResultsNoSRC ( )
Examples:
tstCRAM.cpp.

Referenced by TEST_F().

Vec_Dbl GetRefResultsWithSRC ( )
Examples:
tstCRAM.cpp.

Referenced by TEST_F().

TEST_F ( tstCRAM  ,
FreshFuelDepletion   
)
TEST_F ( tstCRAM  ,
FreshFuelDepletionWithSource   
)
Vec_Dbl GetInitialComposition ( )
Examples:
tstCRAM.cpp.

Referenced by TEST_F().

Vec_Dbl GetReferenceResultsOldFuel ( )
Examples:
tstCRAM.cpp.

Referenced by TEST_F().

Vec_Dbl GetReferenceResultsRandomSource ( )
Examples:
tstCRAM.cpp.

Referenced by TEST_F().

TEST_F ( tstCRAM  ,
OldFuelDecayNoSource   
)
TEST_F ( tstCRAM  ,
DecayFromRandomSource   
)
TEST_F ( tstCRAMNegativeSource  ,
NegativeSourceNoInitial   
)

References kernel_cram(), and my_drand().

TEST_F ( tstCRAMNegativeSource  ,
NegativeSourceWithInitial   
)
TEST_F ( tstCRAMNegativeSource  ,
MixedSourceWithInitial   
)
TEST_F ( tstCRAM  ,
TestAdjointNoSource   
)

References kernel_cram(), and my_drand().

TEST_F ( tstCRAM  ,
TestAdjointWithSource   
)

References kernel_cram(), and my_drand().

TEST ( tstCRAM8  ,
SingleTermSource   
)

References kernel_cram(), and my_drand().

TEST ( tstCRAM8  ,
MultiTermSource   
)

References kernel_cram(), and my_drand().

TEST_F ( tstCRAM  ,
FullSystemLinearSource   
)