25#include "rgpot/LennardJones/LJClusterPot.hpp"
26#include "rgpot/LennardJones/LJPot.hpp"
27#include "rgpot/Morse/MorsePot.hpp"
28#include "rgpot/ZBL/ZBLPot.hpp"
29#include "rgpot/fortran/FortranPots.hpp"
31#if defined(__has_include) && __has_include("rgpot/UmaPot/UmaPot.hpp")
32#include "rgpot/UmaPot/UmaPot.hpp"
34#if defined(__has_include) && __has_include("rgpot/Water/WaterPots.hpp")
35#include "rgpot/Water/WaterPots.hpp"
37#if defined(__has_include) && __has_include("rgpot/EAM/EAMPot.hpp")
38#include "rgpot/EAM/EAMPot.hpp"
40#if defined(__has_include) && __has_include("rgpot/EMT/EMTPot.hpp")
41#include "rgpot/EMT/EMTPot.hpp"
75 static constexpr double range(
const RPot &)
noexcept {
return 0.0; }
80 if (!(range > 0.0) || !std::isfinite(range)) {
91 static double range(
const rgpot::LJPot &
pot)
noexcept {
92 return pot.config().cutoff;
101 static double range(
const rgpot::LJClusterPot &
pot)
noexcept {
102 return pot.config().cutoff;
111 static double range(
const rgpot::MorsePot &
pot)
noexcept {
112 return pot.config().cutoff;
122 static double range(
const rgpot::ZBLPot &
pot)
noexcept {
123 return pot.config().cut_global;
133 static constexpr double range(
const rgpot::fortranpots::EAMAlPot &)
noexcept {
146 static constexpr double range(
const rgpot::fortranpots::SWPot &)
noexcept {
156 static constexpr double
157 range(
const rgpot::fortranpots::TersoffPot &)
noexcept {
168 static constexpr double range(
const rgpot::fortranpots::EDIPPot &)
noexcept {
178 static constexpr double
179 range(
const rgpot::fortranpots::LenoskyPot &)
noexcept {
195 static constexpr double range(
const rgpot::fortranpots::FeHePot &)
noexcept {
205 static constexpr double range(
const rgpot::fortranpots::CuH2Pot &)
noexcept {
215 static constexpr double
216 range(
const rgpot::fortranpots::WaterHPot &)
noexcept {
221#if defined(__has_include) && __has_include("rgpot/UmaPot/UmaPot.hpp")
225template <>
struct HessianRangeOf<rgpot::UmaPot> {
228 static constexpr double range(
const rgpot::UmaPot &)
noexcept {
return 0.0; }
232#if defined(__has_include) && __has_include("rgpot/Water/WaterPots.hpp")
242 static constexpr double range(
const rgpot::TIP4PPot &)
noexcept {
250 static constexpr double range(
const rgpot::SPCEPot &)
noexcept {
258 static constexpr double range(
const rgpot::TIP4PPtPot &)
noexcept {
264#if defined(__has_include) && __has_include("rgpot/EAM/EAMPot.hpp")
271 static constexpr double range(
const rgpot::EAMPot &)
noexcept {
277#if defined(__has_include) && __has_include("rgpot/EMT/EMTPot.hpp")
285 static constexpr double range(
const rgpot::EMTPot &)
noexcept {
return 0.0; }
RAII resource manager for the ARTn C library with global synchronization.
double acceptedHessianRange(double range) noexcept
Drop a non-positive or non-finite range so coloring stays off.
HessianLocality
How a kernel's energy couples atoms, which fixes the Hessian range.
@ Unknown
No proven finite range. Coloring stays off.
@ AtomCentred
Atom-centred many-body (EAM, Gupta, bond order, three-body).
@ MolecularSite
Molecular site model.
@ Pair
Pair potential. Blocks vanish beyond the interaction cutoff.
@ MessagePassing
Message passing.
static double range(const rgpot::LJClusterPot &pot) noexcept
static constexpr double interactionCutoff
config().cutoff is chosen per potential, so there is no compile-time cutoff.
static constexpr HessianLocality locality
static constexpr HessianLocality locality
static constexpr double interactionCutoff
config().cutoff is chosen per potential, so there is no compile-time cutoff.
static double range(const rgpot::LJPot &pot) noexcept
static constexpr HessianLocality locality
static double range(const rgpot::MorsePot &pot) noexcept
static constexpr double interactionCutoff
config().cutoff is chosen per potential, so there is no compile-time cutoff.
static double range(const rgpot::ZBLPot &pot) noexcept
static constexpr HessianLocality locality
static constexpr double interactionCutoff
cut_global is a config field. range() returns that runtime value.
static constexpr HessianLocality locality
static constexpr double interactionCutoff
static constexpr double range(const rgpot::fortranpots::CuH2Pot &) noexcept
static constexpr HessianLocality locality
static constexpr double interactionCutoff
static constexpr double range(const rgpot::fortranpots::EAMAlPot &) noexcept
static constexpr double interactionCutoff
static constexpr double range(const rgpot::fortranpots::EDIPPot &) noexcept
static constexpr HessianLocality locality
static constexpr double kMaxPair
static constexpr HessianLocality locality
static constexpr double kMaxDensity
static constexpr double range(const rgpot::fortranpots::FeHePot &) noexcept
static constexpr double interactionCutoff
Neighbour-table cutoff, fehe_cutoff(). The block range is wider.
static constexpr double range(const rgpot::fortranpots::LenoskyPot &) noexcept
static constexpr double interactionCutoff
static constexpr HessianLocality locality
static constexpr double range(const rgpot::fortranpots::SWPot &) noexcept
static constexpr double interactionCutoff
static constexpr HessianLocality locality
static constexpr double kSigma
static constexpr double kAlpha
static constexpr double interactionCutoff
static constexpr HessianLocality locality
static constexpr double range(const rgpot::fortranpots::TersoffPot &) noexcept
static constexpr double interactionCutoff
static constexpr double range(const rgpot::fortranpots::WaterHPot &) noexcept
static constexpr HessianLocality locality
Reported Hessian range for one rgpot kernel type.
static constexpr double range(const RPot &) noexcept
static constexpr HessianLocality locality
static constexpr double interactionCutoff
Interaction cutoff the range is built from.