Example #1
0
// ============= edit sakakura ============
void Algorithm::set_alg(int ix) {
    SPROP.setLabel("Algorithm::SPROP");
    IPROP.setLabel("Algorithm::IPROP");
    VPROP.setLabel("Algorithm::VPROP");

    // == edit sakakura ==
    MXNIC1=0;
    // == edit sakakura ==

    //char* FNAME="algorithm.xml";

    stringstream ss;
    ss << ix << ".xml";
    //  char* xxx ;

    //  string zzz = ss.str();

    //
    //  if (DEBUG) printf("\nAlgorithm::Algorithm> Start.\n");
    //  X.initialize( FNAME );
    X.initialize(ss.str().c_str() );
    read();
    initialize();

    //  if (DEBUG) printf("Algorithm::Algorithm> End.\n");
}
Example #2
0
 VertexProperty() {
     STYPE.setLabel("VertexProperty::STYPE");
     IC.setLabel("VertexProperty::IC");
     _IC.setLabel("VertexProperty::_IC");
     StateCode.setLabel("VertexProperty::StateCode");
     SCNK.setLabel("VertexProperty::StateCode4NON-KINK");
 };
Example #3
0
inline Algorithm::Algorithm(char* FNAME) {
    SPROP.setLabel("Algorithm::SPROP");
    IPROP.setLabel("Algorithm::IPROP");
    VPROP.setLabel("Algorithm::VPROP");

    if (DEBUG) printf("\nAlgorithm::Algorithm> Start.\n");
    X.initialize( FNAME ); //pass2 //xml::Block X

    // == edit sakakura ==
    int ixx =  X["General"]["NXMAX" ].getInteger();
    MXNIC1=24*(ixx-1)*(ixx-1);
    // == edit sakakura ==

    read();
    initialize();

    if (DEBUG) printf("Algorithm::Algorithm> End.\n");
}
Example #4
0
 InteractionProperty() {
     STYPE.setLabel("InteractionProperty::STYPE");
     VertexDensity.setLabel("InteractionProperty::VertexDensity");
     AverageInterval.setLabel("InteractionProperty::AverageInterval");
 };
Example #5
0
 SiteProperty() {
     IC.setLabel("SiteProperty::IC");
 };
Example #6
0
 SiteInitialConfiguration()  {
     CH.setLabel("SiteInitialConfiguration::CH");
 };
Example #7
0
 VertexInitialConfiguration() {
     ID = -1;
     CH.setLabel("VertexInitialConfiguration::CH");
 };