mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2024-08-17 10:51:44 +02:00
Reinstated tests for factor_en. #22
This commit is contained in:
parent
0575638e5b
commit
be341f3afd
@ -2436,14 +2436,14 @@ print("factor_en :",factor_en)
|
||||
|
||||
|
||||
#+begin_src c :tangle (eval c_test)
|
||||
///* Check if Jastrow is properly initialized */
|
||||
//assert(qmckl_jastrow_provided(context));
|
||||
//
|
||||
//double factor_en[walk_num];
|
||||
//rc = qmckl_get_jastrow_factor_en(context, factor_en);
|
||||
//
|
||||
//// calculate factor_en
|
||||
//assert(fabs(factor_en[0]+5.865822569188727) < 1.e-12);
|
||||
/* Check if Jastrow is properly initialized */
|
||||
assert(qmckl_jastrow_provided(context));
|
||||
|
||||
double factor_en[walk_num];
|
||||
rc = qmckl_get_jastrow_factor_en(context, factor_en);
|
||||
|
||||
// calculate factor_en
|
||||
assert(fabs(factor_en[0]+5.865822569188727) < 1.e-12);
|
||||
|
||||
#+end_src
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user