Skip to content
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

keep prim coords in make_mapped_structure #13

Closed
wants to merge 1 commit into from

Conversation

xivh
Copy link
Contributor

@xivh xivh commented Nov 16, 2023

When I used make_mapped_structure, it set all of the basis sites to the origin.

xtal::SimpleStructure parent_structure;
parent_structure.lat_column_mat = prim.lattice().lat_column_mat();
parent_structure.atom_info.resize(prim.basis().size());
xtal::SimpleStructure parent_structure = make_simple_structure(prim);
Copy link
Collaborator

@bpuchala bpuchala Nov 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should avoid using make_simple_structure here in favor of just copying the prim basis site coordinates. I'd like this method to be clear that it is only dealing with isotropic atoms, strains, and displacements, and not bringing in any properties other than those brought in from unmapped_structure. It is hard to think through all the effects that make_simple_structure might have, so even if there are checks before and after I think it's easier to skip it.

bpuchala added a commit to bpuchala/CASMcode_mapping that referenced this pull request Nov 20, 2023
@bpuchala
Copy link
Collaborator

Thanks for raising this issue. I made the changes I described above.

@bpuchala bpuchala closed this Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants