eOn 3.2.0
Long-timescale dynamics: aKMC, NEB, parallel replica
☾
Toggle main menu visibility
Loading...
Searching...
No Matches
CutoffNeighbors.h
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSD-3-Clause
2
#pragma once
3
#include <array>
4
#include <cstddef>
5
#include <vector>
6
7
namespace
eonc
{
8
struct
CutoffPair
{
9
int
first
;
10
int
second
;
11
std::array<int, 3>
shift
;
12
double
distanceSquared
;
13
};
14
// Fully periodic atom-image rows; d = R_j - R_i + shift * cell.
15
std::vector<CutoffPair>
periodicCutoffNeighbors
(
const
double
*positions,
16
size_t
atoms,
17
const
double
*rowMajorCell,
18
double
cutoff,
19
bool
full =
true
);
20
}
// namespace eonc
eonc
RAII resource manager for the ARTn C library with global synchronization.
Definition
ARTnSaddleSearch.cpp:23
eonc::periodicCutoffNeighbors
std::vector< CutoffPair > periodicCutoffNeighbors(const double *positions, size_t atoms, const double *cell, double cutoff, bool full)
Definition
LinkCellNeighbors.cpp:6
eonc::CutoffPair
Definition
CutoffNeighbors.h:8
eonc::CutoffPair::shift
std::array< int, 3 > shift
Definition
CutoffNeighbors.h:11
eonc::CutoffPair::first
int first
Definition
CutoffNeighbors.h:9
eonc::CutoffPair::second
int second
Definition
CutoffNeighbors.h:10
eonc::CutoffPair::distanceSquared
double distanceSquared
Definition
CutoffNeighbors.h:12
include
eon
CutoffNeighbors.h
Generated by
1.17.0
Generated by
Doxygen 1.17.0
Analytics by
Antics
provided by
TurtleTech ehf