Skip to content

Commit

Permalink
Fixing error in read plainvec test
Browse files Browse the repository at this point in the history
  • Loading branch information
fsmoncadaa committed Nov 22, 2023
1 parent 7e365b8 commit 83217e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bin/lowdin
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ if [ $extFile="lowdin" ]; then
if [ -d "$LOWDIN_SCRATCH/$nameFile" ]
then
echo "## WARNING ## The scratch directory $LOWDIN_SCRATCH/$nameFile"
echo " has been removed, probably it corresponds to"
echo " exists, probably it corresponds to"
echo " a calculation completed or with errors."
# rm -rf $LOWDIN_SCRATCH/$nameFile
mkdir $LOWDIN_SCRATCH/$nameFile
Expand All @@ -356,6 +356,7 @@ if [ $extFile="lowdin" ]; then
fi

cp $nameFile*.vec $LOWDIN_SCRATCH/$nameFile &> /dev/null
cp $nameFile*.plainvec $LOWDIN_SCRATCH/$nameFile &> /dev/null
cp $nameFile*.val $LOWDIN_SCRATCH/$nameFile &> /dev/null
cp $nameFile*.dens $LOWDIN_SCRATCH/$nameFile &> /dev/null
cp $nameFile*.sup $LOWDIN_SCRATCH/$nameFile &> /dev/null
Expand Down
2 changes: 1 addition & 1 deletion src/scf/DensityMatrixSCFGuess.f90
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ subroutine DensityMatrixSCFGuess_getGuess( speciesID, hcoreMatrix, transformatio
wfnFile=trim(CONTROL_instance%INPUT_FILE)//"plainvec"
inquire(FILE = wfnFile, EXIST = existPlain )
if ( existPlain ) then
open(unit=wfnUnit, file=trim(wfnFile), status="old", form="unformatted")
open(unit=wfnUnit, file=trim(wfnFile), status="old", form="formatted")
orbitals = Matrix_getFromFile(unit=wfnUnit, rows= int(orderOfMatrix,4), &
columns= int(orderOfMatrix,4), binary=.false., arguments=arguments(1:2),failContinue=.true.)
close(wfnUnit)
Expand Down

0 comments on commit 83217e3

Please sign in to comment.