diff --git a/src/cipsi/stochastic_cipsi.irp.f b/src/cipsi/stochastic_cipsi.irp.f index bd0c6a80..77c6ed48 100644 --- a/src/cipsi/stochastic_cipsi.irp.f +++ b/src/cipsi/stochastic_cipsi.irp.f @@ -104,7 +104,9 @@ subroutine run_stochastic_cipsi ! Add selected determinants call copy_H_apply_buffer_to_wf() -! call save_wavefunction + if (save_wf_after_selection) then + call save_wavefunction + endif PROVIDE psi_coef PROVIDE psi_det