Action_Thermostats
Add_AtomRandomPerturbation
Add_RotateAroundBondAction
Add_SelectAtomByNameAction
Adding_Graph_to_ChangeBondActions
Adding_MD_integration_tests
Adding_StructOpt_integration_tests
Automaking_mpqc_open
AutomationFragmentation_failures
Candidate_v1.6.0
Candidate_v1.6.1
ChangeBugEmailaddress
ChangingTestPorts
ChemicalSpaceEvaluator
Combining_Subpackages
Debian_Package_split
Debian_package_split_molecuildergui_only
Disabling_MemDebug
Docu_Python_wait
EmpiricalPotential_contain_HomologyGraph
EmpiricalPotential_contain_HomologyGraph_documentation
Enable_parallel_make_install
Enhance_userguide
Enhanced_StructuralOptimization
Enhanced_StructuralOptimization_continued
Example_ManyWaysToTranslateAtom
Exclude_Hydrogens_annealWithBondGraph
FitPartialCharges_GlobalError
Fix_ChronosMutex
Fix_StatusMsg
Fix_StepWorldTime_single_argument
Fix_Verbose_Codepatterns
ForceAnnealing_goodresults
ForceAnnealing_oldresults
ForceAnnealing_tocheck
ForceAnnealing_with_BondGraph
ForceAnnealing_with_BondGraph_continued
ForceAnnealing_with_BondGraph_continued_betteresults
ForceAnnealing_with_BondGraph_contraction-expansion
GeometryObjects
Gui_displays_atomic_force_velocity
IndependentFragmentGrids_IntegrationTest
JobMarket_RobustOnKillsSegFaults
JobMarket_StableWorkerPool
JobMarket_unresolvable_hostname_fix
ODR_violation_mpqc_open
PartialCharges_OrthogonalSummation
PythonUI_with_named_parameters
QtGui_reactivate_TimeChanged_changes
Recreated_GuiChecks
RotateToPrincipalAxisSystem_UndoRedo
StoppableMakroAction
Subpackage_CodePatterns
Subpackage_JobMarket
Subpackage_LinearAlgebra
Subpackage_levmar
Subpackage_mpqc_open
Subpackage_vmg
ThirdParty_MPQC_rebuilt_buildsystem
TremoloParser_IncreasedPrecision
TremoloParser_MultipleTimesteps
Ubuntu_1604_changes
stable
Last change
on this file since e47ac7 was 16c6f7, checked in by Frederik Heber <heber@…>, 8 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.5 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 | # set box
|
---|
33 | mol.WorldChangeBox("8,0,0,8,0,8")
|
---|
34 |
|
---|
35 | for i in range(0,STEPS):
|
---|
36 | # set current time
|
---|
37 | mol.WorldSetWorldTime(str(i))
|
---|
38 | # fragment system
|
---|
39 | mol.SelectionAllAtoms()
|
---|
40 | mol.FragmentationFragmentation("", DISTANCE, ORDER, "1", "1", "", "0.", LEVEL, INTERORDER, "0", "0")
|
---|
41 | mol.FragmentationFragmentationAutomation(SERVERADDRESS, CONTROLLERPORT, "mpqc", "0.", LEVEL, NEAR_FIELD_CELLS, "3", LONGRANGE, "", VALENCEONLY, "0")
|
---|
42 | mol.FragmentationAnalyseFragmentationResults("1", "", "0")
|
---|
43 |
|
---|
44 | # save homologies
|
---|
45 | mol.PotentialSaveHomologies("homology.dat")
|
---|
46 | mol.PotentialSaveAtomFragments("atomfragments.dat")
|
---|
47 |
|
---|
48 | # exit
|
---|
49 | sys.exit(0)
|
---|
Note:
See
TracBrowser
for help on using the repository browser.