ISstream: Corrected parsing of variables
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -48,9 +48,9 @@ int main(int argc, char *argv[])
|
||||
|
||||
{
|
||||
dictionary dict;
|
||||
dict.add("aaOPENMPIcc", 1);
|
||||
dict.add("aaOpenFOAMcc", 1);
|
||||
|
||||
string s("DDD${aa${WM_MPLIB}cc}EEE");
|
||||
string s("DDD${aa${WM_PROJECT}cc}EEE");
|
||||
stringOps::inplaceExpand(s, dict, true, false);
|
||||
Info<< "variable expansion:" << s << endl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user