← Documentation
ADS-IDAC Engine 5.0.0
RelapSolver.cpp File Reference

RELAP5 implementation of ThermalHydraulicSolver. More...

#include "RelapSolver.h"
#include "../Global/fmodule.h"
#include "../Global/CheckedIO.h"
#include "../Global/SimulationContext.h"
#include "../Global/RestartTrim.h"
#include <cstring>
#include <cstdlib>
#include <iostream>
Include dependency graph for RelapSolver.cpp:

Go to the source code of this file.

Functions

void relap5_ ()
 
void ads_set_cache_mode_ (int *mode)
 
void ads_set_membuf_mode_ (int mode)
 
void ads_membuf_get_trimmed_ (char **ptr, int *size)
 
void ads_membuf_stats_ (int *sz, int *dumps, long long *b_rstrec, long long *b_rnewp, long long *b_wrplid)
 
void ads_membuf_get_ (char **ptr, int *sz)
 
void ads_membuf_set_ (char *ptr, int sz)
 
SolverCallback * getActiveSolverCallback ()
 Get the currently active SolverCallback (set during runSequence). Used by extern "C" trampoline functions to route Fortran callbacks. Returns nullptr when no sequence is running. More...
 
ThermalHydraulicSolver * getActiveSolver ()
 Get the currently active ThermalHydraulicSolver (set during runSequence). Returns nullptr when no sequence is running. More...
 

Variables

static SolverCallback * s_active_callback = nullptr
 
static ThermalHydraulicSolver * s_active_solver = nullptr
 

Detailed Description

RELAP5 implementation of ThermalHydraulicSolver.

Definition in file RelapSolver.cpp.

Function Documentation

◆ ads_membuf_get_()

void ads_membuf_get_ ( char **  ptr,
int *  sz 
)

References ads_membuf_get_().

Referenced by ads_membuf_get_(), and RelapSolver::checkpoint().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ads_membuf_get_trimmed_()

void ads_membuf_get_trimmed_ ( char **  ptr,
int *  size 
)

References ads_membuf_get_trimmed_(), and PG::size.

Referenced by ads_membuf_get_trimmed_(), and RelapSolver::checkpoint().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ads_membuf_set_()

void ads_membuf_set_ ( char *  ptr,
int  sz 
)

References ads_membuf_set_().

Referenced by ads_membuf_set_(), and RelapSolver::restore().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ads_membuf_stats_()

void ads_membuf_stats_ ( int *  sz,
int *  dumps,
long long *  b_rstrec,
long long *  b_rnewp,
long long *  b_wrplid 
)

References ads_membuf_stats_().

Referenced by ads_membuf_stats_(), and RelapSolver::checkpoint().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ads_set_cache_mode_()

void ads_set_cache_mode_ ( int *  mode)

References ads_set_cache_mode_().

Referenced by ads_set_cache_mode_(), and RelapSolver::setThermoCacheMode().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ads_set_membuf_mode_()

void ads_set_membuf_mode_ ( int  mode)

References ads_set_membuf_mode_().

Referenced by ads_set_membuf_mode_(), and RelapSolver::setMembufMode().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getActiveSolver()

ThermalHydraulicSolver * getActiveSolver ( )

Get the currently active ThermalHydraulicSolver (set during runSequence). Returns nullptr when no sequence is running.

Definition at line 33 of file RelapSolver.cpp.

References s_active_solver.

Referenced by actonce_(), actte_(), initiate_branching_(), interfc_(), and secini_().

Here is the caller graph for this function:

◆ getActiveSolverCallback()

SolverCallback * getActiveSolverCallback ( )

Get the currently active SolverCallback (set during runSequence). Used by extern "C" trampoline functions to route Fortran callbacks. Returns nullptr when no sequence is running.

Definition at line 32 of file RelapSolver.cpp.

References s_active_callback.

Referenced by actonce_(), actte_(), initiate_branching_(), interfc_(), and secini_().

Here is the caller graph for this function:

◆ relap5_()

void relap5_ ( )

References relap5_().

Referenced by relap5_(), and RelapSolver::runSequence().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ s_active_callback

SolverCallback* s_active_callback = nullptr
static

Definition at line 29 of file RelapSolver.cpp.

Referenced by getActiveSolverCallback(), and RelapSolver::runSequence().

◆ s_active_solver

ThermalHydraulicSolver* s_active_solver = nullptr
static

Definition at line 30 of file RelapSolver.cpp.

Referenced by getActiveSolver(), and RelapSolver::runSequence().