antioch-0.4.0
|
#include "antioch/antioch_exceptions.h"
#include "antioch_config.h"
#include <iostream>
#include <iomanip>
Go to the source code of this file.
Macros | |
#define | antioch_here() do { std::cerr << __FILE__ << ", line " << __LINE__ << ", compiled " << __DATE__ << " at " << __TIME__ << std::endl; } while (0) |
#define | antioch_assert(asserted) do { if (!(asserted)) { std::cerr << "Assertion `" #asserted "' failed." << std::endl; antioch_error(); } } while(0) |
#define | antioch_assert_equal_to(expr1, expr2) do { if (!(expr1 == expr2)) { std::cerr << "Assertion `" #expr1 " == " #expr2 "' failed.\n" #expr1 " = " << (expr1) << "\n" #expr2 " = " << (expr2) << std::endl; antioch_error(); } } while(0) |
#define | antioch_assert_not_equal_to(expr1, expr2) do { if (!(expr1 != expr2)) { std::cerr << "Assertion `" #expr1 " != " #expr2 "' failed.\n" #expr1 " = " << (expr1) << "\n" #expr2 " = " << (expr2) << std::endl; antioch_error(); } } while(0) |
#define | antioch_assert_less(expr1, expr2) do { if (!(expr1 < expr2)) { std::cerr << "Assertion `" #expr1 " < " #expr2 "' failed.\n" #expr1 " = " << (expr1) << "\n" #expr2 " = " << (expr2) << std::endl; antioch_error(); } } while(0) |
#define | antioch_assert_greater(expr1, expr2) do { if (!(expr1 > expr2)) { std::cerr << "Assertion `" #expr1 " > " #expr2 "' failed.\n" #expr1 " = " << (expr1) << "\n" #expr2 " = " << (expr2) << std::endl; antioch_error(); } } while(0) |
#define | antioch_assert_less_equal(expr1, expr2) do { if (!(expr1 <= expr2)) { std::cerr << "Assertion `" #expr1 " <= " #expr2 "' failed.\n" #expr1 " = " << (expr1) << "\n" #expr2 " = " << (expr2) << std::endl; antioch_error(); } } while(0) |
#define | antioch_assert_greater_equal(expr1, expr2) do { if (!(expr1 >= expr2)) { std::cerr << "Assertion `" #expr1 " >= " #expr2 "' failed.\n" #expr1 " = " << (expr1) << "\n" #expr2 " = " << (expr2) << std::endl; antioch_error(); } } while(0) |
#define | antioch_do_once(do_this) |
#define | antioch_warning(message) |
#define | antioch_error() do { antioch_here(); ANTIOCH_THROW(Antioch::LogicError()); } while(0) |
#define | antioch_not_implemented() do { antioch_here(); ANTIOCH_THROW(Antioch::NotImplemented()); } while(0) |
#define | antioch_file_error(filename) do { antioch_here(); ANTIOCH_THROW(Antioch::FileError(filename)); } while(0) |
#define | antioch_unit_error(description) do { antioch_here(); ANTIOCH_THROW(Antioch::UnitError(description)); } while(0) |
#define | antioch_parsing_error(description) do { antioch_here(); ANTIOCH_THROW(Antioch::ParsingError(description)); } while(0) |
#define | antioch_parameter_required(parameter, defaultpar) antioch_warning("\n*** Warning, The parameter " << parameter << " is not provided\n" << "default parameter is " << defaultpar << std::endl) |
#define | antioch_unit_required(parameter, defaultunit) antioch_warning("\n*** Warning, The parameter " << parameter << " is not given a unit\n" << "default unit given is " << defaultunit << std::endl) |
#define | antioch_deprecated() antioch_warning( "\n*** Warning, This code is deprecated, and likely to be removed in future library versions!\n") |
#define | antioch_msg(errmsg) do {std::cerr << errmsg << std::endl;} while(0) |
#define | antioch_error_msg(errmsg) do {antioch_msg(errmsg); antioch_error();} while(0) |
#define | antioch_not_implemented_msg(errmsg) do {antioch_msg(errmsg); antioch_not_implemented();} while(0) |
#define | antioch_static_assert(cond, errmsg) ((void) 0) |
#define | antioch_static_assert_runtime_fallback(cond, errmsg) |
#define antioch_assert | ( | asserted | ) | do { if (!(asserted)) { std::cerr << "Assertion `" #asserted "' failed." << std::endl; antioch_error(); } } while(0) |
Definition at line 58 of file antioch_asserts.h.
Referenced by Antioch::MixtureConductivity< Conductivity, CoeffType >::add(), Antioch::MixtureViscosity< Viscosity, CoeffType >::add(), Antioch::NASAThermoMixture< CoeffType, NASAFit >::add_curve_fit(), Antioch::CEAThermodynamics< CoeffType >::add_curve_fit(), Antioch::MixtureDiffusion< Diffusion, CoeffType >::compute_species_diffusivity(), Antioch::NASAThermoMixture< CoeffType, NASAFit >::curve_fit(), Antioch::Reaction< CoeffType, VectorCoeffType >::efficiency(), Antioch::Reaction< CoeffType, VectorCoeffType >::equilibrium_constant(), Antioch::Reaction< CoeffType, VectorCoeffType >::equilibrium_constant_and_derivative(), Antioch::XMLParser< NumericType >::find_element_with_attribute(), Antioch::XMLParser< NumericType >::get_parameter(), Antioch::ReactionSet< CoeffType >::get_parameter_of_reaction(), Antioch::XMLParser< NumericType >::is_k0(), Antioch::MixtureViscosity< Viscosity, CoeffType >::operator()(), Antioch::KineticsConditions< StateType, VectorStateType >::particle_flux(), Antioch::MixtureDiffusion< Antioch::ConstantLewisDiffusivity< CoeffType >, CoeffType >::private_diff_matrix_impl(), Antioch::XMLParser< NumericType >::rate_constant(), Antioch::XMLParser< NumericType >::reaction(), Antioch::read_reaction_set_data(), Antioch::ReactionSet< CoeffType >::set_parameter_of_reaction(), Antioch::split_string_on_colon(), Antioch::TransportMixture< CoeffType >::transport_species(), Antioch::XMLParser< NumericType >::verify_Kooij_in_place_of_Arrhenius(), and Antioch::XMLParser< NumericType >::where_is_k0().
#define antioch_assert_equal_to | ( | expr1, | |
expr2 | |||
) | do { if (!(expr1 == expr2)) { std::cerr << "Assertion `" #expr1 " == " #expr2 "' failed.\n" #expr1 " = " << (expr1) << "\n" #expr2 " = " << (expr2) << std::endl; antioch_error(); } } while(0) |
Definition at line 74 of file antioch_asserts.h.
Referenced by Antioch::BlottnerViscosity< CoeffType >::BlottnerViscosity(), Antioch::build_rate(), Antioch::MixtureDiffusion< Diffusion, CoeffType >::compute_binary_diffusion_matrix(), Antioch::ElementaryReaction< CoeffType >::compute_forward_rate_coefficient(), Antioch::DuplicateReaction< CoeffType >::compute_forward_rate_coefficient_and_derivatives(), Antioch::ElementaryReaction< CoeffType >::compute_forward_rate_coefficient_and_derivatives(), Antioch::ThreeBodyReaction< CoeffType >::compute_forward_rate_coefficient_and_derivatives(), Antioch::KineticsEvaluator< CoeffType, StateType >::compute_mole_sources(), Antioch::KineticsEvaluator< CoeffType, StateType >::compute_mole_sources_and_derivs(), Antioch::MixtureAveragedTransportEvaluator< Diffusion, Viscosity, ThermalConductivity, CoeffType >::compute_mu_mu_sqrt(), Antioch::Reaction< CoeffType, VectorCoeffType >::compute_rate_of_progress_and_derivatives(), Antioch::ReactionSet< CoeffType >::compute_reaction_rates(), Antioch::ReactionSet< CoeffType >::compute_reaction_rates_and_derivs(), Antioch::ConstantLewisDiffusivity< CoeffType >::ConstantLewisDiffusivity(), Antioch::NASAEvaluator< CoeffType, NASAFit >::cp(), Antioch::CEAThermodynamics< CoeffType >::cp(), Antioch::SigmaBinConverter< VectorCoeffType >::custom_bin_value(), Antioch::StatMechThermodynamics< CoeffType >::cv_el(), Antioch::StatMechThermodynamics< CoeffType >::cv_vib_over_R(), Antioch::NASAEvaluator< CoeffType, NASAFit >::dh_RT_minus_s_R_dT(), Antioch::CEAThermodynamics< CoeffType >::dh_RT_minus_s_R_dT(), Antioch::MixtureAveragedTransportEvaluator< Diffusion, Viscosity, ThermalConductivity, CoeffType >::diffusion_mixing_rule(), Antioch::StatMechThermodynamics< CoeffType >::e_el(), Antioch::StatMechThermodynamics< CoeffType >::e_vib(), Antioch::Reaction< CoeffType, VectorCoeffType >::equilibrium_constant(), Antioch::Reaction< CoeffType, VectorCoeffType >::equilibrium_constant_and_derivative(), Antioch::LindemannFalloff< CoeffType >::F_and_derivatives(), Antioch::TroeFalloff< CoeffType >::F_and_derivatives(), Antioch::ConstantRate< CoeffType >::get_parameter(), Antioch::ReactionSet< CoeffType >::get_reactive_scheme(), Antioch::NASAEvaluator< CoeffType, NASAFit >::h(), Antioch::CEAThermodynamics< CoeffType >::h(), Antioch::NASAEvaluator< CoeffType, NASAFit >::h_RT_minus_s_R(), Antioch::CEAThermodynamics< CoeffType >::h_RT_minus_s_R(), Antioch::if_else(), Antioch::MixtureAveragedTransportEvaluator< Diffusion, Viscosity, ThermalConductivity, CoeffType >::k(), Antioch::ChemicalMixture< CoeffType >::M(), Antioch::Reaction< CoeffType, VectorCoeffType >::n_products(), Antioch::Reaction< CoeffType, VectorCoeffType >::n_reactants(), Antioch::ChemicalSpecies< CoeffType >::n_vibrational_modes(), Antioch::MixtureViscosity< Viscosity, CoeffType >::print(), Antioch::ChemicalMixture< CoeffType >::R(), Antioch::ASCIIParser< NumericType >::read_electronic_data(), Antioch::read_reaction_set_data(), Antioch::ASCIIParser< NumericType >::read_vibrational_data(), Antioch::KineticsTheoryThermalConductivity< ThermoEvaluator, CoeffType >::reset_coeffs(), Antioch::ConstantLewisDiffusivity< CoeffType >::reset_coeffs_impl(), Antioch::BlottnerViscosity< CoeffType >::reset_coeffs_impl(), Antioch::ConstantRate< CoeffType >::reset_coefs(), Antioch::BerthelotRate< CoeffType >::reset_coefs(), Antioch::PhotochemicalRate< CoeffType, VectorCoeffType >::reset_coefs(), Antioch::ConstantRate< CoeffType >::set_parameter(), Antioch::SutherlandViscosity< CoeffType >::SutherlandViscosity(), and Antioch::SigmaBinConverter< VectorCoeffType >::y_on_custom_grid().
#define antioch_assert_greater | ( | expr1, | |
expr2 | |||
) | do { if (!(expr1 > expr2)) { std::cerr << "Assertion `" #expr1 " > " #expr2 "' failed.\n" #expr1 " = " << (expr1) << "\n" #expr2 " = " << (expr2) << std::endl; antioch_error(); } } while(0) |
Definition at line 77 of file antioch_asserts.h.
Referenced by Antioch::MixtureDiffusion< Diffusion, CoeffType >::compute_binary_diffusion_matrix(), Antioch::MixtureAveragedTransportEvaluator< Diffusion, Viscosity, ThermalConductivity, CoeffType >::compute_mu_mu_sqrt(), Antioch::NASAEvaluator< CoeffType, NASAFit >::cp(), Antioch::CEAThermodynamics< CoeffType >::cp(), Antioch::Reaction< CoeffType, VectorCoeffType >::equilibrium_constant(), Antioch::Reaction< CoeffType, VectorCoeffType >::equilibrium_constant_and_derivative(), Antioch::ReactionSet< CoeffType >::find_chemical_process_parameter(), Antioch::ChemicalMixture< CoeffType >::R(), Antioch::HercourtEssenRate< CoeffType >::reset_coefs(), Antioch::BerthelotHercourtEssenRate< CoeffType >::reset_coefs(), Antioch::ArrheniusRate< CoeffType >::reset_coefs(), Antioch::KooijRate< CoeffType >::reset_coefs(), and Antioch::VantHoffRate< CoeffType >::reset_coefs().
#define antioch_assert_greater_equal | ( | expr1, | |
expr2 | |||
) | do { if (!(expr1 >= expr2)) { std::cerr << "Assertion `" #expr1 " >= " #expr2 "' failed.\n" #expr1 " = " << (expr1) << "\n" #expr2 " = " << (expr2) << std::endl; antioch_error(); } } while(0) |
Definition at line 79 of file antioch_asserts.h.
Referenced by Antioch::ChemKinParser< NumericType >::parse_coefficients_line().
#define antioch_assert_less | ( | expr1, | |
expr2 | |||
) | do { if (!(expr1 < expr2)) { std::cerr << "Assertion `" #expr1 " < " #expr2 "' failed.\n" #expr1 " = " << (expr1) << "\n" #expr2 " = " << (expr2) << std::endl; antioch_error(); } } while(0) |
Definition at line 76 of file antioch_asserts.h.
Referenced by Antioch::Reaction< CoeffType, VectorCoeffType >::add_product(), Antioch::Reaction< CoeffType, VectorCoeffType >::add_reactant(), Antioch::MixtureDiffusion< Diffusion, CoeffType >::add_species_diffusion(), Antioch::NASACurveFitBase< CoeffType >::coefficients(), Antioch::MixtureDiffusion< Diffusion, CoeffType >::compute_species_diffusivity(), Antioch::NASAThermoMixture< CoeffType, NASAFit >::cp_at_200p1(), Antioch::NASAEvaluator< CoeffType, NASAFit >::cp_over_R(), Antioch::CEAThermodynamics< CoeffType >::cp_over_R(), Antioch::NASAThermoMixture< CoeffType, NASAFit >::curve_fit(), Antioch::NASAEvaluator< CoeffType, NASAFit >::cv_over_R(), Antioch::NASAEvaluator< CoeffType, NASAFit >::dh_RT_minus_s_R_dT(), Antioch::CEAThermodynamics< CoeffType >::dh_RT_minus_s_R_dT(), Antioch::Reaction< CoeffType, VectorCoeffType >::forward_rate(), Antioch::Reaction< CoeffType, VectorCoeffType >::get_efficiency(), Antioch::PhotochemicalRate< CoeffType, VectorCoeffType >::get_parameter(), Antioch::Reaction< CoeffType, VectorCoeffType >::get_parameter_of_rate(), Antioch::NASAEvaluator< CoeffType, NASAFit >::h_over_RT(), Antioch::CEAThermodynamics< CoeffType >::h_over_RT(), Antioch::NASAEvaluator< CoeffType, NASAFit >::h_RT_minus_s_R(), Antioch::CEAThermodynamics< CoeffType >::h_RT_minus_s_R(), Antioch::Reaction< CoeffType, VectorCoeffType >::n_products(), Antioch::Reaction< CoeffType, VectorCoeffType >::n_reactants(), Antioch::Reaction< CoeffType, VectorCoeffType >::product_id(), Antioch::Reaction< CoeffType, VectorCoeffType >::product_name(), Antioch::Reaction< CoeffType, VectorCoeffType >::product_partial_order(), Antioch::Reaction< CoeffType, VectorCoeffType >::product_stoichiometric_coefficient(), Antioch::Reaction< CoeffType, VectorCoeffType >::reactant_id(), Antioch::Reaction< CoeffType, VectorCoeffType >::reactant_name(), Antioch::Reaction< CoeffType, VectorCoeffType >::reactant_partial_order(), Antioch::Reaction< CoeffType, VectorCoeffType >::reactant_stoichiometric_coefficient(), Antioch::ReactionSet< CoeffType >::reaction(), Antioch::ReactionSet< CoeffType >::remove_reaction(), Antioch::HercourtEssenRate< CoeffType >::reset_coefs(), Antioch::BerthelotHercourtEssenRate< CoeffType >::reset_coefs(), Antioch::ArrheniusRate< CoeffType >::reset_coefs(), Antioch::KooijRate< CoeffType >::reset_coefs(), Antioch::VantHoffRate< CoeffType >::reset_coefs(), Antioch::NASAEvaluator< CoeffType, NASAFit >::s_over_R(), Antioch::CEAThermodynamics< CoeffType >::s_over_R(), Antioch::PhotochemicalRate< CoeffType, VectorCoeffType >::set_cross_section(), Antioch::Reaction< CoeffType, VectorCoeffType >::set_efficiency(), Antioch::PhotochemicalRate< CoeffType, VectorCoeffType >::set_lambda_grid(), Antioch::Reaction< CoeffType, VectorCoeffType >::set_parameter_of_rate(), Antioch::Reaction< CoeffType, VectorCoeffType >::swap_forward_rates(), and Antioch::TransportMixture< CoeffType >::transport_species().
#define antioch_assert_less_equal | ( | expr1, | |
expr2 | |||
) | do { if (!(expr1 <= expr2)) { std::cerr << "Assertion `" #expr1 " <= " #expr2 "' failed.\n" #expr1 " = " << (expr1) << "\n" #expr2 " = " << (expr2) << std::endl; antioch_error(); } } while(0) |
Definition at line 78 of file antioch_asserts.h.
Referenced by Antioch::MixtureConductivity< Conductivity, CoeffType >::add(), Antioch::MixtureViscosity< Viscosity, CoeffType >::add(), Antioch::NASAThermoMixture< CoeffType, NASAFit >::add_curve_fit(), Antioch::CEAThermodynamics< CoeffType >::add_curve_fit(), Antioch::NASACurveFitBase< CoeffType >::coefficients(), and Antioch::MixtureViscosity< Viscosity, CoeffType >::operator()().
#define antioch_assert_not_equal_to | ( | expr1, | |
expr2 | |||
) | do { if (!(expr1 != expr2)) { std::cerr << "Assertion `" #expr1 " != " #expr2 "' failed.\n" #expr1 " = " << (expr1) << "\n" #expr2 " = " << (expr2) << std::endl; antioch_error(); } } while(0) |
Definition at line 75 of file antioch_asserts.h.
Referenced by Antioch::KooijRate< CoeffType >::reset_coefs(), Antioch::VantHoffRate< CoeffType >::reset_coefs(), and Antioch::SigmaBinConverter< VectorCoeffType >::y_on_custom_grid().
#define antioch_deprecated | ( | ) | antioch_warning( "\n*** Warning, This code is deprecated, and likely to be removed in future library versions!\n") |
Definition at line 117 of file antioch_asserts.h.
Referenced by Antioch::ChemicalMixture< CoeffType >::active_species_name_map(), Antioch::CEAEvaluator< CoeffType >::CEAEvaluator(), Antioch::CEAThermodynamics< CoeffType >::CEAThermodynamics(), Antioch::CEAThermoMixture< CoeffType >::CEAThermoMixture(), Antioch::ChemicalMixture< CoeffType >::chemical_mixture(), Antioch::Reaction< CoeffType, VectorCoeffType >::compute_forward_rate_coefficient(), Antioch::Reaction< CoeffType, VectorCoeffType >::compute_forward_rate_coefficient_and_derivatives(), Antioch::KineticsType< CoeffType, VectorCoeffType >::compute_rate_and_derivative(), Antioch::Reaction< CoeffType, VectorCoeffType >::compute_rate_of_progress(), Antioch::Reaction< CoeffType, VectorCoeffType >::compute_rate_of_progress_and_derivatives(), Antioch::KineticsType< CoeffType, VectorCoeffType >::derivative(), Antioch::KineticsType< CoeffType, VectorCoeffType >::operator()(), Antioch::read_cea_mixture_data_ascii(), Antioch::read_cea_mixture_data_ascii_default(), Antioch::read_nasa_mixture_data_ascii(), Antioch::read_transport_species_data_ascii(), and Antioch::WilkeMixture< CoeffType >::WilkeMixture().
#define antioch_do_once | ( | do_this | ) |
Definition at line 89 of file antioch_asserts.h.
Referenced by Antioch::read_reaction_set_data().
#define antioch_error | ( | ) | do { antioch_here(); ANTIOCH_THROW(Antioch::LogicError()); } while(0) |
Definition at line 104 of file antioch_asserts.h.
Referenced by Antioch::ASCIIParser< NumericType >::ASCIIParser(), Antioch::build_rate(), Antioch::build_reaction(), Antioch::ChemKinParser< NumericType >::change_file(), Antioch::XMLParser< NumericType >::change_file(), Antioch::ASCIIParser< NumericType >::change_file(), Antioch::ChemicalSpecies< CoeffType >::ChemicalSpecies(), Antioch::ChemKinParser< NumericType >::ChemKinParser(), Antioch::Reaction< CoeffType, VectorCoeffType >::compute_forward_rate_coefficient(), Antioch::Reaction< CoeffType, VectorCoeffType >::compute_forward_rate_coefficient_and_derivatives(), Antioch::KineticsType< CoeffType, VectorCoeffType >::compute_rate_and_derivative(), Antioch::conjunction_root(), Antioch::KineticsType< CoeffType, VectorCoeffType >::derivative(), Antioch::disjunction_root(), Antioch::Reaction< CoeffType, VectorCoeffType >::falloff(), Antioch::ReactionSet< CoeffType >::find_chemical_process_parameter(), Antioch::ReactionSet< CoeffType >::find_kinetics_model_parameter(), Antioch::Units< T >::get_integer_power(), Antioch::BerthelotRate< CoeffType >::get_parameter(), Antioch::HercourtEssenRate< CoeffType >::get_parameter(), Antioch::BerthelotHercourtEssenRate< CoeffType >::get_parameter(), Antioch::PhotochemicalRate< CoeffType, VectorCoeffType >::get_parameter(), Antioch::ArrheniusRate< CoeffType >::get_parameter(), Antioch::KooijRate< CoeffType >::get_parameter(), Antioch::VantHoffRate< CoeffType >::get_parameter(), Antioch::KineticsType< CoeffType, VectorCoeffType >::get_parameter(), Antioch::Reaction< CoeffType, VectorCoeffType >::get_parameter_of_chemical_process(), Antioch::ReactionSet< CoeffType >::get_parameter_of_reaction(), Antioch::XMLParser< NumericType >::initialize(), Antioch::ChemicalMixture< CoeffType >::initialize_species(), main(), Antioch::KineticsTheoryThermalConductivity< ThermoEvaluator, CoeffType >::op_no_diff_impl(), Antioch::KineticsType< CoeffType, VectorCoeffType >::operator()(), Antioch::MixtureDiffusion< Antioch::ConstantLewisDiffusivity< CoeffType >, CoeffType >::private_diff_matrix_impl(), Antioch::MixtureDiffusion< Antioch::ConstantLewisDiffusivity< CoeffType >, CoeffType >::private_species_diff_impl(), Antioch::ReactionSet< CoeffType >::reaction_by_id(), Antioch::read_blottner_data_ascii(), Antioch::read_cea_mixture_data(), Antioch::read_cea_thermo_data_ascii(), Antioch::read_nasa_mixture_data(), Antioch::read_reaction_set_data(), Antioch::read_species_data(), Antioch::read_sutherland_data_ascii(), Antioch::ChemKinParser< NumericType >::read_thermodynamic_data_root(), Antioch::reset_parameter_of_rate(), Antioch::reset_rate(), Antioch::BerthelotRate< CoeffType >::set_parameter(), Antioch::PhotochemicalRate< CoeffType, VectorCoeffType >::set_parameter(), Antioch::ArrheniusRate< CoeffType >::set_parameter(), Antioch::HercourtEssenRate< CoeffType >::set_parameter(), Antioch::BerthelotHercourtEssenRate< CoeffType >::set_parameter(), Antioch::ConstantRate< CoeffType >::set_parameter(), Antioch::ArrheniusRate< typename Antioch::value_type< Eigen::Array< Scalar, 2 *ANTIOCH_N_TUPLES, 1 > >::type >::set_parameter(), Antioch::KooijRate< CoeffType >::set_parameter(), Antioch::VantHoffRate< CoeffType >::set_parameter(), Antioch::Reaction< CoeffType, VectorCoeffType >::set_parameter_of_chemical_process(), Antioch::ReactionSet< CoeffType >::set_parameter_of_reaction(), Antioch::SIPrefixes< T >::SIPrefixes(), Antioch::string_to_T(), Antioch::TransportSpecies< CoeffType >::TransportSpecies(), Antioch::UnitBase< T >::UnitBase(), and Antioch::XMLParser< NumericType >::XMLParser().
#define antioch_error_msg | ( | errmsg | ) | do {antioch_msg(errmsg); antioch_error();} while(0) |
Definition at line 123 of file antioch_asserts.h.
Referenced by Antioch::CEACurveFit< CoeffType >::CEACurveFit(), Antioch::NASACurveFitBase< CoeffType >::check_coeff_size(), Antioch::NASACurveFitBase< CoeffType >::check_temp_coeff_size_consistency(), Antioch::MixtureAveragedTransportEvaluator< Diffusion, Viscosity, ThermalConductivity, CoeffType >::diffusion_mixing_rule(), Antioch::BlottnerViscosity< CoeffType >::extrapolate_max_temp_impl(), Antioch::SutherlandViscosity< CoeffType >::extrapolate_max_temp_impl(), Antioch::XMLParser< NumericType >::find_element_with_attribute(), Antioch::MixtureDiffusion< Diffusion, CoeffType >::MixtureDiffusion(), Antioch::XMLParser< NumericType >::nasa_xml_section(), Antioch::XMLParser< NumericType >::read_thermodynamic_data(), Antioch::ChemKinParser< NumericType >::read_thermodynamic_data(), Antioch::ASCIIParser< NumericType >::read_thermodynamic_data(), Antioch::XMLParser< NumericType >::read_thermodynamic_data_root(), and Antioch::XMLParser< NumericType >::species_list().
#define antioch_file_error | ( | filename | ) | do { antioch_here(); ANTIOCH_THROW(Antioch::FileError(filename)); } while(0) |
Definition at line 106 of file antioch_asserts.h.
#define antioch_here | ( | ) | do { std::cerr << __FILE__ << ", line " << __LINE__ << ", compiled " << __DATE__ << " at " << __TIME__ << std::endl; } while (0) |
Definition at line 41 of file antioch_asserts.h.
#define antioch_msg | ( | errmsg | ) | do {std::cerr << errmsg << std::endl;} while(0) |
Definition at line 122 of file antioch_asserts.h.
#define antioch_not_implemented | ( | ) | do { antioch_here(); ANTIOCH_THROW(Antioch::NotImplemented()); } while(0) |
Definition at line 105 of file antioch_asserts.h.
Referenced by Antioch::StatMechThermodynamics< CoeffType >::e_ve_min(), Antioch::StockmayerPotential< CoeffType >::omega_1_1(), Antioch::StockmayerPotential< CoeffType >::omega_2_2(), Antioch::XMLParser< NumericType >::reaction_kinetics_model(), Antioch::read_reaction_set_data(), Antioch::StatMechThermodynamics< CoeffType >::s(), Antioch::StatMechThermodynamics< CoeffType >::T_from_e_tr(), Antioch::StatMechThermodynamics< CoeffType >::T_from_h_tot(), Antioch::StatMechThermodynamics< CoeffType >::T_from_h_tot_Tv(), and Antioch::StatMechThermodynamics< CoeffType >::Tv_from_e_ve().
#define antioch_not_implemented_msg | ( | errmsg | ) | do {antioch_msg(errmsg); antioch_not_implemented();} while(0) |
Definition at line 124 of file antioch_asserts.h.
Referenced by Antioch::ParserBase< NumericType >::efficiencies(), Antioch::ParserBase< NumericType >::is_k0(), Antioch::ParserBase< NumericType >::products_orders(), Antioch::ParserBase< NumericType >::products_pairs(), Antioch::ParserBase< NumericType >::rate_constant(), Antioch::ParserBase< NumericType >::rate_constant_activation_energy_parameter(), Antioch::ParserBase< NumericType >::rate_constant_Berthelot_coefficient_parameter(), Antioch::ParserBase< NumericType >::rate_constant_cross_section_parameter(), Antioch::ParserBase< NumericType >::rate_constant_lambda_parameter(), Antioch::ParserBase< NumericType >::rate_constant_power_parameter(), Antioch::ParserBase< NumericType >::rate_constant_preexponential_parameter(), Antioch::ParserBase< NumericType >::rate_constant_Tref_parameter(), Antioch::ParserBase< NumericType >::reactants_orders(), Antioch::ParserBase< NumericType >::reactants_pairs(), Antioch::ParserBase< NumericType >::reaction(), Antioch::ParserBase< NumericType >::reaction_chemical_process(), Antioch::ParserBase< NumericType >::reaction_equation(), Antioch::ParserBase< NumericType >::reaction_id(), Antioch::ParserBase< NumericType >::reaction_kinetics_model(), Antioch::ParserBase< NumericType >::reaction_reversible(), Antioch::ParserBase< NumericType >::read_chemical_species(), Antioch::ParserBase< NumericType >::read_electronic_data(), Antioch::ParserBase< NumericType >::read_thermodynamic_data(), Antioch::ParserBase< NumericType >::read_transport_data(), Antioch::ParserBase< NumericType >::read_vibrational_data(), Antioch::ParserBase< NumericType >::species_list(), Antioch::ParserBase< NumericType >::Troe(), Antioch::ParserBase< NumericType >::Troe_alpha_parameter(), Antioch::ParserBase< NumericType >::Troe_T1_parameter(), Antioch::ParserBase< NumericType >::Troe_T2_parameter(), Antioch::ParserBase< NumericType >::Troe_T3_parameter(), Antioch::ParserBase< NumericType >::verify_Kooij_in_place_of_Arrhenius(), and Antioch::ParserBase< NumericType >::where_is_k0().
#define antioch_parameter_required | ( | parameter, | |
defaultpar | |||
) | antioch_warning("\n*** Warning, The parameter " << parameter << " is not provided\n" << "default parameter is " << defaultpar << std::endl) |
Definition at line 110 of file antioch_asserts.h.
Referenced by Antioch::read_reaction_set_data().
#define antioch_parsing_error | ( | description | ) | do { antioch_here(); ANTIOCH_THROW(Antioch::ParsingError(description)); } while(0) |
Definition at line 108 of file antioch_asserts.h.
Referenced by Antioch::ParserBase< NumericType >::enum_type(), Antioch::ChemKinParser< NumericType >::factor_to_int(), Antioch::ASCIIParser< NumericType >::find_first(), Antioch::ChemKinParser< NumericType >::initialize(), Antioch::XMLParser< NumericType >::is_k0(), Antioch::ChemKinParser< NumericType >::next_reaction(), Antioch::ChemKinParser< NumericType >::parse_a_line(), Antioch::ChemKinParser< NumericType >::parse_coefficients_line(), Antioch::ChemKinParser< NumericType >::parse_equation(), Antioch::ChemKinParser< NumericType >::parse_equation_coef(), Antioch::ChemKinParser< NumericType >::parse_orders(), Antioch::ChemKinParser< NumericType >::parse_reversible_parameters(), Antioch::read_cea_mixture_data(), Antioch::read_nasa_mixture_data(), Antioch::read_reaction_set_data(), Antioch::ChemKinParser< NumericType >::species_list(), and Antioch::TransportMixture< CoeffType >::TransportMixture().
#define antioch_static_assert | ( | cond, | |
errmsg | |||
) | ((void) 0) |
Definition at line 130 of file antioch_asserts.h.
Referenced by Antioch::MixtureDiffusion< Diffusion, CoeffType >::MixtureDiffusion(), and Antioch::MixtureDiffusion< Antioch::ConstantLewisDiffusivity< CoeffType >, CoeffType >::private_init_impl().
#define antioch_static_assert_runtime_fallback | ( | cond, | |
errmsg | |||
) |
Definition at line 139 of file antioch_asserts.h.
Referenced by Antioch::MixtureDiffusion< Diffusion, CoeffType >::add_species_diffusion(), Antioch::MixtureAveragedTransportEvaluator< Diffusion, Viscosity, ThermalConductivity, CoeffType >::D(), Antioch::MixtureDiffusion< Diffusion, CoeffType >::extrapolate_max_temp(), Antioch::MixtureAveragedTransportEvaluator< Diffusion, Viscosity, ThermalConductivity, CoeffType >::k(), Antioch::MixtureAveragedTransportEvaluator< Diffusion, Viscosity, ThermalConductivity, CoeffType >::mu_and_k(), and Antioch::MixtureAveragedTransportEvaluator< Diffusion, Viscosity, ThermalConductivity, CoeffType >::mu_and_k_and_D().
#define antioch_unit_error | ( | description | ) | do { antioch_here(); ANTIOCH_THROW(Antioch::UnitError(description)); } while(0) |
Definition at line 107 of file antioch_asserts.h.
Referenced by Antioch::Units< T >::factor_to_some_unit(), Antioch::Units< T >::fill_in_power(), Antioch::Units< T >::get_SI_power(), Antioch::Units< T >::manipulate_symbol(), Antioch::InSI::operator/=(), Antioch::Units< T >::parse_power(), Antioch::Units< T >::translator_to_some_unit(), and Antioch::verify_unit_of_parameter().
#define antioch_unit_required | ( | parameter, | |
defaultunit | |||
) | antioch_warning("\n*** Warning, The parameter " << parameter << " is not given a unit\n" << "default unit given is " << defaultunit << std::endl) |
Definition at line 113 of file antioch_asserts.h.
Referenced by Antioch::verify_unit_of_parameter().
#define antioch_warning | ( | message | ) |
Definition at line 99 of file antioch_asserts.h.
Referenced by Antioch::ReactionSet< CoeffType >::reaction_by_id().