Cardinal
Loading...
Searching...
No Matches
UserErrorChecking.h
Go to the documentation of this file.
1/********************************************************************/
2/* SOFTWARE COPYRIGHT NOTIFICATION */
3/* Cardinal */
4/* */
5/* (c) 2021 UChicago Argonne, LLC */
6/* ALL RIGHTS RESERVED */
7/* */
8/* Prepared by UChicago Argonne, LLC */
9/* Under Contract No. DE-AC02-06CH11357 */
10/* With the U. S. Department of Energy */
11/* */
12/* Prepared by Battelle Energy Alliance, LLC */
13/* Under Contract No. DE-AC07-05ID14517 */
14/* With the U. S. Department of Energy */
15/* */
16/* See LICENSE for full restrictions */
17/********************************************************************/
18
19#pragma once
20
21#include "InputParameters.h"
22
31void checkUnusedParam(const InputParameters & p,
32 const std::vector<std::string> & names,
33 const std::string & explanation,
34 const bool error = false);
35
44void checkUnusedParam(const InputParameters & p,
45 const std::string & name,
46 const std::string & explanation,
47 const bool error = false);
48
55void checkRequiredParam(const InputParameters & p,
56 const std::vector<std::string> & names,
57 const std::string & explanation);
58
65void checkRequiredParam(const InputParameters & p,
66 const std::string & name,
67 const std::string & explanation);
68
75void checkJointParams(const InputParameters & p,
76 const std::vector<std::string> & name,
77 const std::string & explanation);
78
84void catchOpenMCError(const int & err, const std::string descriptor);
void checkUnusedParam(const InputParameters &p, const std::vector< std::string > &names, const std::string &explanation, const bool error=false)
Definition UserErrorChecking.C:23
void checkRequiredParam(const InputParameters &p, const std::vector< std::string > &names, const std::string &explanation)
Definition UserErrorChecking.C:48
void checkJointParams(const InputParameters &p, const std::vector< std::string > &name, const std::string &explanation)
Definition UserErrorChecking.C:66
void catchOpenMCError(const int &err, const std::string descriptor)