@@ -700,51 +700,37 @@ subroutine WriteElecStruc(ES, nfile_in)
7007003 format (10 (1x , es15.8 ))
701701
702702 write (nf, * ) ' # Orbitals'
703- write (nf, 3 , iostat = ierr ) ES% OldOrbitals
703+ write (nf, 3 ) ES% OldOrbitals
704704 write (nf, * ) ' # CI vectors'
705- write (nf, 3 , iostat = ierr ) ES% OldCIVecs
705+ write (nf, 3 ) ES% OldCIVecs
706706 write (nf, * ) ' # Overlap matrix'
707- write (nf, 3 , iostat = ierr ) ES% OverlapMatrix
707+ write (nf, 3 ) ES% OverlapMatrix
708708 write (nf, * ) ' # TC Blob'
709- write (nf, 3 , iostat = ierr ) ES% OldBlob
709+ write (nf, 3 ) ES% OldBlob
710710 write (nf, * ) ' # MSPT2 Coeffs'
711- write (nf, 3 , iostat = ierr ) ES% OldMSPT2C
711+ write (nf, 3 ) ES% OldMSPT2C
712712 write (nf, * ) ' # Electronic Phases'
713- write (nf, * , iostat= ierr) ES% ElecPhase
714-
715- return
713+ write (nf, * ) ES% ElecPhase
716714 end subroutine WriteElecStruc
717715
718- ! - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
719- subroutine ReadElecStruc (ES , nfile_in )
720- ! - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
716+ subroutine ReadElecStruc (ES , nf )
721717 type (T_ElecStruc), intent (inout ) :: ES
722- integer (kind= DefInt), optional :: nfile_in
723-
724- integer (kind= DefInt) :: nf ! unit number to write to
725- ! WTF: We shouldn't just blidly ignore all errors!
726- integer (kind= DefInt) :: ierr ! catch errors that may be thrown
727-
728- ! set which file we are writing to
729- nf = 5
730- if (present (nfile_in)) nf = nfile_in
718+ integer (kind= DefInt), intent (in ) :: nf
731719
7327203 format (10 (1x , es15.8 ))
733721
734722 read (nf, * )
735- read (nf, 3 , iostat = ierr ) ES% OldOrbitals
723+ read (nf, 3 ) ES% OldOrbitals
736724 read (nf, * )
737- read (nf, 3 , iostat = ierr ) ES% OldCIVecs
725+ read (nf, 3 ) ES% OldCIVecs
738726 read (nf, * )
739- read (nf, 3 , iostat = ierr ) ES% OverlapMatrix
727+ read (nf, 3 ) ES% OverlapMatrix
740728 read (nf, * )
741- read (nf, 3 , iostat = ierr ) ES% OldBlob
729+ read (nf, 3 ) ES% OldBlob
742730 read (nf, * )
743- read (nf, 3 , iostat = ierr ) ES% OldMSPT2C
731+ read (nf, 3 ) ES% OldMSPT2C
744732 read (nf, * )
745- ! DEBUG - changed v from read(nf,3,iostat=ierr)
746- read (nf, * , iostat= ierr) ES% ElecPhase
747- return
733+ read (nf, * ) ES% ElecPhase
748734 end subroutine ReadElecStruc
749735
750736! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
0 commit comments