www.mooseframework.org
Classes | Functions
MemoizedFunctionInterface.h File Reference

Go to the source code of this file.

Classes

class  MemoizedFunctionInterface
 Implementation of Function that memoizes (caches) former evaluations in an unordered map using a hash of the evaluation locations as the key. More...
 

Functions

template<>
InputParameters validParams< MemoizedFunctionInterface > ()
 

Function Documentation

◆ validParams< MemoizedFunctionInterface >()

template<>
InputParameters validParams< MemoizedFunctionInterface > ( )

Definition at line 14 of file MemoizedFunctionInterface.C.

15 {
16  InputParameters params = validParams<Function>();
17 
18  params.addClassDescription("The function uses a cache to potentially reduce the computational "
19  "burden of reusing a complex or costly function");
20 
21  params.addParam<bool>("enable_cache",
22  false,
23  "Enables cached function evaluations. Recommended only if this function is "
24  "used directly in a BC or Kernel. This will be enabled automatically if "
25  "any of the FX-based BCs are used.");
26 
27  params.addParam<bool>("respect_time", false, "Enable to clear the cache at each new time step.");
28 
29  return params;
30 }

Referenced by validParams< MutableCoefficientsFunctionInterface >().