Cardinal
Functions
UserErrorChecking.C File Reference
#include "UserErrorChecking.h"
#include "CardinalApp.h"
Include dependency graph for UserErrorChecking.C:

Functions

void checkUnusedParam (const InputParameters &p, const std::vector< std::string > &names, const std::string &explanation, const bool error)
 
void checkUnusedParam (const InputParameters &p, const std::string &name, const std::string &explanation, const bool error)
 
void checkRequiredParam (const InputParameters &p, const std::vector< std::string > &names, const std::string &explanation)
 
void checkRequiredParam (const InputParameters &p, const std::string &name, const std::string &explanation)
 
void checkJointParams (const InputParameters &p, const std::vector< std::string > &name, const std::string &explanation)
 

Function Documentation

◆ checkJointParams()

void checkJointParams ( const InputParameters &  p,
const std::vector< std::string > &  name,
const std::string &  explanation 
)

Checks whether a set of parameters are all jointly provided or jointly not provided

Parameters
pinput parameters object
namename of the input parameter
explanationshort explanation of the reason why parameter is required

◆ checkRequiredParam() [1/2]

void checkRequiredParam ( const InputParameters &  p,
const std::vector< std::string > &  names,
const std::string &  explanation 
)

Checks whether the user has specified an input parameter is set

Parameters
pinput parameters object
namesnames of the input parameters
explanationshort explanation of the reason why parameter is required

◆ checkRequiredParam() [2/2]

void checkRequiredParam ( const InputParameters &  p,
const std::string &  name,
const std::string &  explanation 
)

Checks whether the user has specified an input parameter is set

Parameters
pinput parameters object
namename of the input parameter
explanationshort explanation of the reason why parameter is required

◆ checkUnusedParam() [1/2]

void checkUnusedParam ( const InputParameters &  p,
const std::vector< std::string > &  names,
const std::string &  explanation,
const bool  error = false 
)

Checks whether the user has specified an input parameter that will go un-used, printing an error message to help in the debugging process.

Parameters
pinput parameters object
namesnames of the input parameters
explanationshort explanation of the reason why parameter is unused

◆ checkUnusedParam() [2/2]

void checkUnusedParam ( const InputParameters &  p,
const std::string &  name,
const std::string &  explanation,
const bool  error = false 
)

Checks whether the user has specified an input parameter that will go un-used, printing an error message to help in the debugging process.

Parameters
pinput parameters object
namename of the input parameter
explanationshort explanation of the reason why parameter is unused