PetscErrorCode Block::SpinBase::SetDiskStorage ( const std::string &  read_dir_in,
const std::string &  write_dir_in 
)

Tells where to read from and save the operators and data about the block.

The blocks are going to be read from the read_dir_in directory during the first retrieval and then save_dir_in for succeeding reads. This comes in useful for the sweep stage of the DMRG algorithm, when we want to read the resulting operators of the previous sweep and write the files back into a different subdirectory for the current sweep. The switch is done by Retrieve_NoChecks().

This function also resets the counter in the number of reads performed in the PetscInt Block::SpinBase::num_reads parameter

Parameters
read_dir_inDirectory to initially read-in block object's data
write_dir_inDirectory to store block object's data

Definition at line 857 of file DMRGBlock.cpp.

Referenced by loc_qn_size().

This site was generated by Sphinx using Doxygen with a customized theme from doxygen-bootstrapped.