mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: corrupt keywords in ensight binary
- regression introduced by ef9a14b288
This commit is contained in:
@ -282,14 +282,15 @@ Foam::Ostream& Foam::ensightFile::writeKeyword(const keyType& key)
|
||||
{
|
||||
if (allowUndef_)
|
||||
{
|
||||
write(string(key + " undef"));
|
||||
write(string(static_cast<const string&>(key) + " undef"));
|
||||
newline();
|
||||
write(undefValue_);
|
||||
newline();
|
||||
}
|
||||
else
|
||||
{
|
||||
write(key);
|
||||
// ensure we get ensightFile::write(const string&)
|
||||
write(static_cast<const string&>(key));
|
||||
newline();
|
||||
}
|
||||
return *this;
|
||||
|
||||
@ -74,7 +74,8 @@ Foam::ensightGeoFile::~ensightGeoFile()
|
||||
|
||||
Foam::Ostream& Foam::ensightGeoFile::writeKeyword(const keyType& key)
|
||||
{
|
||||
write(key); newline();
|
||||
// ensure we get ensightFile::write(const string&)
|
||||
write(static_cast<const string&>(key)); newline();
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user