Cantera/src/FalloffMgr.h
void pr_to_falloff(doublereal* values, const_workPtr work) {
            doublereal pr;
            int i;
            for (i = 0; i < m_n0; i++) {
                values[m_rxn0[i]] /= (1.0 + values[m_rxn0[i]]);
            }
            for (i = 0; i < m_n; i++) {
                pr = values[m_rxn[i]];
                values[m_rxn[i]] *= 
                    m_falloff[i]->F(pr, work + m_offset[i]) /(1.0 + pr);
            }
        }
/**
         * Given a vector of reduced pressures for each falloff reaction,
         * replace each entry by the value of the falloff function.
         */
Given a vector of reduced pressures for each falloff reaction,
replace each entry by the value of the falloff function.
Given a vector of reduced pressures for each falloff reaction replace each entry by the value of the falloff function .
void pr_to_falloff(doublereal* values, const_workPtr work) {
            doublereal pr;
            int i;
            for (i = 0; i < m_n0; i++) {
                values[m_rxn0[i]] /= (1.0 + values[m_rxn0[i]]);
            }
            for (i = 0; i < m_n; i++) {
                pr = values[m_rxn[i]];
                values[m_rxn[i]] *= 
                    m_falloff[i]->F(pr, work + m_offset[i]) /(1.0 + pr);
            }
        }
void pr_to_falloff ( doublereal * values , const_workPtr work ) { doublereal pr ; int i ; for ( i = 0 ; i < m_n0 ; i ++ ) { values [ m_rxn0 [ i ] ] /= ( 1.0 + values [ m_rxn0 [ i ] ] ) ; } for ( i = 0 ; i < m_n ; i ++ ) { pr = values [ m_rxn [ i ] ] ; values [ m_rxn [ i ] ] *= m_falloff [ i ] -> F ( pr , work + m_offset [ i ] ) / ( 1.0 + pr ) ; } }
Given a vector of reduced pressures for each falloff reaction,
 replace each entry by the value of the falloff function.
Given a vector of reduced pressures for each falloff reaction replace each entry by the value of the falloff function .