Commit 6bb3482a authored by Henderson, Shane's avatar Henderson, Shane
Browse files

Merge branch 'moosepatch' into 'master'

Silence deprecation warning locally

See merge request neams/saline!32
parents 87c54375 3497104b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -221,7 +221,10 @@ void Default_Data_Store::load(const std::string &fPath) {
  } else if (utils::sniff_json(inFile)) {
    from_json(inFile);
  } else if (inFile.is_open()) {
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
    load(inFile);
#pragma GCC diagnostic pop
    // Make something that dumps supported file types
    std::cout << "salineWarn: Loading a csv is deprecated, use json instead!"
              << std::endl;
+12 −3
Original line number Diff line number Diff line
@@ -87,7 +87,10 @@ void R_Kister_Data_Store::load(const std::string &rkDens,
  if (!rkMuFile.is_open()) {
    throw std::runtime_error("Falied to open input RK viscosity data file.");
  }
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
  load(rkRhoFile, rkMuFile, inFile);
#pragma GCC diagnostic pop
}
//---------------------------------------------------------------------------//
/*!
@@ -114,7 +117,10 @@ void R_Kister_Data_Store::load(const std::string &rkDataPath,
  if (!rkMuFile.is_open()) {
    throw std::runtime_error("Falied to open input RK viscosity data file.");
  }
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
  load(rkRhoFile, rkMuFile, inFile);
#pragma GCC diagnostic pop
}
//---------------------------------------------------------------------------//
/*!
@@ -123,7 +129,10 @@ void R_Kister_Data_Store::load(const std::string &rkDataPath,
void R_Kister_Data_Store::load(std::istream &rkRhoFile, std::istream &rkMuFile,
                               std::istream &inFile) {
  // set up default store
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
  d.load(inFile);
#pragma GCC diagnostic pop
  // Set up space for the mixing models
  Vec_Name keys = d.getSaltKeys();

@@ -433,7 +442,7 @@ double R_Kister_Data_Store::rho(Id /* id */, Id /* data_id */,
 * temperature
 */
double R_Kister_Data_Store::surfaceTension(Id /* id */, Id /* data_id */,
                                           double temperature,
                                           double /* temperature */,
                                           double /* pressure */) const {
  return -1.0;
}
@@ -780,8 +789,8 @@ std::string R_Kister_Data_Store::to_json() const {
std::string R_Kister_Data_Store::rk_to_json(
    std::vector<std::vector<RK_Polynomial>> m) const {
  nlohmann::json dat;
  for (int j = 0; j < d.size(); ++j) {
    for (int i = 0; i < d.size(); ++i) {
  for (std::size_t j = 0; j < d.size(); ++j) {
    for (std::size_t i = 0; i < d.size(); ++i) {
      if (!m[j][i].a_n.empty()) {
        Vec_Name outerName = d.names(j);
        if (!outerName[0].empty()) {