Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Commit

Permalink
Fixed error
Browse files Browse the repository at this point in the history
  • Loading branch information
AiglonDore committed May 3, 2024
1 parent 634af5d commit 9ff4833
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/nmc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -278,15 +278,21 @@ void NMC::generate_internal_paths(const Matrix &external_paths, Matrix &paths) c
std::cout << "Generating internal paths on thread " << std::this_thread::get_id() << std::endl;

#ifdef DEBUG
std::cout << "External paths size:" << external_paths.size() << std::endl;
std::cout << "First path size:" << external_paths[0].size() << std::endl;
std::cout << "External paths size: " << external_paths.size() << std::endl;
std::cout << "First path size: " << external_paths[0].size() << std::endl;
#endif

paths.resize(m1);

for (size_t i = 0; i < nb_points; i++)
{
paths[0].push_back(external_paths[0][i]);
}

#ifdef DEBUG
std::cout << "First path generated" << std::endl;
#endif

std::random_device rd;
std::mt19937 gen(rd());

Expand All @@ -295,7 +301,7 @@ void NMC::generate_internal_paths(const Matrix &external_paths, Matrix &paths) c

double dt = T / double(nb_points);

for (size_t i = 1; i < m1; i++)
for (size_t i = 0; i < m1; i++)
{
for (size_t j = 1; j < nb_points; j++)
{
Expand Down

0 comments on commit 9ff4833

Please sign in to comment.