mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2025-01-03 18:16:28 +01:00
Checking context in SM
This commit is contained in:
parent
71ad7abb7f
commit
af54e7a7dc
@ -111,6 +111,10 @@ qmckl_exit_code qmckl_sherman_morrison_c_(const qmckl_context context,
|
||||
const double* breakdown_p,
|
||||
double* Slater_inv) {
|
||||
|
||||
if (qmckl_context_check(context) == QMCKL_NULL_CONTEXT) {
|
||||
return QMCKL_NULL_CONTEXT;
|
||||
}
|
||||
|
||||
const uint64_t Dim = *Dim_p;
|
||||
const uint64_t N_updates = *N_updates_p;
|
||||
const double breakdown = *breakdown_p;
|
||||
@ -364,6 +368,10 @@ qmckl_exit_code qmckl_woodbury_2_c_(const qmckl_context context,
|
||||
D := V * S^{-1}, 2 x dim
|
||||
,*/
|
||||
|
||||
if (qmckl_context_check(context) == QMCKL_NULL_CONTEXT) {
|
||||
return QMCKL_NULL_CONTEXT;
|
||||
}
|
||||
|
||||
const uint64_t Dim = *Dim_p;
|
||||
const double breakdown = *breakdown_p;
|
||||
|
||||
@ -581,6 +589,10 @@ qmckl_exit_code qmckl_woodbury_3_c_(const qmckl_context context,
|
||||
D := V * S^{-1}, 3 x dim
|
||||
,*/
|
||||
|
||||
if (qmckl_context_check(context) == QMCKL_NULL_CONTEXT) {
|
||||
return QMCKL_NULL_CONTEXT;
|
||||
}
|
||||
|
||||
const uint64_t Dim = *Dim_p;
|
||||
const double breakdown = *breakdown_p;
|
||||
|
||||
@ -814,6 +826,10 @@ qmckl_exit_code qmckl_sherman_morrison_splitting_c_(const qmckl_context context,
|
||||
const double* breakdown,
|
||||
double* Slater_inv) {
|
||||
|
||||
if (qmckl_context_check(context) == QMCKL_NULL_CONTEXT) {
|
||||
return QMCKL_NULL_CONTEXT;
|
||||
}
|
||||
|
||||
double later_updates[*Dim * *N_updates];
|
||||
uint64_t later_index[*N_updates];
|
||||
uint64_t later = 0;
|
||||
@ -989,6 +1005,10 @@ qmckl_exit_code qmckl_sherman_morrison_smw32s_c_(const qmckl_context context,
|
||||
const double* breakdown_p,
|
||||
double* Slater_inv) {
|
||||
|
||||
if (qmckl_context_check(context) == QMCKL_NULL_CONTEXT) {
|
||||
return QMCKL_NULL_CONTEXT;
|
||||
}
|
||||
|
||||
const uint64_t Dim = *Dim_p;
|
||||
const uint64_t N_updates = *N_updates_p;
|
||||
const double breakdown = *breakdown_p;
|
||||
|
Loading…
Reference in New Issue
Block a user