- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/PotentialAction/FitPotentialAction.def
r0ea063 r95cfac 18 18 #include "Parameters/Validators/Specific/ElementValidator.hpp" 19 19 #include "Parameters/Validators/Specific/EmptyStringValidator.hpp" 20 #include "Parameters/Validators/Specific/FileSuffixValidator.hpp" 21 #include "Parameters/Validators/Specific/FilePresentValidator.hpp" 20 22 #include "Parameters/Validators/Specific/PotentialTypeValidator.hpp" 21 23 … … 23 25 // ValueStorage by the token "Z" -> first column: int, Z, "Z" 24 26 // "undefine" if no parameters are required, use (NOPARAM_DEFAULT) for each (undefined) default value 25 #define paramtypes (boost::filesystem::path)(std::string)( std::vector<const element *>)(std::vector<const element *>)(unsigned int)(double)26 #define paramtokens ("training-file")("potential-type")("potential- charges")("fragment-charges")("take-best-of")("set-threshold")27 #define paramdescriptions ("optional file to write training data to")("potential type to fit")(" charges specifying the potential")("charges specifying the fragment")("take the best among this many approximations")("Require L2 error to be smaller than threshold, overrides number of attempts")28 #define paramdefaults (PARAM_DEFAULT(""))(NOPARAM_DEFAULT)(NOPARAM_DEFAULT)(NOPARAM_DEFAULT)( PARAM_DEFAULT(3))(PARAM_DEFAULT(1.))29 #define paramreferences (training_file)(potentialtype)( charges)(fragment)(best_of_howmany)(threshold)27 #define paramtypes (boost::filesystem::path)(std::string)(boost::filesystem::path)(std::vector<const element *>)(std::vector<const element *>)(unsigned int)(double) 28 #define paramtokens ("training-file")("potential-type")("potential-file")("potential-charges")("fragment-charges")("take-best-of")("set-threshold") 29 #define paramdescriptions ("optional file to write training data to")("potential type to fit")("optional potential file specifying multiple potentials to fit")("charges specifying the potential")("charges specifying the fragment")("take the best among this many approximations")("Require L2 error to be smaller than threshold, overrides number of attempts") 30 #define paramdefaults (PARAM_DEFAULT(""))(NOPARAM_DEFAULT)(NOPARAM_DEFAULT)(NOPARAM_DEFAULT)(NOPARAM_DEFAULT)(PARAM_DEFAULT(3))(PARAM_DEFAULT(1.)) 31 #define paramreferences (training_file)(potentialtype)(potential_file)(charges)(fragment)(best_of_howmany)(threshold) 30 32 #define paramvalids \ 31 33 (DummyValidator<boost::filesystem::path>()) \ 32 (PotentialTypeValidator()) \ 34 (EmptyStringValidator() || PotentialTypeValidator()) \ 35 (!FilePresentValidator() || FileSuffixValidator("potentials")) \ 33 36 (STLVectorValidator< std::vector<const element *> >(0,99, ElementValidator())) \ 34 37 (STLVectorValidator< std::vector<const element *> >(1,99, ElementValidator())) \
Note:
See TracChangeset
for help on using the changeset viewer.