mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: git merge with master conflict resolution
This commit is contained in:
@ -934,18 +934,31 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
char* linePtr = readline("readline>");
|
||||
|
||||
rawLine = string(linePtr);
|
||||
|
||||
if (*linePtr)
|
||||
if (linePtr)
|
||||
{
|
||||
add_history(linePtr);
|
||||
write_history(historyFile);
|
||||
}
|
||||
rawLine = string(linePtr);
|
||||
|
||||
free(linePtr); // readline uses malloc, not new.
|
||||
if (*linePtr)
|
||||
{
|
||||
add_history(linePtr);
|
||||
write_history(historyFile);
|
||||
}
|
||||
|
||||
free(linePtr); // readline uses malloc, not new.
|
||||
}
|
||||
else
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
# else
|
||||
{
|
||||
if (!std::cin.good())
|
||||
{
|
||||
Info<< "End of cin" << endl;
|
||||
// No error.
|
||||
break;
|
||||
}
|
||||
Info<< "Command>" << flush;
|
||||
std::getline(std::cin, rawLine);
|
||||
}
|
||||
|
||||
@ -68,13 +68,13 @@ namespace Foam
|
||||
|
||||
functionObjectList fol(runTime, dict);
|
||||
fol.start();
|
||||
fol.execute();
|
||||
fol.execute(true); // override outputControl - force writing
|
||||
}
|
||||
else
|
||||
{
|
||||
functionObjectList fol(runTime);
|
||||
fol.start();
|
||||
fol.execute();
|
||||
fol.execute(true); // override outputControl - force writing
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user