@@ -14,6 +14,7 @@ logical function scf(rtdb)
1414#include " cscf.fh"
1515#include " case.fh"
1616#include " frozemb.fh"
17+ #include " stdio.fh"
1718c
1819c ROHF module.
1920c
@@ -85,13 +86,14 @@ logical function scf(rtdb)
8586c Print info
8687c
8788 if (ga_nodeid().eq. 0 .and. oprint) then
88- call util_print_centered(6 , ' NWChem SCF Module' , 40 , .true. )
89- write (6 ,* )
90- write (6 ,* )
89+ call util_print_centered(luout, ' NWChem SCF Module' , 40 ,
90+ $ .true. )
91+ write (luout,* )
92+ write (luout,* )
9193 if (title .ne. ' ' ) then
92- call util_print_centered(6 , title, 40 , .false. )
93- write (6 ,* )
94- write (6 ,* )
94+ call util_print_centered(luout , title, 40 , .false. )
95+ write (luout ,* )
96+ write (luout ,* )
9597 endif
9698c
9799 if (.not. geom_systype_get(geom,itype))
@@ -102,7 +104,7 @@ logical function scf(rtdb)
102104 if (.not. geom_ncent(geom, natoms)) call errquit
103105 $ (' scf: geom_ncent failed' , 0 , GEOM_ERR)
104106c
105- write (6 ,1 ) trans(1 :inp_strlen(trans)), nbf
107+ write (luout ,1 ) trans(1 :inp_strlen(trans)), nbf
106108 1 format (/
107109 $ ' ao basis = "' ,a,' "' /
108110 $ ' functions = ' , i5)
@@ -111,23 +113,23 @@ logical function scf(rtdb)
111113 if (.not. bas_name(riscf_basis, name, ri_trans))
112114 $ call errquit(' scf: bas_name?' , 0 ,
113115 & BASIS_ERR)
114- write (6 ,11 ) ri_trans(1 :inp_strlen(ri_trans)), nff
116+ write (luout ,11 ) ri_trans(1 :inp_strlen(ri_trans)), nff
115117 11 format (
116118 $ ' ri basis = "' ,a,' "' /
117119 $ ' ri functions = ' , i5)
118120 endif
119- write (6 ,12 ) natoms
121+ write (luout ,12 ) natoms
120122 12 format (' atoms = ' , i5)
121123 if (scftype .eq. ' UHF' ) then
122- write (6 ,121 ) nalpha, nbeta
124+ write (luout ,121 ) nalpha, nbeta
123125 121 format (' alpha electrons = ' , i5/
124126 $ ' beta electrons = ' , i5)
125127 else
126- write (6 ,122 ) nclosed, nopen
128+ write (luout ,122 ) nclosed, nopen
127129 122 format (' closed shells = ' , i5/
128130 $ ' open shells = ' , i5)
129131 endif
130- write (6 ,123 )
132+ write (luout ,123 )
131133 $ charge, scftype,
132134 $ movecs_in(1 :inp_strlen(movecs_in)),
133135 $ movecs_out(1 :inp_strlen(movecs_out)), oskel, oadapt
@@ -138,22 +140,22 @@ logical function scf(rtdb)
138140 $ ' output vectors = ' , a/
139141 $ ' use symmetry = ' , l1/
140142 $ ' symmetry adapt = ' , l1)
141- if (olock) write (6 ,124 ) olock
143+ if (olock) write (luout ,124 ) olock
142144 124 format (' lock orbitals = ' , l1)
143145 if (util_print(' basis summary' , print_default)) then
144146 if (.not. bas_summary_print(basis))
145147 & call errquit(' scf: basis summary print failed' ,911 ,
146148 & BASIS_ERR)
147149 else
148- write (6 ,* )
150+ write (luout ,* )
149151 endif
150152 if (oadapt .and. util_print(' char table' , print_high)) then
151153 call sym_print_char_table(geom)
152154 endif
153155 if (oadapt .and. util_print(' basis sym' , print_default)) then
154156 call sym_bas_irreps(basis, .true. , nbf_per_ir)
155157 endif
156- call util_flush(6 )
158+ call util_flush(luout )
157159 endif
158160c
159161c Print out other info as requested by user
@@ -162,17 +164,17 @@ logical function scf(rtdb)
162164 if (util_print(' geometry' ,print_high)) then
163165 if (.not. geom_print(geom))
164166 $ call errquit(' scf: geom_print' , 0 , GEOM_ERR)
165- write (6 ,* )
167+ write (luout ,* )
166168 endif
167169 if (util_print(' symmetry' , print_debug)) then
168170 call sym_print_all(geom, .true. , .true. , .true. ,
169171 $ .true. , .true. )
170- write (6 ,* )
172+ write (luout ,* )
171173 endif
172174 if (util_print(' basis' , print_high)) then
173175 if (.not. bas_print(basis))
174176 $ call errquit(' scf: bas_print' , 0 , BASIS_ERR)
175- write (6 ,* )
177+ write (luout ,* )
176178 endif
177179 if (util_print(' basis labels' ,print_high) .and.
178180 $ ga_nodeid().eq. 0 ) then
@@ -181,9 +183,9 @@ logical function scf(rtdb)
181183 if (util_print(' geombas' , print_debug)) then
182184 if (.not. gbs_map_print(basis))
183185 $ call errquit(' scf:gmp' , 0 , BASIS_ERR)
184- write (6 ,* )
186+ write (luout ,* )
185187 endif
186- call util_flush(6 )
188+ call util_flush(luout )
187189 endif
188190c
189191c Get and check the Coulomb Attenuation Method (CAM) parameters
@@ -208,10 +210,10 @@ logical function scf(rtdb)
208210 $ call errquit(' scf: failed getting converged energy' ,0 ,
209211 & RTDB_ERR)
210212 if (ga_nodeid().eq. 0 .and. oprint) then
211- write (6 ,1101 ) energy
213+ write (luout ,1101 ) energy
212214 1101 format (/ ' The SCF is already converged ' // ,
213215 $ ' Total SCF energy =' , f20.12 / )
214- call util_flush(6 )
216+ call util_flush(luout )
215217 endif
216218 goto 3131
217219 endif
@@ -225,14 +227,14 @@ logical function scf(rtdb)
225227 & UNKNOWN_ERR)
226228 if (ga_nodeid().eq. 0 .and. oprint) then
227229 if (nriscf.eq. 1 ) then
228- call util_print_centered(6 , ' RI hessian' , 40 , .true. )
230+ call util_print_centered(luout , ' RI hessian' , 40 , .true. )
229231 else if (nriscf.eq. 2 ) then
230- call util_print_centered(6 , ' RISCF' , 40 , .true. )
232+ call util_print_centered(luout , ' RISCF' , 40 , .true. )
231233 else if (nriscf.eq. 3 ) then
232- call util_print_centered(6 , ' preconverge with RISCF' , 40 ,
233- $ .true. )
234+ call util_print_centered(luout , ' preconverge with RISCF' ,
235+ $ 40 , .true. )
234236 endif
235- write (6 ,* )
237+ write (luout ,* )
236238 endif
237239 endif
238240c
@@ -248,7 +250,7 @@ logical function scf(rtdb)
248250c
249251c Form intial guess vectors
250252c
251- if (ga_nodeid().eq. 0 .and. oprint) write (6 ,711 ) util_wallsec()
253+ if (ga_nodeid().eq. 0 .and. oprint) write (luout ,711 ) util_wallsec()
252254 711 format (/ ' Forming initial guess at ' ,f9.1 ,' s' / )
253255c call scf_vectors_guess(rtdb)
254256c
@@ -266,7 +268,7 @@ logical function scf(rtdb)
266268c true if happily converged, false otherwise (e.g., if restart
267269c is needed or problems encountered).
268270c
269- if (ga_nodeid().eq. 0 .and. oprint) write (6 ,712 ) util_wallsec()
271+ if (ga_nodeid().eq. 0 .and. oprint) write (luout ,712 ) util_wallsec()
270272 712 format (/ ' Starting SCF solution at ' ,f9.1 ,' s' / )
271273c
272274c frozen embedding
@@ -289,9 +291,9 @@ logical function scf(rtdb)
289291c
290292 if (nriscf.eq. 3 ) then
291293 if (ga_nodeid().eq. 0 .and. oprint) then
292- call util_print_centered(6 ,
294+ call util_print_centered(luout ,
293295 $ ' switching to exact energy/gradient' , 40 , .true. )
294- write (6 ,* )
296+ write (luout ,* )
295297 endif
296298 nriscf = 1
297299 if (scftype .eq. ' UHF' ) then
0 commit comments