Ejemplo n.º 1
0
 status_t phase_getatomicweights_(const integer* n, doublereal* atw)
 {
     try {
         ThermoPhase* p = _fph(n);
         const vector_fp& wt = p->atomicWeights();
         copy(wt.begin(), wt.end(), atw);
     } catch (...) {
         return handleAllExceptions(-1, ERR);
     }
     return 0;
 }
Ejemplo n.º 2
0
 status_t DLL_EXPORT phase_getatomicweights_(const integer* n, doublereal* atw) {
     ThermoPhase* p = _fph(n);
     const vector_fp& wt = p->atomicWeights();
     copy(wt.begin(), wt.end(), atw);
     return 0;
 }