Fix compiler warnings issued by Visual Studio 2015
This commit is contained in:
parent
fc7c85f8d1
commit
b7f3ab561b
6 changed files with 7 additions and 7 deletions
|
|
@ -82,7 +82,7 @@ protected:
|
|||
bool m_import_electron_transport;
|
||||
|
||||
//! electrical properties
|
||||
vector_int m_speciesCharge;
|
||||
vector_fp m_speciesCharge;
|
||||
|
||||
//! index of species with charges
|
||||
std::vector<size_t> m_kCharge;
|
||||
|
|
@ -98,7 +98,7 @@ protected:
|
|||
vector_fp m_mobility;
|
||||
|
||||
//! solving stage
|
||||
int m_stage;
|
||||
size_t m_stage;
|
||||
|
||||
//! index of electron
|
||||
size_t m_kElectron;
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ protected:
|
|||
double omega11_n64(const double tstar, const double gamma);
|
||||
|
||||
//! electrical properties
|
||||
vector_int m_speciesCharge;
|
||||
vector_fp m_speciesCharge;
|
||||
|
||||
//! index of ions (exclude electron.)
|
||||
std::vector<size_t> m_kIon;
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ compositionMap parseCompString(const std::string& ss,
|
|||
double value;
|
||||
try {
|
||||
value = fpValueCheck(ss.substr(valstart, stop-valstart));
|
||||
} catch (CanteraError& err) {
|
||||
} catch (CanteraError&) {
|
||||
// If we have a key containing a colon, we expect this to fail. In
|
||||
// this case, take the current substring as part of the key and look
|
||||
// to the right of the next colon for the corresponding value.
|
||||
|
|
|
|||
|
|
@ -169,7 +169,7 @@ extern "C" {
|
|||
try {
|
||||
// @todo This should not fail silently
|
||||
if (ReactorCabinet::item(i).type() >= ReactorType) {
|
||||
ReactorCabinet::get<Reactor>(i).setChemistry(cflag);
|
||||
ReactorCabinet::get<Reactor>(i).setChemistry(cflag != 0);
|
||||
}
|
||||
return 0;
|
||||
} catch (...) {
|
||||
|
|
|
|||
|
|
@ -122,7 +122,7 @@ extern "C" {
|
|||
} else if (SUNMatGetID(Jac) == SUNMATRIX_BAND) {
|
||||
cols = SM_COLS_B(Jac);
|
||||
} else {
|
||||
throw Cantera::CanteraError("ida_jacobian", "Unknown SUNMatrix type");
|
||||
return 1; // Unknown SUNMatrix type
|
||||
}
|
||||
f->evalJacobianDP(t, delta_t, c_j, NV_DATA_S(y), NV_DATA_S(yp),
|
||||
cols, NV_DATA_S(r));
|
||||
|
|
|
|||
|
|
@ -143,7 +143,7 @@ void Reactor::updateState(doublereal* y)
|
|||
try {
|
||||
TT = bmt::bracket_and_solve_root(
|
||||
u_err, T, 1.2, true, bmt::eps_tolerance<double>(48), maxiter);
|
||||
} catch (std::exception& err) {
|
||||
} catch (std::exception&) {
|
||||
// Try full-range bisection if bracketing fails (e.g. near
|
||||
// temperature limits for the phase's equation of state)
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue