ENH: more consistent use of endEntry (issue #3035)

- enables capturing of end entry as an event
This commit is contained in:
Mark Olesen
2023-12-04 11:30:00 +00:00
parent 2de1a26c7b
commit 09fdeaa38a
24 changed files with 145 additions and 115 deletions

View File

@ -5,7 +5,7 @@
\\ / A nd | www.openfoam.com
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2020-2021 OpenCFD Ltd.
Copyright (C) 2020-2023 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -469,7 +469,7 @@ int main(int argc, char *argv[])
os.writeEntry("degrees", "false");
os << nl;
os << "response" << nl;
os << '(' << nl;
os << token::BEGIN_LIST << nl;
}
else
{
@ -511,7 +511,8 @@ int main(int argc, char *argv[])
{
auto& os = *osPtr;
os << ')' << token::END_STATEMENT << nl;
os << token::END_LIST;
os.endEntry();
IOobject::writeEndDivider(os);