@@ -138,7 +138,8 @@ program QCxMS
138138 logical :: starting_md
139139 ! logical gbsa ! set solvation model
140140
141- external system
141+ intrinsic :: get_command_argument
142+ external :: system
142143
143144 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
144145 ! Start the program
@@ -266,13 +267,13 @@ program QCxMS
266267 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
267268 ! Read the INPUT file
268269 ! input, all defaults are set here
269- call input(tstep,tmax,ntraj,iseed(1 ),etempin,Tinit, &
270+ call input(tstep,tmax,ntraj,iseed(1 ),etempin,Tinit,mchrg, &
270271 & iee_a,iee_b,eimp0,eimpw,fimp,iprog, &
271272 & trelax,hacc,nfragexit,maxsec,edistri,btf,ieeatm, &
272- & scani,lowerbound,upperbound,metal3d, &
273- & Eimpact,eExact,ECP,unity,noecp,nometal, &
274- & vScale,CollNo,CollSec,ConstVelo, &
275- & minmass,simMD,convetemp,set_coll,MaxColl, &
273+ & scani,lowerbound,upperbound,metal3d, &
274+ & Eimpact,eExact,ECP,unity,noecp,nometal, &
275+ & vScale,CollNo,CollSec,ConstVelo, &
276+ & minmass,simMD,convetemp,set_coll,MaxColl, &
276277 & MinPot,ESI,tempESI,No_ESI,NoScale)
277278 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
278279
@@ -335,20 +336,23 @@ program QCxMS
335336 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
336337 ! READ command line options
337338 do i= 1 ,10
338- call getarg (i,arg(i))
339+ call get_command_argument (i,arg(i))
339340 enddo
341+
340342 do i= 1 ,10
341- if (index (arg(i),' -check' ) /= 0 )check = .true. ! Check IEE settings
342- if (index (arg(i),' -c' ) /= 0 )check = .true. ! Check IEE settings
343- if (index (arg(i),' -prod' ) /= 0 )prod = .true. ! Do production run
344- if (index (arg(i),' -p' ) /= 0 )prod = .true. ! Do production run
345- if (index (arg(i),' -noeq' ) /= 0 )noeq = .true. ! Skip equilibration MD
346- if (index (arg(i),' -e0' ) /= 0 )eonly0 = .true. ! Only calc. energy chrg = 0
347- if (index (arg(i),' -e1' ) /= 0 )eonly1 = .true. ! Only calc. energy chrg = 1
348- if (index (arg(i),' -eonly' ) /= 0 )eonly = .true. ! Only calc. energy chrg = .CHRG file
349- if (index (arg(i),' -v' ) /= 0 )verbose = .true. ! more infos
350- if (index (arg(i),' -unity' ) /= 0 )unity = .true. ! Set velocity scaling to unity
351- if (index (arg(i),' -qcp' ) /= 0 )path= arg(i+1 ) ! Use GCP model (not implemented)
343+ if (index (arg(i),' -check' ) /= 0 )check = .true. ! Check IEE settings
344+ if (index (arg(i),' -c' ) /= 0 )check = .true. ! Check IEE settings
345+ if (index (arg(i),' -prod' ) /= 0 )prod = .true. ! Do production run
346+ if (index (arg(i),' -p' ) /= 0 )prod = .true. ! Do production run
347+ if (index (arg(i),' -noeq' ) /= 0 )noeq = .true. ! Skip equilibration MD
348+ if (index (arg(i),' -e0' ) /= 0 )eonly0 = .true. ! Only calc. energy chrg = 0
349+ if (index (arg(i),' -e1' ) /= 0 )eonly1 = .true. ! Only calc. energy chrg = 1
350+ if (index (arg(i),' -eonly' ) /= 0 )eonly = .true. ! Only calc. energy chrg = .CHRG file
351+ if (index (arg(i),' -v' ) /= 0 )verbose = .true. ! more infos
352+ if (index (arg(i),' -unity' ) /= 0 )unity = .true. ! Set velocity scaling to unity
353+ if (index (arg(i),' -qcp' ) /= 0 )path= arg(i+1 ) ! Set QC path
354+ if (index (arg(i),' -qcpath' ) /= 0 )path= arg(i+1 ) ! Set QC path
355+
352356 ! if(index(arg(i),'-gbsa' ) /= 0)then
353357 ! lgbsa =.true.
354358 ! write(*,*)'Solvation activated'
0 commit comments