Skip to content

A problem is encountered when getting the information of the composition of a material #108

Answered by tkittel
YangNi20 asked this question in Q&A
Discussion options

You must be logged in to vote

Dear Ni Yang,

So in short, the assertion is triggered when you are asking an element (oxygen, which has more than one natural isotope) for it's A value (number of nucleons). Although in some contexts one can talk about A values of elements (i.e. number of nucleons averaged over the isotopes present in the element), the function you are calling is returning an integral value and is only meant to be used for actual isotopes, like O16, O18, etc.

If you look at the documentation (the comments in the header file NCAtomData.hh) for the method in question, you will see that this is indeed mentioned:

  class NCRYSTAL_API AtomData : public UniqueID {
  public:
    //...
    //Type (as boolean chec…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@YangNi20
Comment options

Answer selected by YangNi20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants