Skip to content

Commit

Permalink
use size_t instead of int
Browse files Browse the repository at this point in the history
  • Loading branch information
Piyush Sharda authored and Piyush Sharda committed Aug 26, 2024
1 parent 6202e2d commit 53af3a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions networks/metal_chem/actual_network_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace network
void actual_network_init()
{

using namespace network;
using namespace network;
std::string filename = "Semenov_PlanckOpacity.dat";
std::cout << "Reading tables from " << filename << std::endl;

Expand All @@ -38,8 +38,8 @@ void actual_network_init()
}

// Process data line by line
for (int i = 1; i <= semenov_x.size(); ++i) {
for (int j = 1; j <= semenov_y.size(); ++j) {
for (size_t i = 1; i <= semenov_x.size(); ++i) {
for (size_t j = 1; j <= semenov_y.size(); ++j) {
if (!std::getline(file, line)) {
throw std::runtime_error("ERROR: Unexpected end of file while reading data.");
}
Expand Down

0 comments on commit 53af3a1

Please sign in to comment.