mirror of
https://github.com/LCPQ/quantum_package
synced 2024-12-25 05:43:47 +01:00
Merge branch 'master' of github.com:scemama/quantum_package
This commit is contained in:
commit
54986d9d8f
@ -390,17 +390,17 @@ BEGIN_PROVIDER [ double precision, state_average_weight, (N_states) ]
|
|||||||
END_DOC
|
END_DOC
|
||||||
logical :: exists
|
logical :: exists
|
||||||
|
|
||||||
|
state_average_weight(:) = 1.d0
|
||||||
if (use_l3_weight) then
|
if (use_l3_weight) then
|
||||||
state_average_weight(:) = l3_weight(:)
|
state_average_weight(:) = l3_weight(:)
|
||||||
else
|
else
|
||||||
state_average_weight(:) = 1.d0
|
|
||||||
call ezfio_has_determinants_state_average_weight(exists)
|
call ezfio_has_determinants_state_average_weight(exists)
|
||||||
if (exists) then
|
if (exists) then
|
||||||
call ezfio_get_determinants_state_average_weight(state_average_weight)
|
call ezfio_get_determinants_state_average_weight(state_average_weight)
|
||||||
endif
|
endif
|
||||||
state_average_weight(:) = state_average_weight(:)+1.d-31
|
|
||||||
state_average_weight(:) = state_average_weight(:)/(sum(state_average_weight(:)))
|
|
||||||
endif
|
endif
|
||||||
|
state_average_weight(:) = state_average_weight(:)+1.d-31
|
||||||
|
state_average_weight(:) = state_average_weight(:)/(sum(state_average_weight(:)))
|
||||||
END_PROVIDER
|
END_PROVIDER
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user