Coding tips DOCK 3.7

From DISI
Revision as of 02:07, 29 March 2014 by Nir London (talk | contribs) (Created page with " == Adding an INDOCK parameter: == To add an option to the INDOCK file that will be parsed and read into DOCK edit the following files: Add a declaration of the variable th...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Adding an INDOCK parameter:

To add an option to the INDOCK file that will be parsed and read into DOCK edit the following files:

Add a declaration of the variable that will contain your parameter to optionstype.f

logical :: dockovalent

Set the default value for your variable in setdef.f

options0%dockovalent = .false.

Parse input value (or keyword value) from INDOCK in dokw.f

   else if (keywrd .eq. 'dockovalent') then
        call tolow(args)
        if (nf .lt. 1) then
           options0%dockovalent = .false. !off by default
        else if (args(1:1) .eq. 'y') then
           options0%dockovalent = .true.
        else
           options0%dockovalent = .false.
       endif