コード例 #1
0
ファイル: FACPreconditioner.cpp プロジェクト: sheryjoe/IBAMR
void
FACPreconditioner::getFromInput(
    tbox::Pointer<tbox::Database> db)
{
    if (!db) return;

    if (db->keyExists("cycle_type")) setMGCycleType(string_to_enum<MGCycleType>(db->getString("cycle_type")));
    if (db->keyExists("num_pre_sweeps")) setNumPreSmoothingSweeps(db->getInteger("num_pre_sweeps"));
    if (db->keyExists("num_post_sweeps")) setNumPostSmoothingSweeps(db->getInteger("num_post_sweeps"));
    if (db->keyExists("enable_logging")) setLoggingEnabled(db->getBool("enable_logging"));
    return;
}// getFromInput