pub(crate) fn find_iteration_for_ev_chase(&self, will_diagonalize: bool) -> FailResult<Iteration> {
        use crate::cmd::EvLoopStructureKind::*;

        for iteration in (1..).map(Iteration) {
            let pre_chase = self.structure_path(PreEvChase(iteration));
            let post_chase = self.structure_path(PostEvChase(iteration));
            let eigensols = self.eigensols_path(iteration);
            if !pre_chase.exists() {
                bail!("{}: does not exist", pre_chase.nice());
            }
            if !post_chase.exists() {
                if !(eigensols.exists() || will_diagonalize) {
                    bail!("\
                        {}: does not exist, and --diagonalize not supplied. \
                        Did you perform diagonalization? \
                        (try the python module rsp2.cli.negative_modes)\
                    ", eigensols.nice())
                }
                return Ok(iteration);
            }
        }
        unreachable!()
    }
/// Used to figure out which iteration we're on when starting from the
/// post-diagonalization part of the EV loop for sparse.
Used to figure out which iteration we're on when starting from the
post-diagonalization part of the EV loop for sparse.
Used to figure out which iteration we ' re on when starting from the post - diagonalization part of the EV loop for sparse .
pub(crate) fn find_iteration_for_ev_chase(&self, will_diagonalize: bool) -> FailResult<Iteration> {
        use crate::cmd::EvLoopStructureKind::*;
        for iteration in (1..).map(Iteration) {
            let pre_chase = self.structure_path(PreEvChase(iteration));
            let post_chase = self.structure_path(PostEvChase(iteration));
            let eigensols = self.eigensols_path(iteration);
            if !pre_chase.exists() {
                bail!("{}: does not exist", pre_chase.nice());
            }
            if !post_chase.exists() {
                if !(eigensols.exists() || will_diagonalize) {
                    bail!("\
                        {}: does not exist, and --diagonalize not supplied. \
                        Did you perform diagonalization? \
                        (try the python module rsp2.cli.negative_modes)\
                    ", eigensols.nice())
                }
                return Ok(iteration);
            }
        }
        unreachable!()
    }
pub ( crate ) fn find_iteration_for_ev_chase ( & self , will_diagonalize : bool ) -> FailResult < Iteration > { use crate :: cmd :: EvLoopStructureKind :: * ; for iteration in ( 1 .. ) . map ( Iteration ) { let pre_chase = self . structure_path ( PreEvChase ( iteration ) ) ; let post_chase = self . structure_path ( PostEvChase ( iteration ) ) ; let eigensols = self . eigensols_path ( iteration ) ; if ! pre_chase . exists ( ) { bail ! ( " " pre_chase nice ( ) ) ; } if ! post_chase . exists ( ) { if ! ( eigensols . exists ( ) || will_diagonalize ) { bail ! ( " \
 \
 \
 \
 " eigensols nice ( ) ) } return Ok ( iteration ) ; } } unreachable ! ( ) }
Used to figure out which iteration we're on when starting from the
post-diagonalization part of the EV loop for sparse.
Used to figure out which iteration we ' re on when starting from the post - diagonalization part of the EV loop for sparse .
&self
will_diagonalize
bool
&self
will_diagonalize
bool