From 99ef36f4405014b057c2c3e9fe5d1178b3e3f8f1 Mon Sep 17 00:00:00 2001
From: Lars Pastewka <lars.pastewka@imtek.uni-freiburg.de>
Date: Wed, 7 Jun 2017 13:52:33 +0200
Subject: [PATCH] MAINT: Switched NetCDF from 64BIT_OFFSET to 64BIT_DATA which
 can handle frames (of unlimited dimension) > 2 GB. This becomes important for
 system sizes 100 Mio atoms and upwards.

---
 src/USER-NETCDF/dump_netcdf.cpp       | 2 +-
 src/USER-NETCDF/dump_netcdf_mpiio.cpp | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/USER-NETCDF/dump_netcdf.cpp b/src/USER-NETCDF/dump_netcdf.cpp
index bad90bdef3..c09a131e0a 100644
--- a/src/USER-NETCDF/dump_netcdf.cpp
+++ b/src/USER-NETCDF/dump_netcdf.cpp
@@ -354,7 +354,7 @@ void DumpNetCDF::openfile()
       if (singlefile_opened) return;
       singlefile_opened = 1;
 
-      NCERRX( nc_create(filename, NC_64BIT_OFFSET, &ncid),
+      NCERRX( nc_create(filename, NC_64BIT_DATA, &ncid),
 	      filename );
 
       // dimensions
diff --git a/src/USER-NETCDF/dump_netcdf_mpiio.cpp b/src/USER-NETCDF/dump_netcdf_mpiio.cpp
index 2e9ec274a5..85a1f347f0 100644
--- a/src/USER-NETCDF/dump_netcdf_mpiio.cpp
+++ b/src/USER-NETCDF/dump_netcdf_mpiio.cpp
@@ -350,7 +350,7 @@ void DumpNetCDFMPIIO::openfile()
     if (singlefile_opened) return;
     singlefile_opened = 1;
 
-    NCERRX( ncmpi_create(MPI_COMM_WORLD, filename, NC_64BIT_OFFSET,
+    NCERRX( ncmpi_create(MPI_COMM_WORLD, filename, NC_64BIT_DATA,
                          MPI_INFO_NULL, &ncid), filename );
 
     // dimensions
-- 
GitLab