mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: change wordRes to be a List of wordRe instead of a wrapper (issue #259)
- this permits direct storage of a list with additional matcher capabilities - provide wordRes::matcher class for similar behaviour as previously
This commit is contained in:
@ -446,7 +446,7 @@ int main(int argc, char *argv[])
|
||||
forAll(times, timei)
|
||||
{
|
||||
word instance;
|
||||
if (args.found("instance"))
|
||||
if (args.readIfPresent("instance", instance))
|
||||
{
|
||||
if (times.size() > 1)
|
||||
{
|
||||
@ -454,8 +454,6 @@ int main(int argc, char *argv[])
|
||||
<< "Multiple times selected with 'instance' option"
|
||||
<< exit(FatalError);
|
||||
}
|
||||
|
||||
args.lookup("instance")() >> instance;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user