mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-05 07:41:11 +00:00
Enforce NetCDF4 file format in loadArray/saveArray functions
This commit is contained in:
parent
9f554e10ed
commit
28edc7ce3d
1 changed files with 2 additions and 2 deletions
4
external/cosmotool/src/yorick_nc3.cpp
vendored
4
external/cosmotool/src/yorick_nc3.cpp
vendored
|
@ -151,7 +151,7 @@ namespace CosmoTool {
|
||||||
ProgressiveOutput<T>::saveArrayProgressive(const std::string& fname, uint32_t *dimList,
|
ProgressiveOutput<T>::saveArrayProgressive(const std::string& fname, uint32_t *dimList,
|
||||||
uint32_t rank)
|
uint32_t rank)
|
||||||
{
|
{
|
||||||
NcFile *f = new NcFile(fname.c_str(), NcFile::Replace);
|
NcFile *f = new NcFile(fname.c_str(), NcFile::Replace, 0, 0, NcFile::Netcdf4);
|
||||||
|
|
||||||
assert(f->is_valid());
|
assert(f->is_valid());
|
||||||
|
|
||||||
|
@ -202,7 +202,7 @@ namespace CosmoTool {
|
||||||
void saveArray(const std::string& fname,
|
void saveArray(const std::string& fname,
|
||||||
T *array, uint32_t *dimList, uint32_t rank)
|
T *array, uint32_t *dimList, uint32_t rank)
|
||||||
{
|
{
|
||||||
NcFile f(fname.c_str(), NcFile::Replace);
|
NcFile f(fname.c_str(), NcFile::Replace, 0, 0, NcFile::Netcdf4);
|
||||||
|
|
||||||
assert(f.is_valid());
|
assert(f.is_valid());
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue