⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 menu.f

📁 已经编译好的levoo程序
💻 F
字号:
      subroutine choose1()c.......... for a 2-dimensional plot ...............................       include 'real8.inc'      include 'menu.inc'      character enable*8c.............. show present setting 1    write(*,*)'..............CUSTOMISATION ......................'      write(*,*)'..... Change these parameters if necessary:...'      write(*,*)      write(*,'(a31,i5)')'   1. Resolution for the plot = ',nresol      if(lochop.eq.0.0) then           enable='disabled'      else           enable=' enabled'      end if      write(*,'(a18,f6.2,a11)')     &                 '   2. Low chop  = ',lochop,' {'//enable//'}'      if(hichop.eq.0.0) then           enable='disabled'      else           enable=' enabled'      end if      write(*,'(a18,f6.2,a11)')     &                 '   3. High chop = ',hichop,' {'//enable//'}'      write(*,'(a30,f6.2)')'   4. Multiplication factor = ',multcon      write(*,'(a)')'   5. Return to the previous menu.'      write(*,*)      write(*,*)'------> Choose the item and press ENTER:'      read(*,*,err=100) itemcc__________ give the resolution in either direction      if(item.eq.1) then 15      write(*,*)'Specify this number:'         read(*,*,err=16) nresol         if(nresol.lt.2) go to 16         go to 1 16      write(*,*)'Incorrect or too small resolution! Try again!'         go to 15cc__________ give low chop value      else if(item.eq.2) then 20      write(*,*)'Specify this number:'         read(*,*,err=23) lochop         go to 1 23      write(*,*)'Error! Try again!'         go to 20cc__________ give high chop value      else if(item.eq.3) then 25      write(*,*)'Specify this number:'         read(*,*,err=26) hichop         go to 1 26      write(*,*)'Error! Try again!'         go to 25cc__________ give a multiplication factor for the density      else if(item.eq.4) then 35      write(*,*)'Specify this number:'         read(*,*,err=37) multcon         if(multcon.lt.0.0) go to 37         go to 1 37      write(*,*)'Error! Try again!'         go to 35      else if(item.eq.5) then         return        else         go to 100      end ifc............. error 100  write(*,*)'Incorrect item number! Try again!'      go to 1      end      subroutine choose3()c.......... for a 3-dimensional plot ...............................c...................................................................       include 'real8.inc'      include 'menu.inc'      character enable*8c.............. show present setting 1    write(*,*)'..............MENU ONE .......................'      write(*,*)'..... Change these parameters if necessary:...'      write(*,*)      if(type_prv.eq.'contour')      &    write(*,*)'  0. Number of contour levels = ',nclasses      write(*,'(a31,i5)')'   1. Resolution for the plot = ',nresol3      write(*,'(a38,i5)')     &      '   2. Resolution for the previewing = ',nresol_prv      write(*,'(a38,a7)')     &      '   3. Type of the preview picture is: ',type_prv      if(lochop.eq.0.0) then           enable='disabled'      else           enable=' enabled'      end if      write(*,'(a18,f6.2,a11)')     &                 '   4. Low chop  = ',lochop,' {'//enable//'}'      if(hichop.eq.0.0) then           enable='disabled'      else           enable=' enabled'      end if      write(*,'(a18,f6.2,a11)')     &                 '   5. High chop = ',hichop,' {'//enable//'}'      write(*,'(a30,f6.2)')'   6. Multiplication factor    = ',multcon      write(*,'(a)')'   7. Return to the previous menu.'      write(*,*)      write(*,*)'------> Choose the item and press ENTER:'      read(*,*,err=100) itemc      if(item.eq.0) then         if(type_prv.ne.'contour')  go to 100 75      write(*,*)'Specify this number:'         read(*,*,err=75) nclasses         if(nclasses.lt.2) go to 75cc__________ give the resolution in either direction      else if(item.eq.1) then 15      write(*,*)'Specify this number:'         read(*,*,err=16) nresol3         if(nresol3.lt.2) go to 16         go to 1 16      write(*,*)'Incorrect or too small resolution! Try again!'         go to 15cc__________ give the resolution in either direction      else if(item.eq.2) then 45      write(*,*)'Specify this number:'         read(*,*,err=46) nresol_prv         if(nresol_prv.lt.2) go to 46         go to 1 46      write(*,*)'Incorrect or too small resolution! Try again!'         go to 45cc__________ give the type of the previewing      else if(item.eq.3) then         if(type_prv.eq.'contour') then            type_prv='3dimens'         else            type_prv='contour'         end if         go to 1cc__________ give low chop value      else if(item.eq.4) then 20      write(*,*)'Specify this number:'         read(*,*,err=23) lochop         go to 1 23      write(*,*)'Error! Try again!'         go to 20cc__________ give high chop value      else if(item.eq.5) then 25      write(*,*)'Specify this number:'         read(*,*,err=26) hichop         go to 1 26      write(*,*)'Error! Try again!'         go to 25cc__________ give a multiplication factor for the density      else if(item.eq.6) then 35      write(*,*)'Specify this number:'         read(*,*,err=37) multcon         if(multcon.lt.0.0) go to 37         go to 1 37      write(*,*)'Error! Try again!'         go to 35c      else if(item.eq.7) then         return        else         go to 100      end ifc............. error 100  write(*,*)'Incorrect item number! Try again!'      go to 1      end      block data parameters       include 'real8.inc'      include 'menu.inc'      data nresol/160/,nresol3/160/,nresols/30/,multcon/1.0/      data nresold/30/      data lochop/0.0/,hichop/0.0/      data nresol_prv/30/,type_prv/'contour'/,nclasses/30/      data vers1x/0.0/,vers1y/0.0/,vers1z/0.0/,     ,     aCENTX/0.0/,aCENTY/0.0/,aCENTZ/0.0/,     ,   vers2x/0.0/,vers2y/0.0/,vers2z/0.0/,      ,   vers3x/0.0/,vers3y/0.0/,vers3z/0.0/,      ,   width1/0.0/,width2/0.0/,Ra/3*0.0/      data angstr/'<Angstroms> '/      data icase/1/,icase1/1/      data method/'conserving'/      data central_p/.false./,NumbEl/8.0/      data RadiusS/0.0/,RadiusL/0.0/,Nrad/0/      end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -