Olivier Parcollet
3fd3f38446
clef: fix lazy method call for gcc
...
- was not compiling on gcc (forward declaration issue).
- now clearer
- add a trivial print change in the mc class (to avoid trivial commit).
2014-04-06 13:01:17 +02:00
Olivier Parcollet
edca014785
rng : preview
2014-04-02 20:36:54 +02:00
Olivier Parcollet
9c979ceb0b
Fix #66 : when mc_sign_type is complex
...
- for complex type sign, we do not do the previous check
(to be improved), since isinf, signbit are not defined for
complex numbers.
2014-03-28 15:38:40 +01:00
Olivier Parcollet
c996c3ff7d
mc_tools : improve treatment of infinite mc ratios
...
- when the ratio returned by an attempt of a move is infinite,
previous code was just throwing TRIQS_RUNTIME_ERROR.
- Now when the ratio is infinite, it is replaced by a large number
(>1 is enough for metropolis), and the sign is properly updated
using std::signbit.
- NB :
- a double/float in C++ can be : normal/ zero/ nan/ infinite / subnormal.
Here, the code will recover only from infinite case.
- std::signbit works for infinite (according to standard).
2014-03-27 20:33:35 +01:00
Olivier Parcollet
9911b18363
mc_tools : add access # proposed/accepted. Add debug_stream
...
- debug_stream : conditional ostream with a lambda condition for debug.
2014-02-28 17:20:55 +01:00
Olivier Parcollet
ff3de6c5e7
mc_tools: simplify measure_aux
...
- for pieces that need to be precomputed for several
measures.
- put them under shared_ptr, and register then with add_measure_aux.
- they must be callable, as void ().
- TODO : add this in the doc when tested
2014-01-30 20:28:30 +01:00
Olivier Parcollet
b2603dcf3a
Fix for clang 1y with gcc lib
...
- add a workaround for a gcc issue in fisrt_include.
- --> make sure that the first include is :
either a triqs lib
or first_include
2014-01-20 10:50:52 +01:00
Olivier Parcollet
9474937470
shared_ptr<void> can not be constructed directly in c++14
...
- Fix for compilation on clang 3.4 in c++1y mode.
2014-01-07 14:33:57 +01:00
Olivier Parcollet
c0993d9db8
mc_tools : add debug print under macro
...
When TRIQS_MCTOOLS_DEBUG is defined,
the qmc now reports some basic debug info
(when is a move accepted, rejected, ...).
2013-12-23 23:21:30 +01:00
Olivier Parcollet
7419b1a68e
Fix #20
2013-10-18 13:55:04 +02:00
Olivier Parcollet
800aea4c5e
remove workaround for icc 13.0
...
- deprecated....
- remove the TRIQS_WORKAROUND_INTEL_COMPILER_BUGS macro
2013-10-17 00:32:09 +02:00
Michel Ferrero
007b88f2cd
Fix small uninitialized problem in mc_tools
...
modified: triqs/mc_tools/mc_generic.hpp
2013-09-28 14:01:52 +02:00
Michel Ferrero
eaad5fa41d
Change MC parameter names
...
modified: triqs/mc_tools/mc_generic.hpp
2013-09-05 17:54:49 +02:00
Olivier Parcollet
f7b88b839c
mc_tools : add precomputation (first draft)
...
- add precomputation as auxiliary measure,
computed before the accumulation of measures.
2013-07-23 13:43:54 +02:00
Olivier Parcollet
f2c7d449cc
First commit : triqs libs version 1.0 alpha1
...
for earlier commits, see TRIQS0.x repository.
2013-07-17 19:24:07 +02:00