Loading...
Searching...
No Matches
MetatomicPotential.cpp File Reference
#include "eon/potentials/Metatomic/MetatomicPotential.h"
#include "eon/Parameters.h"
#include "eon/fpe_handler.h"
#include "vesin.h"
#include <torch/csrc/jit/runtime/graph_executor.h>
#include <cstdint>
#include <random>
#include <sstream>
#include <string>
#include <vector>

Go to the source code of this file.

Functions

static torch::optional< std::string > normalize_variant (const std::string &s)

Function Documentation

◆ normalize_variant()

torch::optional< std::string > normalize_variant ( const std::string & s)
static

Definition at line 52 of file MetatomicPotential.cpp.

52 {
53 if (s.empty() || s == "off")
54 return torch::nullopt;
55 return s;
56}