Action_Thermostats
        Add_AtomRandomPerturbation
        Add_SelectAtomByNameAction
        Adding_Graph_to_ChangeBondActions
        Adding_MD_integration_tests
        Adding_StructOpt_integration_tests
        AutomationFragmentation_failures
        Candidate_v1.6.1
        Candidate_v1.7.0
        ChangeBugEmailaddress
        ChemicalSpaceEvaluator
        EmpiricalPotential_contain_HomologyGraph_documentation
        Enhance_userguide
        Enhanced_StructuralOptimization
        Enhanced_StructuralOptimization_continued
        Example_ManyWaysToTranslateAtom
        Exclude_Hydrogens_annealWithBondGraph
        Fix_Verbose_Codepatterns
        ForceAnnealing_oldresults
        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
        PythonUI_with_named_parameters
        QtGui_reactivate_TimeChanged_changes
        Recreated_GuiChecks
        StoppableMakroAction
        TremoloParser_IncreasedPrecision
        TremoloParser_MultipleTimesteps
        stable
      
      
      
| Line |   | 
|---|
| 1 | 
 | 
|---|
| 2 | #include <math/symmetry/pointgrp.h>
 | 
|---|
| 3 | #include <math/symmetry/corrtab.h>
 | 
|---|
| 4 | 
 | 
|---|
| 5 | using namespace sc;
 | 
|---|
| 6 | 
 | 
|---|
| 7 | main(int argc, char *argv[])
 | 
|---|
| 8 | {
 | 
|---|
| 9 |   Ref<PointGroup> pg = new PointGroup(argv[1]);
 | 
|---|
| 10 |   Ref<PointGroup> pg2;
 | 
|---|
| 11 |   if (argc > 2) pg2 = new PointGroup(argv[2]);
 | 
|---|
| 12 | 
 | 
|---|
| 13 |   //pg.char_table().print();
 | 
|---|
| 14 | 
 | 
|---|
| 15 |   CharacterTable ct = pg->char_table();
 | 
|---|
| 16 |   CharacterTable ct2;
 | 
|---|
| 17 |   ct2=ct;
 | 
|---|
| 18 | 
 | 
|---|
| 19 |   ct.print();
 | 
|---|
| 20 | 
 | 
|---|
| 21 |   if (pg2.nonnull()) {
 | 
|---|
| 22 |       pg2->char_table().print();
 | 
|---|
| 23 |       if (argc <= 3) {
 | 
|---|
| 24 |           CorrelationTable corrtab(pg,pg2);
 | 
|---|
| 25 |           corrtab.print();
 | 
|---|
| 26 |         }
 | 
|---|
| 27 |     }
 | 
|---|
| 28 | 
 | 
|---|
| 29 |   // test given axis rearrangements
 | 
|---|
| 30 |   for (int i=3; i<argc; i++) {
 | 
|---|
| 31 |       pg2->symm_frame().zero();
 | 
|---|
| 32 |       for (int j=0; j<3; j++) {
 | 
|---|
| 33 |           if (argv[i][j] == 'x') pg2->symm_frame()(j,0) = 1.0;
 | 
|---|
| 34 |           else if (argv[i][j] == 'y') pg2->symm_frame()(j,1) = 1.0;
 | 
|---|
| 35 |           else if (argv[i][j] == 'z') pg2->symm_frame()(j,2) = 1.0;
 | 
|---|
| 36 |         }
 | 
|---|
| 37 |       CorrelationTable corrtab(pg,pg2);
 | 
|---|
| 38 |       corrtab.print();
 | 
|---|
| 39 |     }
 | 
|---|
| 40 | }
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.