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_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_levmar
Subpackage_vmg
ThirdParty_MPQC_rebuilt_buildsystem
TremoloParser_IncreasedPrecision
TremoloParser_MultipleTimesteps
Ubuntu_1604_changes
stable
Rev | Line | |
---|
[0b990d] | 1 | //
|
---|
| 2 | // extent.h
|
---|
| 3 | //
|
---|
| 4 |
|
---|
| 5 | #ifndef _chemistry_qc_basis_extent_h
|
---|
| 6 | #define _chemistry_qc_basis_extent_h
|
---|
| 7 |
|
---|
| 8 | #ifdef __GNUC__
|
---|
| 9 | #pragma interface
|
---|
| 10 | #endif
|
---|
| 11 |
|
---|
| 12 | #include <vector>
|
---|
| 13 |
|
---|
| 14 | #include <float.h>
|
---|
| 15 | #include <chemistry/qc/basis/basis.h>
|
---|
| 16 |
|
---|
| 17 | namespace sc {
|
---|
| 18 |
|
---|
| 19 | struct ExtentData {
|
---|
| 20 | int shell;
|
---|
| 21 | double bound;
|
---|
| 22 | ExtentData() {}
|
---|
| 23 | ExtentData(int s, double b): shell(s), bound(b) {}
|
---|
| 24 | };
|
---|
| 25 |
|
---|
| 26 | class ShellExtent: public RefCount {
|
---|
| 27 | double lower_[3];
|
---|
| 28 | double resolution_;
|
---|
| 29 | int n_[3];
|
---|
| 30 | std::vector<ExtentData> *contributing_shells_;
|
---|
| 31 | std::vector<ExtentData> null_;
|
---|
| 32 |
|
---|
| 33 | std::vector<ExtentData> &data(int *b);
|
---|
| 34 | double distance(double loc, int axis, int origin, int point);
|
---|
| 35 | std::vector<ExtentData> &data(int x, int y, int z);
|
---|
| 36 | public:
|
---|
| 37 | ShellExtent();
|
---|
| 38 | ~ShellExtent();
|
---|
| 39 | void init(const Ref<GaussianBasisSet>&,
|
---|
| 40 | double resolution = 1.0, double tolerance = DBL_EPSILON);
|
---|
| 41 | /** Returns the shells that are nonzero at coordinates x, y, z.
|
---|
| 42 | The shells numbers are in ascending order. */
|
---|
| 43 | const std::vector<ExtentData> &contributing_shells(int x, int y, int z)
|
---|
| 44 | { return data(x,y,z); }
|
---|
| 45 | const std::vector<ExtentData> &contributing_shells(double x, double y, double z);
|
---|
| 46 | void print(std::ostream &o = ExEnv::out0());
|
---|
| 47 | const int *n() const { return n_; }
|
---|
| 48 | int n(int ixyz) const { return n_[ixyz]; }
|
---|
| 49 | double lower(int ixyz) const { return lower_[ixyz]; }
|
---|
| 50 | double upper(int ixyz) const { return resolution_*n_[ixyz] + lower_[ixyz]; }
|
---|
| 51 | double resolution() const { return resolution_; }
|
---|
| 52 | };
|
---|
| 53 |
|
---|
| 54 | }
|
---|
| 55 |
|
---|
| 56 | #endif
|
---|
| 57 |
|
---|
| 58 | // Local Variables:
|
---|
| 59 | // mode: c++
|
---|
| 60 | // c-file-style: "CLJ"
|
---|
| 61 | // End:
|
---|
Note:
See
TracBrowser
for help on using the repository browser.