Changeset bd2278d for init_molecule.f
- Timestamp:
- 09/05/08 11:49:42 (16 years ago)
- Branches:
- master
- Children:
- fafe4d6
- Parents:
- 2ebb8b6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
init_molecule.f
r2ebb8b6 rbd2278d 1 c**************************************************************2 c 3 cThis file contains the subroutines: init_molecule4 c 5 cCopyright 2003-2005 Frank Eisenmenger, U.H.E. Hansmann,6 cShura Hayryan, Chin-Ku7 cCopyright 2007 Frank Eisenmenger, U.H.E. Hansmann,8 cJan H. Meinke, Sandipan Mohanty9 c 10 c**************************************************************11 cFIXME: Data in varfile determines which molecule is changed.1 ! ************************************************************** 2 ! 3 ! This file contains the subroutines: init_molecule 4 ! 5 ! Copyright 2003-2005 Frank Eisenmenger, U.H.E. Hansmann, 6 ! Shura Hayryan, Chin-Ku 7 ! Copyright 2007 Frank Eisenmenger, U.H.E. Hansmann, 8 ! Jan H. Meinke, Sandipan Mohanty 9 ! 10 ! ************************************************************** 11 ! FIXME: Data in varfile determines which molecule is changed. 12 12 13 13 subroutine init_molecule(iabin,grpn,grpc,seqfile,varfile) 14 14 15 c----------------------------------------------------------16 cPURPOSE: construct starting structure of molecule(s)17 c 18 ciabin = 1 : ab Initio using sequence &19 cvariables given in input files20 ciabin != 1 : sequence, variable information21 cfrom PDB-file22 c 23 cgrpn: N-terminal group24 cgrpc: C-terminal group25 c 26 cCALLS: addend,bldmol,c_alfa,getmol,iendst, mklist, nursvr,27 Cpdbread,pdbvars,redseq,redvar,setmvs28 C 29 c----------------------------------------------------------15 ! ---------------------------------------------------------- 16 ! PURPOSE: construct starting structure of molecule(s) 17 ! 18 ! iabin = 1 : ab Initio using sequence & 19 ! variables given in input files 20 ! iabin != 1 : sequence, variable information 21 ! from PDB-file 22 ! 23 ! grpn: N-terminal group 24 ! grpc: C-terminal group 25 ! 26 ! CALLS: addend,bldmol,c_alfa,getmol,iendst, mklist, nursvr, 27 ! pdbread,pdbvars,redseq,redvar,setmvs 28 ! 29 ! ---------------------------------------------------------- 30 30 31 31 include 'INCL.H' 32 32 include 'INCP.H' 33 33 34 cf2py character*80 optional, intent(in) :: seqfile = ' '35 cf2py character*80 optional, intent(in) :: varfile = ' '34 !f2py character*80 optional, intent(in) :: seqfile = ' ' 35 !f2py character*80 optional, intent(in) :: varfile = ' ' 36 36 37 37 character grpn*4,grpc*4 … … 47 47 if (iabin.eq.1) then 48 48 49 c----------------------------------------- get sequence for molecule(s)49 ! ----------------------------------------- get sequence for molecule(s) 50 50 lunseq=11 51 51 if (ntlml.gt.0) then … … 64 64 write (*,*) 'File with sequence is ', seqfil(1:iendst(seqfil)) 65 65 66 c--------------------------------- read & assemble data from libraries67 cinitial coordinates, interaction lists66 ! --------------------------------- read & assemble data from libraries 67 ! initial coordinates, interaction lists 68 68 69 69 ntl = ntlml … … 85 85 enddo 86 86 87 c--------------------------- Read the initial conformation if necessary87 ! --------------------------- Read the initial conformation if necessary 88 88 if(readFromStdin) then 89 89 write (*,'(a,$)') ' file with VARIABLES:' 90 c90 ! 91 91 varfil=' ' 92 92 read(*,'(a)',end=2,err=2) varfil … … 105 105 2 write(*,*) ' ' 106 106 107 c-------------------- get: nvr,idvr, vlvr, olvlvr107 ! -------------------- get: nvr,idvr, vlvr, olvlvr 108 108 nvr = 0 109 109 do i=1,ivrml1(ntlml)+nvrml(ntlml)-1 … … 149 149 endif 150 150 151 c-------------------------- set var. amplitudes for simulations151 ! -------------------------- set var. amplitudes for simulations 152 152 153 153 do i=1,ivrml1(ntlml)+nvrml(ntlml)-1 … … 162 162 if ( navr(1:2).eq.'om' 163 163 164 #.or.nars(1:3).eq.'arg'.and.(navr(1:2).eq.'x5'165 #.or.navr(1:2).eq.'x6')166 167 #.or.(nars(1:3).eq.'asn'.or.nars(1:3).eq.'asp')168 #.and.navr(1:2).eq.'x3'169 170 #.or.(nars(1:3).eq.'gln'.or.nars(1:3).eq.'glu')171 #.and.navr(1:2).eq.'x4'172 173 #) then174 175 caxvr(i) = pi/9.d0 ! 20 deg.164 & .or.nars(1:3).eq.'arg'.and.(navr(1:2).eq.'x5' 165 & .or.navr(1:2).eq.'x6') 166 167 & .or.(nars(1:3).eq.'asn'.or.nars(1:3).eq.'asp') 168 & .and.navr(1:2).eq.'x3' 169 170 & .or.(nars(1:3).eq.'gln'.or.nars(1:3).eq.'glu') 171 & .and.navr(1:2).eq.'x4' 172 173 & ) then 174 175 ! axvr(i) = pi/9.d0 ! 20 deg. 176 176 axvr(i) = pi2 ! Trying out 360 deg. for these as well 177 177 … … 186 186 enddo ! vars. 187 187 188 c--------------------- initialize solvation pars. if necessary188 ! --------------------- initialize solvation pars. if necessary 189 189 190 190 if (itysol.ne.0) then
Note:
See TracChangeset
for help on using the changeset viewer.