Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
8ab37e13
Commit
8ab37e13
authored
Feb 12, 2020
by
mattijs
Browse files
ENH: foamFormatConvert: leave boundary intact. Fixes
#1358
.
parent
8e63f084
Changes
1
Hide whitespace changes
Inline
Side-by-side
applications/utilities/miscellaneous/foamFormatConvert/foamFormatConvert.C
View file @
8ab37e13
...
...
@@ -90,7 +90,13 @@ namespace Foam
// Hack to do zones which have Lists in them. See above.
bool
writeZones
(
const
word
&
name
,
const
fileName
&
meshDir
,
Time
&
runTime
)
bool
writeZones
(
const
word
&
name
,
const
fileName
&
meshDir
,
Time
&
runTime
,
const
IOstreamOption
::
compressionType
compression
)
{
IOobject
io
(
...
...
@@ -156,7 +162,7 @@ bool writeZones(const word& name, const fileName& meshDir, Time& runTime)
(
IOstream
::
ASCII
,
IOstream
::
currentVersion
,
runTime
.
writeC
ompression
()
,
c
ompression
,
true
);
}
...
...
@@ -330,7 +336,7 @@ int main(int argc, char *argv[])
writeMeshObject
<
pointIOField
>
(
"points"
,
meshDir
,
runTime
);
// Write boundary in ascii. This is only needed for fileHandler to
// kick in. Should not give problems since always writing ascii.
writeZones
(
"boundary"
,
meshDir
,
runTime
);
writeZones
(
"boundary"
,
meshDir
,
runTime
,
IOstreamOption
::
UNCOMPRESSED
);
writeMeshObject
<
labelIOList
>
(
"pointProcAddressing"
,
meshDir
,
runTime
);
writeMeshObject
<
labelIOList
>
(
"faceProcAddressing"
,
meshDir
,
runTime
);
writeMeshObject
<
labelIOList
>
(
"cellProcAddressing"
,
meshDir
,
runTime
);
...
...
@@ -353,9 +359,11 @@ int main(int argc, char *argv[])
{
// Only do zones when converting from binary to ascii
// The other way gives problems since working on dictionary level.
writeZones
(
"cellZones"
,
meshDir
,
runTime
);
writeZones
(
"faceZones"
,
meshDir
,
runTime
);
writeZones
(
"pointZones"
,
meshDir
,
runTime
);
const
IOstreamOption
::
compressionType
compress
=
runTime
.
writeCompression
();
writeZones
(
"cellZones"
,
meshDir
,
runTime
,
compress
);
writeZones
(
"faceZones"
,
meshDir
,
runTime
,
compress
);
writeZones
(
"pointZones"
,
meshDir
,
runTime
,
compress
);
}
// Get list of objects from the database
...
...
Kutalmış Berçin
@kuti
mentioned in issue
#1358 (closed)
·
Jul 06, 2021
mentioned in issue
#1358 (closed)
mentioned in issue #1358
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment