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_)
|
if (allowUndef_)
|
||||||
{
|
{
|
||||||
write(string(key + " undef"));
|
write(string(static_cast<const string&>(key) + " undef"));
|
||||||
newline();
|
newline();
|
||||||
write(undefValue_);
|
write(undefValue_);
|
||||||
newline();
|
newline();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
write(key);
|
// ensure we get ensightFile::write(const string&)
|
||||||
|
write(static_cast<const string&>(key));
|
||||||
newline();
|
newline();
|
||||||
}
|
}
|
||||||
return *this;
|
return *this;
|
||||||
|
@ -74,7 +74,8 @@ Foam::ensightGeoFile::~ensightGeoFile()
|
|||||||
|
|
||||||
Foam::Ostream& Foam::ensightGeoFile::writeKeyword(const keyType& key)
|
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;
|
return *this;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user