From 46621422b15cd89841167d08853120c7df19da32 Mon Sep 17 00:00:00 2001 From: Niklas Schnierstein <niklass@antofalla.lmp.ds.mpg.de> Date: Tue, 3 Dec 2019 10:51:59 +0100 Subject: [PATCH] added logic in converging ou process --- cpp/full_code/ornstein_uhlenbeck_process.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cpp/full_code/ornstein_uhlenbeck_process.cpp b/cpp/full_code/ornstein_uhlenbeck_process.cpp index 93edcadb..a3c0285b 100644 --- a/cpp/full_code/ornstein_uhlenbeck_process.cpp +++ b/cpp/full_code/ornstein_uhlenbeck_process.cpp @@ -181,10 +181,10 @@ void ornstein_uhlenbeck_process<rnumber,be>::initialize_B() template <class rnumber, field_backend be> void ornstein_uhlenbeck_process<rnumber, be>::let_converge(void) { - //add some logic here TODO - for(int i=0; i<1000; i++) + double time_step = 1./this->gamma(1)/1000. + for(int i=0; i<5000; i++) { - this->step(2e-3); + this->step(time_step); } } -- GitLab