TUT: incorrect regex escaping in fvSchemes

- error trapped by C++11 regex
This commit is contained in:
Mark Olesen
2019-05-30 14:26:15 +02:00
committed by Andrew Heather
parent be3efed44b
commit db0678bf0e
3 changed files with 17 additions and 13 deletions

View File

@ -14,6 +14,10 @@
( false "(U|k|epsilon)" "alpha" ) ( false "(U|k|epsilon)" "alpha" )
( true "ab.*" "abc" ) ( true "ab.*" "abc" )
( true ".*" "abc" ) ( true ".*" "abc" )
( true "div\(phi,alpha.*)" "div(phi,alpha.gas)" ) // quoting error
( true "div\(phi,alpha.*\)" "div(phi,alpha.gas)" )
( true "div\(phi,alpha\..*\)" "div(phi,alpha.gas)" )
) )
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -31,8 +31,8 @@ divSchemes
"div\(phi,alpha.*\)" Gauss vanLeer; "div\(phi,alpha.*\)" Gauss vanLeer;
"div\(phir,alpha.*\)" Gauss linear; "div\(phir,alpha.*\)" Gauss linear;
"div\(Yiphir,alpha.*)" Gauss linear; "div\(Yiphir,alpha.*\)" Gauss linear;
"div\(phi,.*.gas*\)" Gauss vanLeer; "div\(phi,.*\.gas.*\)" Gauss vanLeer;
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear; div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;

View File

@ -35,10 +35,10 @@ divSchemes
"div\(phir,alpha.*\)" Gauss linear; "div\(phir,alpha.*\)" Gauss linear;
"div\(phi,alpha.*\)" Gauss vanLeer; "div\(phi,alpha.*\)" Gauss vanLeer;
"div\(Yiphir,alpha.*)" Gauss vanLeer; "div\(Yiphir,alpha.*\)" Gauss vanLeer;
"div\(phi,.*.gas*\)" Gauss vanLeer; "div\(phi,.*\.gas.*\)" Gauss vanLeer;
"div\(phi,.*.liquid*\)" Gauss vanLeer; "div\(phi,.*\.liquid.*\)" Gauss vanLeer;
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear; div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;