-
Notifications
You must be signed in to change notification settings - Fork 525
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
- Loading branch information
1 parent
dac7a76
commit d3befec
Showing
5 changed files
with
178 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,29 @@ | ||
// SPDX-License-Identifier: LGPL-3.0-or-later | ||
#include <torch/script.h> | ||
#ifndef COMMON_H | ||
#define COMMON_H | ||
#include <iostream> | ||
#include <cstdlib> | ||
#include <cstdint> | ||
#include <cstdlib> | ||
#include <iostream> | ||
#include <vector> | ||
#include "neighbor_list.h" | ||
|
||
#include "neighbor_list.h" | ||
|
||
struct NeighborListData { | ||
/// Array stores the core region atom's index | ||
std::vector<int> ilist; | ||
/// Array stores the core region atom's neighbor index | ||
//std::vector<std::vector<int>> jlist; | ||
int *jlist; | ||
// std::vector<std::vector<int>> jlist; | ||
int* jlist; | ||
/// Array stores the number of neighbors of core region atoms | ||
std::vector<int> numneigh; | ||
/// Array stores the the location of the first neighbor of core region atoms | ||
std::vector<int*> firstneigh; | ||
|
||
public: | ||
void copy_from_nlist(const InputNlist& inlist, int& max_num_neighbors,int nnei); | ||
//void make_inlist(InputNlist& inlist); | ||
void copy_from_nlist(const InputNlist& inlist, | ||
int& max_num_neighbors, | ||
int nnei); | ||
// void make_inlist(InputNlist& inlist); | ||
}; | ||
#endif | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.