Download model/comp_surface/tools/transfer/APBS-3.4.1.Linux/include/tabi/molecule.h from OneScience-Group/SurfDock: direct link, hf CLI and curl.
- Browser
- Download file 1.57 kB
-
https://huggingface.co/OneScience-Group/SurfDock/resolve/main/model/comp_surface/tools/transfer/APBS-3.4.1.Linux/include/tabi/molecule.h
- Command line
-
hf download hf://OneScience-Group/SurfDock/model/comp_surface/tools/transfer/APBS-3.4.1.Linux/include/tabi/molecule.h
-
curl -L -o molecule.h https://huggingface.co/OneScience-Group/SurfDock/resolve/main/model/comp_surface/tools/transfer/APBS-3.4.1.Linux/include/tabi/molecule.h
1.57 kB
| struct Timers_Molecule; | |
| class Molecule | |
| { | |
| private: | |
| const struct Params& params_; | |
| struct Timers_Molecule& timers_; | |
| std::size_t num_atoms_; | |
| std::vector<double> coords_; | |
| std::vector<double> charge_; | |
| std::vector<double> radius_; | |
| double coulombic_energy_; | |
| public: | |
| Molecule(struct Params&, struct Timers_Molecule&); | |
| ~Molecule() = default; | |
| Molecule(Valist*, struct Params&, struct Timers_Molecule&); | |
| void build_xyzr_file() const; | |
| std::size_t num_atoms() const { return num_atoms_; }; | |
| double coulombic_energy() const { return coulombic_energy_; }; | |
| const double* coords_ptr() const { return coords_.data(); }; | |
| const double* charge_ptr() const { return charge_.data(); }; | |
| const double* radius_ptr() const { return radius_.data(); }; | |
| void compute_coulombic_energy(); | |
| void copyin_to_device() const; | |
| void delete_from_device() const; | |
| }; | |
| struct Timers_Molecule | |
| { | |
| Timer ctor; | |
| Timer compute_coulombic_energy; | |
| Timer build_xyzr_file; | |
| Timer copyin_to_device; | |
| Timer delete_from_device; | |
| void print() const; | |
| std::string get_durations() const; | |
| std::string get_headers() const; | |
| Timers_Molecule() = default; | |
| ~Timers_Molecule() = default; | |
| }; | |