Skip to content

Commit

Permalink
fixed issue for nc4 driver
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenghh04 committed Sep 13, 2023
1 parent 6ec9102 commit bc45207
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/drivers/e3sm_io_driver_nc4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,13 @@ int e3sm_io_driver_nc4::close (int fid) {
return err;
}

#ifdef ENABLE_CACHE_VOL
int e3sm_io_driver_nc4::inq_file_id (int fid, void *hd) {
printf ("This only works for HDF5 driver in %s line %d function %s\n", __FILE__, __LINE__, __func__);
return 0;
}
#endif

int e3sm_io_driver_nc4::inq_file_info (int fid, MPI_Info *info) {
*info = MPI_INFO_NULL;
return NC_NOERR;
Expand Down
3 changes: 3 additions & 0 deletions src/drivers/e3sm_io_driver_nc4.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ class e3sm_io_driver_nc4 : public e3sm_io_driver {
int create (std::string path, MPI_Comm comm, MPI_Info info, int *fid);
int open (std::string path, MPI_Comm comm, MPI_Info info, int *fid);
int close (int fid);
#ifdef ENABLE_CACHE_VOL
int inq_file_id (int fid, void *hd);
#endif
int inq_file_info (int fid, MPI_Info *info);
int inq_file_size (std::string path, MPI_Offset *size);
int inq_put_size (MPI_Offset *size);
Expand Down

0 comments on commit bc45207

Please sign in to comment.