Skip to content

Commit

Permalink
Core: implemented Hamiltonian getters for Exchange and DMI pairs.
Browse files Browse the repository at this point in the history
Note: there is still no getter for DMI pairs, only for the number of DMI pairs.
  • Loading branch information
GPMueller committed Feb 21, 2021
1 parent 692bdd6 commit 1a5bb7f
Show file tree
Hide file tree
Showing 2 changed files with 404 additions and 414 deletions.
2 changes: 1 addition & 1 deletion core/include/Spirit/Hamiltonian.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ PREFIX void Hamiltonian_Get_Exchange_Shells(State *state, int * n_shells, float
// Returns the number of exchange interaction pairs
PREFIX int Hamiltonian_Get_Exchange_N_Pairs(State *state, int idx_image=-1, int idx_chain=-1) SUFFIX;

PREFIX void Hamiltonian_Get_Exchange_Pairs(State *state, float * idx[2], float * translations[3], float * Jij, int idx_image=-1, int idx_chain=-1) SUFFIX;
PREFIX void Hamiltonian_Get_Exchange_Pairs(State *state, int idx[][2], int translations[][3], float * Jij, int idx_image=-1, int idx_chain=-1) SUFFIX;

/*
Retrieves the Dzyaloshinskii-Moriya interaction in terms of neighbour shells.
Expand Down
Loading

0 comments on commit 1a5bb7f

Please sign in to comment.