Skip to content

Commit 623b09a

Browse files
authored
added QCpath option (#24)
1 parent a55a2dd commit 623b09a

File tree

4 files changed

+26
-21
lines changed

4 files changed

+26
-21
lines changed

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
project(
44
'qcxms',
55
'fortran',
6-
version: '5.1.1',
6+
version: '5.1.2',
77
license: 'LGPL-3.0-or-later',
88
meson_version: '>=0.55',
99
default_options: [

src/input.f90

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
subroutine input(tstep,tmax,ntraj,iseed,etemp,Tinit, &
1+
subroutine input(tstep,tmax,ntraj,iseed,etemp,Tinit,mchrg, &
22
iee_a,iee_b,eimp0,eimpw,fimp,iprog,trelax,hacc,nfragexit,maxsec, &
33
edistri,btf,ieeatm, &
44
scanI,lowerbound,upperbound,metal3d,ELAB,eExact,ECP,unity,noecp,nometal, &
@@ -25,6 +25,7 @@ subroutine input(tstep,tmax,ntraj,iseed,etemp,Tinit,
2525
integer :: nn,i,j
2626
integer :: io_in
2727
integer :: error
28+
integer :: mchrg
2829

2930
real(wp) :: tstep
3031
real(wp) :: tmax

src/main.f90

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -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'

src/version.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ subroutine version(i)
77
integer,intent(in) :: i
88
character(len=:), allocatable :: line
99

10-
line ='Aug 25 14:30:00 CEST 2021 '
10+
line ='Aug 27 10:30:00 CEST 2021 '
1111

1212
if (i.eq.0) write(*,' (22x,''*'',18x,''V5.1.2'',18x,'' *'')' )
1313
if (i.eq.1) write(*,' (22x,''* '',(a)'' *'')' ) line

0 commit comments

Comments
 (0)