diff --git a/source/branches/CLASSV3/include/IsotopicVector.hxx b/source/branches/CLASSV3/include/IsotopicVector.hxx index 738d2580d563d995f1da3054834506c82de389c6..24e86e368e5e0dd77d961080decf1e0765a50560 100755 --- a/source/branches/CLASSV3/include/IsotopicVector.hxx +++ b/source/branches/CLASSV3/include/IsotopicVector.hxx @@ -92,6 +92,9 @@ public : void Add(const ZAI& zai, double quantity); //!< Add Quantity gramme of the ZAI Element void Add(const IsotopicVector& isotopicvector); //!< Add IsotopicVector to the existing IsotopicVector void Add(const map<ZAI ,double>& quantity); //!< Add IsotopicVector to the existing IsotopicVector + void Add(int Z, int A, in I, double quantity) + { (*this).Add(ZAI(Z,A,I), quantity); } //!< Add Quantity gramme of the ZAI Element + void Need(const ZAI& zai, double quantity); //!< Fill the fIsotopicQuantityNeeded void Need(const IsotopicVector& isotopicvector); //!< Fill the fIsotopicQuantityNeeded diff --git a/source/branches/CLASSV3/src/ZAI.cxx b/source/branches/CLASSV3/src/ZAI.cxx index 59a94275b4016e7a153db8c21a136b45da302043..31ee396359e8b42fec7c59268110d23b5b6ed09d 100755 --- a/source/branches/CLASSV3/src/ZAI.cxx +++ b/source/branches/CLASSV3/src/ZAI.cxx @@ -38,6 +38,14 @@ ZAI::ZAI() ZAI::ZAI(int Z, int A, int I) { + if( Z > A ) + { + cout << "!!!ERROR!!! " << "[" << __FILE__ << ":" << __FUNCTION__ << "]" << endl; + cout << "!!!ERROR!!! Z:" << Z << " is higher than A: " << A << endl; + cout << "!!!ERROR!!! CLASS did not manage yet anti-mater!!! Update comming soon !!!" << endl; + exit(1); + } + fZ=Z; fA=A; fI=I;