BUG: corrupt keywords in ensight binary
- regression introduced by ef9a14b288
This commit is contained in:
parent
ad4e8a1f76
commit
c133f98dda
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user