-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature ddi fix lattice constant #495
Merged
GPMueller
merged 14 commits into
spirit-code:develop
from
MSallermann:feature_ddi_fix_lattice_constant
Mar 22, 2019
Merged
Feature ddi fix lattice constant #495
GPMueller
merged 14 commits into
spirit-code:develop
from
MSallermann:feature_ddi_fix_lattice_constant
Mar 22, 2019
Conversation
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
- Added lattice constant scaling of bravais_vectors back to FFT_Dipole and Gradient_Direct
- added a lattice_constant of 2.77 instead of 1.0
- Fixed DDI Gradients by addin mu_s scaling
Codecov Report
@@ Coverage Diff @@
## develop #495 +/- ##
===========================================
- Coverage 51.51% 51.43% -0.08%
===========================================
Files 82 82
Lines 9473 9454 -19
===========================================
- Hits 4880 4863 -17
+ Misses 4593 4591 -2 |
MSallermann
force-pushed
the
feature_ddi_fix_lattice_constant
branch
from
March 18, 2019 19:47
c79be90
to
371b3fd
Compare
- fixed a typo that caused compiling errors in cuda version
- so that it is no longer scaled by the lattice constant - therefore changed DDI calculation and generate positions
- use arbitrary not normalized bravais vectors
- cu_write_fft_spin_input had a typo in its arguments
MSallermann
force-pushed
the
feature_ddi_fix_lattice_constant
branch
from
March 19, 2019 13:35
371b3fd
to
d8db09c
Compare
The cell_atoms and bravais_vectors are now both in units of the lattice_constant, meaning that several calculations had to be updated appropriately. The cell_atoms are now relative to the Bravais vectors, making it easier to re-generate a Geometry when changing parameters through the API. Where it makes sense, the relative positions were replaced by the absolute positions in order to avoid potential confusion. Also removed the quite redundant Geometry_Get_Translation_Vectors function. Also made whitespace changes in all edited files.
Please test the CUDA version once more after my changes and let me know if everything works as expected. |
The orthogonality between bravais vectors was not checked correctly.
- test_physics provides more information - changed timestep in solvers.cfg to 1e-3
- for the triangulation of the basis cell + next translations the corners of the parallelogram are now stretched outward from the center - avoids cases where the basis atoms lie on the boundary of the convex hull
This was referenced Mar 22, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
DDI:
mu_s != 1
,lattice_constant != 1
and non-normalized bravais-vectors)Geometry (maybe discuss if this makes sense):
geometry->cell_atoms
is now not longer scaled with the lattice_constant in the constructor of the geometry class.This makes the behaviour of the bravais vectors and basis vectors more uniform. This only changes how a distance is calculated within the code and nothing for the user!
Before it was:
dist = lattice_constant * ( da * bravais_vector[0] + ... ) + cell_atoms[i]
now it is:
dist = lattice_constant * ( da * bravais_vector[0] + ... + cell_atoms[i] )
Other: