00001 argList::validArgs.clear(); 00002 00003 argList::validArgs.append("master root"); 00004 argList::validArgs.append("master case"); 00005 argList::validOptions.insert("masterRegion", "name"); 00006 00007 argList::validArgs.append("root to add"); 00008 argList::validArgs.append("case to add"); 00009 argList::validOptions.insert("addRegion", "name"); 00010 00011 argList args(argc, argv); 00012 00013 if (!args.check()) 00014 { 00015 FatalError.exit(); 00016 } 00017 00018 fileName rootDirMaster(args.additionalArgs()[0]); 00019 fileName caseDirMaster(args.additionalArgs()[1]); 00020 word masterRegion = polyMesh::defaultRegion; 00021 args.optionReadIfPresent("masterRegion", masterRegion); 00022 00023 fileName rootDirToAdd(args.additionalArgs()[2]); 00024 fileName caseDirToAdd(args.additionalArgs()[3]); 00025 word addRegion = polyMesh::defaultRegion; 00026 args.optionReadIfPresent("addRegion", addRegion); 00027 00028 Info<< "Master: " << rootDirMaster << " " << caseDirMaster 00029 << " region " << masterRegion << nl 00030 << "mesh to add: " << rootDirToAdd << " " << caseDirToAdd 00031 << " region " << addRegion << endl; 00032 00033 // ************************ vim: set sw=4 sts=4 et: ************************ //