Provide struct and interfaces for input parameters.
Easier interfaces for getting parameters
- Note
- it is a better manner but only suits std=c++2a:
template <typename T>
double get(const std::string& key, const std::string& loc = "", const
T& default_value = T());
template <phys::dimension7 qdim>
double get(const std::string& key, const std::string& loc = "", const
double& default_value = double());
- Author
- Xin He
- Date
- 2024-03
- Version
- 1.0
- Copyright
- GNU Lesser General Public License (LGPL)
Copyright (c) 2024 Xin He, Liu-Group
This software is a product of Xin's PhD research conducted by Professor Liu's Group at the College of Chemistry and Molecular Engineering, Peking University. All rights are reserved by Peking University. You should have received a copy of the GNU Lesser General Public License along with this software. If not, see https://www.gnu.org/licenses/lgpl-3.0.en.html
- revision:
Date | Description |
2024-03-29 | Initial version. Added detailed commentary by ChatGPT. |
Definition in file Param.h.