Skip to content

Commit 96d18e5

Browse files
committed
Add support for parsing lines starting with (cad in fluent msh files.
- This will fix the fatal error: "Do not understand characters:[ on line **** From function .."
1 parent 4734b52 commit 96d18e5

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

applications/utilities/dfFluent3DMeshToFoam/fluent3DMeshToFoam.L

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,11 @@ endOfSection {space}")"{space}
694694
yy_push_state(ignoreBlock);
695695
}
696696
697+
{lbrac}{alpha}[^ \t\n\r\f()]* {
698+
// Handles scheme-style blocks with alphabetic names, e.g. (cad/adv-options ...)
699+
yy_push_state(ignoreBlock);
700+
}
701+
697702
<ignoreBlock,ignoreEmbeddedBlock>{space}{quote}{text}{quote} {
698703
}
699704
@@ -705,6 +710,15 @@ endOfSection {space}")"{space}
705710
706711
}
707712
713+
<ignoreBlock,ignoreEmbeddedBlock>"[" {
714+
// Handle Scheme-style square bracket blocks
715+
yy_push_state(ignoreEmbeddedBlock);
716+
}
717+
718+
<ignoreBlock,ignoreEmbeddedBlock>"]" {
719+
yy_pop_state();
720+
}
721+
708722
<ignoreBlock,ignoreEmbeddedBlock>{space}{endOfSection} {
709723
yy_pop_state();
710724
}

0 commit comments

Comments
 (0)