diff options
author | Sebastián Barschkis <sebbas@sebbas.org> | 2020-02-19 20:58:09 +0300 |
---|---|---|
committer | Sebastián Barschkis <sebbas@sebbas.org> | 2020-02-19 20:58:48 +0300 |
commit | 888d180164004d121511609da044ea86c3aa9cb0 (patch) | |
tree | 217442311b8023be7aa609344fbd312e28d0c2e7 /extern/mantaflow/preprocessed/particle.cpp | |
parent | 04b7f052e14ee6ff09b5cc4c85a76c4c5a1b0383 (diff) |
Fluid: Updated manta pp files
Updates in the files include:
- New manta files now use an platform independent gzopen function
- Adjusted argument name for vorticity
Diffstat (limited to 'extern/mantaflow/preprocessed/particle.cpp')
-rw-r--r-- | extern/mantaflow/preprocessed/particle.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extern/mantaflow/preprocessed/particle.cpp b/extern/mantaflow/preprocessed/particle.cpp index 478f1417109..41af5d3ba81 100644 --- a/extern/mantaflow/preprocessed/particle.cpp +++ b/extern/mantaflow/preprocessed/particle.cpp @@ -182,7 +182,7 @@ void BasicParticleSystem::writeParticlesText(const string name) const void BasicParticleSystem::writeParticlesRawPositionsGz(const string name) const { #if NO_ZLIB != 1 - gzFile gzf = gzopen(name.c_str(), "wb1"); + gzFile gzf = (gzFile)safeGzopen(name.c_str(), "wb1"); if (!gzf) errMsg("can't open file " << name); for (IndexInt i = 0; i < this->size(); ++i) { @@ -198,7 +198,7 @@ void BasicParticleSystem::writeParticlesRawPositionsGz(const string name) const void BasicParticleSystem::writeParticlesRawVelocityGz(const string name) const { #if NO_ZLIB != 1 - gzFile gzf = gzopen(name.c_str(), "wb1"); + gzFile gzf = (gzFile)safeGzopen(name.c_str(), "wb1"); if (!gzf) errMsg("can't open file " << name); if (mPdataVec3.size() < 1) |