Changeset 5b1e5e for src/Fragmentation/Summation/SetValues/SamplingGrid.hpp
- Timestamp:
- Sep 14, 2016, 6:42:52 PM (9 years ago)
- Branches:
- Action_Thermostats, Add_AtomRandomPerturbation, Add_FitFragmentPartialChargesAction, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_StructOpt_integration_tests, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.5.4, 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_ChargeSampling_PBC, Fix_ChronosMutex, Fix_FitPartialCharges, Fix_FitPotential_needs_atomicnumbers, Fix_ForceAnnealing, Fix_IndependentFragmentGrids, Fix_ParseParticles, Fix_ParseParticles_split_forward_backward_Actions, 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, IndependentFragmentGrids_IndividualZeroInstances, IndependentFragmentGrids_IntegrationTest, IndependentFragmentGrids_Sole_NN_Calculation, 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, TrajectoryDependenant_MaxOrder, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, Ubuntu_1604_changes, stable
- Children:
- e51f2c
- Parents:
- 028790
- git-author:
- Frederik Heber <heber@…> (05/26/16 09:51:07)
- git-committer:
- Frederik Heber <heber@…> (09/14/16 18:42:52)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/Fragmentation/Summation/SetValues/SamplingGrid.hpp ¶
r028790 r5b1e5e 20 20 #include "boost/serialization/export.hpp" 21 21 #include "boost/serialization/vector.hpp" 22 23 #include "LinearAlgebra/defs.hpp" 22 24 23 25 #include "Fragmentation/Summation/SetValues/SamplingGridProperties.hpp" … … 51 53 * \param _sampled_grid sample points 52 54 */ 53 SamplingGrid(const double _begin[ 3],54 const double _end[ 3],55 SamplingGrid(const double _begin[NDIM], 56 const double _end[NDIM], 55 57 const int _level, 56 58 const sampledvalues_t &_sampled_grid); … … 64 66 * \param _level number of grid points in \f$2^{\mathrm{level}}\f$ 65 67 */ 66 SamplingGrid(const double _begin[ 3],67 const double _end[ 3],68 SamplingGrid(const double _begin[NDIM], 69 const double _end[NDIM], 68 70 const int _level); 69 71 … … 211 213 * \param _end_window end of window 212 214 */ 213 void setWindow(const double _begin_window[ 3], const double _end_window[3]);215 void setWindow(const double _begin_window[NDIM], const double _end_window[NDIM]); 214 216 215 217 /** Helper function to convert begin_window and end_window that are w.r.t. … … 255 257 * \param _end end of window 256 258 */ 257 void setDomain(const double _begin[ 3], const double _end[3]);259 void setDomain(const double _begin[NDIM], const double _end[NDIM]); 258 260 259 261 /** Sets the size of the domain. … … 264 266 * \param _end end of domain 265 267 */ 266 void setDomainSize(const double _begin[ 3], const double _end[3]);268 void setDomainSize(const double _begin[NDIM], const double _end[NDIM]); 267 269 268 270 /** Extends the window while keeping the values. … … 271 273 * \param _end_window new end of window 272 274 */ 273 void extendWindow(const double _begin_window[ 3], const double _end_window[3]);275 void extendWindow(const double _begin_window[NDIM], const double _end_window[NDIM]); 274 276 275 277 /** Shrinks the window while keeping the values. … … 278 280 * \param _end_window new end of window 279 281 */ 280 void shrinkWindow(const double _begin_window[ 3], const double _end_window[3]);282 void shrinkWindow(const double _begin_window[NDIM], const double _end_window[NDIM]); 281 283 282 284 /** Adds another (smaller) window onto the one in this instance. … … 290 292 */ 291 293 void addOntoWindow( 292 const double _begin_window[ 3],293 const double _end_window[ 3],294 const double _begin_window[NDIM], 295 const double _end_window[NDIM], 294 296 const sampledvalues_t &_sampled_grid, 295 297 const double prefactor); … … 305 307 */ 306 308 void addIntoWindow( 307 const double _begin_window[ 3],308 const double _end_window[ 3],309 const double _begin_window[NDIM], 310 const double _end_window[NDIM], 309 311 const sampledvalues_t &_sampled_grid, 310 312 const double prefactor); … … 334 336 */ 335 337 void addWindowOntoWindow( 336 const double larger_wbegin[ 3],337 const double larger_wend[ 3],338 const double smaller_wbegin[ 3],339 const double smaller_wend[ 3],338 const double larger_wbegin[NDIM], 339 const double larger_wend[NDIM], 340 const double smaller_wbegin[NDIM], 341 const double smaller_wend[NDIM], 340 342 sampledvalues_t &dest_sampled_grid, 341 343 const sampledvalues_t &source_sampled_grid, … … 360 362 * \param _end_window end of window 361 363 */ 362 void setWindowSize(const double _begin_window[ 3], const double _end_window[3]);364 void setWindowSize(const double _begin_window[NDIM], const double _end_window[NDIM]); 363 365 364 366 public: … … 370 372 371 373 //!> start of the window relative to SamplingGridProperties::begin and SamplingGridProperties::size 372 double begin_window[ 3];374 double begin_window[NDIM]; 373 375 //!> end of the window relative to SamplingGridProperties::begin and SamplingGridProperties::size 374 double end_window[ 3];376 double end_window[NDIM]; 375 377 376 378 private: … … 384 386 ar & boost::serialization::base_object<SamplingGridProperties>(*this); 385 387 ar & const_cast< sampledvalues_t &>(sampled_grid); 386 for(size_t i=0;i< 3;++i) {388 for(size_t i=0;i<NDIM;++i) { 387 389 ar & begin_window[i]; 388 390 ar & end_window[i]; … … 391 393 392 394 //!> static typedef to use in cstor when no initial values are given 393 static const double zeroOffset[ 3];395 static const double zeroOffset[NDIM]; 394 396 }; 395 397
Note:
See TracChangeset
for help on using the changeset viewer.