diff options
Diffstat (limited to 'chaos/src/latoomutgamma.hpp')
-rw-r--r-- | chaos/src/latoomutgamma.hpp | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/chaos/src/latoomutgamma.hpp b/chaos/src/latoomutgamma.hpp index fcdf6a6..b9c8c08 100644 --- a/chaos/src/latoomutgamma.hpp +++ b/chaos/src/latoomutgamma.hpp @@ -64,15 +64,11 @@ public: /* function has a fix point for x1 == x2 == 0 */ virtual void m_verify() { - for (int i = 0; i != get_num_eq(); ++i) - { -#ifndef DOUBLE_PRECISION - if (PD_BIGORSMALL(m_data[i])) - m_data[i] = 0.01; -#endif - } - }; - + if (m_data[0] == 0 && m_data[1] == 0) + for (int i = 0; i != 2; ++i) + m_data[i] = rand_range(0,0.1); + } + CHAOS_SYSVAR_FUNCS(x1, 0); CHAOS_SYSVAR_FUNCS(x2, 1); |