#define XERR
#include "survival.ih"

    // determine the row of d_vsdMatrix to use by finding the rowindex in s3
    // containing 'diameter' and then computing the lowest column index
    // in that row exceeding a random proportion value. That index becomes
    // d_vsdRow. 
void Survival::cptVSDrow(double diameter)
{
     d_vsdRow = ProbGroup::probIndexOf(
                                    d_s3, 
                                    diameter, 
                                    Random::instance().uniformCase()
                                );

// diameter displayed by tumor/characteristics.cc
//    xerr("d_vsdRow = " << d_vsdRow);
}
