Candidate_v1.7.0
        stable
      
      
        
          | Last change
 on this file since 1ca493a was             16c6f7, checked in by Frederik Heber <heber@…>, 9 years ago | 
        
          | 
TESTFIX: Recreated fragmentation results and homology containers for all associated fragmentation and potential tests.
 TESTS: added way how to create .dat files for all fitting regression tests.
TESTFIX: Removed again all XFAILs from tests parsing fragmentation results or
homologies.
TESTFIX: needed to slightly modify fitted potential values and charges.
 | 
        
          | 
              
Property                 mode
 set to                 100644 | 
        
          | File size:
            1.4 KB | 
      
      
| Line |  | 
|---|
| 1 | import sys | 
|---|
| 2 | import pyMoleCuilder as mol | 
|---|
| 3 |  | 
|---|
| 4 | if len(sys.argv) < 13: | 
|---|
| 5 | sys.stderr.write("Usage: "+sys.argv[0]+" <file> <order> <DoLongrange> <DoValenceOnly> <level> <near_field_cells> <server> <port> <basis> <inter-order> <distance> <steps> <bondtable>\n") | 
|---|
| 6 | sys.exit(255) | 
|---|
| 7 |  | 
|---|
| 8 | FILE=sys.argv[1] | 
|---|
| 9 | ORDER=sys.argv[2] | 
|---|
| 10 | LONGRANGE=sys.argv[3] | 
|---|
| 11 | VALENCEONLY=sys.argv[4] | 
|---|
| 12 | LEVEL=sys.argv[5] | 
|---|
| 13 | NEAR_FIELD_CELLS=sys.argv[6] | 
|---|
| 14 | SERVERADDRESS=sys.argv[7] | 
|---|
| 15 | CONTROLLERPORT=sys.argv[8] | 
|---|
| 16 | BASISNAME=sys.argv[9] | 
|---|
| 17 | INTERORDER=sys.argv[10] | 
|---|
| 18 | DISTANCE=sys.argv[11] | 
|---|
| 19 | STEPS=int(sys.argv[12]) | 
|---|
| 20 | BONDTABLE=sys.argv[13] | 
|---|
| 21 |  | 
|---|
| 22 | # load bond table file | 
|---|
| 23 | mol.CommandBondLengthTable(BONDTABLE) | 
|---|
| 24 | # Load molecule | 
|---|
| 25 | mol.MoleculeLoad(FILE) | 
|---|
| 26 | # Set parser parameter for mpqc | 
|---|
| 27 | mol.ParserSetParserParameters("mpqc", "theory=CLHF;basis="+BASISNAME+";") | 
|---|
| 28 | # set boundary | 
|---|
| 29 | mol.WorldSetBoundaryConditions("Ignore Ignore Ignore") | 
|---|
| 30 | # update molecule graph as first step setting does not change anything | 
|---|
| 31 | mol.GraphUpdateMolecules() | 
|---|
| 32 |  | 
|---|
| 33 | for i in range(0,STEPS): | 
|---|
| 34 | # set current time | 
|---|
| 35 | mol.WorldSetWorldTime(str(i)) | 
|---|
| 36 | # fragment system | 
|---|
| 37 | mol.SelectionAllAtoms() | 
|---|
| 38 | mol.FragmentationFragmentation("", DISTANCE, ORDER, "1", "1", "", "0.", LEVEL, INTERORDER, "0", "0") | 
|---|
| 39 | mol.FragmentationFragmentationAutomation(SERVERADDRESS, CONTROLLERPORT, "mpqc", LEVEL, NEAR_FIELD_CELLS, "3", LONGRANGE, "", VALENCEONLY, "0") | 
|---|
| 40 | mol.FragmentationAnalyseFragmentationResults("", "0") | 
|---|
| 41 |  | 
|---|
| 42 | # save homologies | 
|---|
| 43 | mol.PotentialSaveHomologies("homology.dat") | 
|---|
| 44 |  | 
|---|
| 45 | # exit | 
|---|
| 46 | sys.exit(0) | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.