createTimes.H
Go to the documentation of this file.
1  Info<< "\nCreate databases as time" << endl;
2 
3  HashTable<string> srcOptions(args.options());
4  srcOptions.erase("case");
5  srcOptions.insert("case", fileName(rootDirSource/caseDirSource));
6 
7  argList argsSrc(args, srcOptions, false, false, false);
8  if (!argsSrc.checkRootCase())
9  {
10  FatalError.exit();
11  }
12 
13  Time runTimeSource(Time::controlDictName, argsSrc);
14 
15  Time runTimeTarget(Time::controlDictName, args);
const Foam::HashTable< string > & options() const
Return options.
Definition: argListI.H:96
void exit(const int errNo=1)
Exit : can be called for any error to exit program.
Definition: error.C:125
Time runTimeSource(Time::controlDictName, argsSrc)
Info<< "\nCreate databases as time"<< endl;HashTable< string > srcOptions(args.options())
Time runTimeTarget(Time::controlDictName, args)
argList argsSrc(args, srcOptions, false, false, false)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:257
messageStream Info
error FatalError
Foam::argList args(argc, argv)