Commit 36b7aa73 authored by Lars Pastewka's avatar Lars Pastewka
Browse files

MAINT: Use proper data type for bigint when defining NetCDF file.

parent f2dc764d
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -497,8 +497,13 @@ void DumpNetCDF::openfile()
                               &thermovar[i]), th->keyword[i] );
          }
          else if (th->vtype[i] == BIGINT) {
#if defined(LAMMPS_SMALLBIG) || defined(LAMMPS_BIGBIG)
            NCERRX( nc_def_var(ncid, th->keyword[i], NC_INT64, 1, dims,
                               &thermovar[i]), th->keyword[i] );
#else
            NCERRX( nc_def_var(ncid, th->keyword[i], NC_LONG, 1, dims,
                               &thermovar[i]), th->keyword[i] );
#endif
          }
        }
      }
+5 −0
Original line number Diff line number Diff line
@@ -465,8 +465,13 @@ void DumpNetCDFMPIIO::openfile()
                                &thermovar[i]), th->keyword[i] );
        }
        else if (th->vtype[i] == BIGINT) {
#if defined(LAMMPS_SMALLBIG) || defined(LAMMPS_BIGBIG)
          NCERRX( ncmpi_def_var(ncid, th->keyword[i], NC_INT64, 1, dims,
                                &thermovar[i]), th->keyword[i] );
#else
          NCERRX( ncmpi_def_var(ncid, th->keyword[i], NC_LONG, 1, dims,
                                &thermovar[i]), th->keyword[i] );
#endif
        }
      }
    }