mirror of
https://github.com/LCPQ/quantum_package
synced 2024-12-24 13:23:41 +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
|
||||
logical :: exists
|
||||
|
||||
state_average_weight(:) = 1.d0
|
||||
if (use_l3_weight) then
|
||||
state_average_weight(:) = l3_weight(:)
|
||||
else
|
||||
state_average_weight(:) = 1.d0
|
||||
call ezfio_has_determinants_state_average_weight(exists)
|
||||
if (exists) then
|
||||
call ezfio_get_determinants_state_average_weight(state_average_weight)
|
||||
endif
|
||||
state_average_weight(:) = state_average_weight(:)+1.d-31
|
||||
state_average_weight(:) = state_average_weight(:)/(sum(state_average_weight(:)))
|
||||
endif
|
||||
state_average_weight(:) = state_average_weight(:)+1.d-31
|
||||
state_average_weight(:) = state_average_weight(:)/(sum(state_average_weight(:)))
|
||||
END_PROVIDER
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user