4848#include "../ncmpio/ncmpio_NC.h"
4949#include "ncchkio_internal.h"
5050
51- int ncchkio_create (
52- MPI_Comm comm , const char * path , int cmode , int ncid , MPI_Info info , void * * ncpp ) /* OUT */
51+ int ncchkio_create (MPI_Comm comm ,
52+ const char * path ,
53+ int cmode ,
54+ int ncid ,
55+ int env_mode ,
56+ MPI_Info info ,
57+ PNCIO_node_ids node_ids , /* node IDs of all processes */
58+ void * * ncpp ) /* OUT */
5359{
5460 int err = NC_NOERR ;
5561 int one = 1 ;
@@ -61,11 +67,11 @@ int ncchkio_create (
6167 t0 = MPI_Wtime ();
6268#endif
6369
64- /* TODO: use comde to determine the true driver */
70+ /* TODO: use cmode to determine the true driver */
6571 driver = ncmpio_inq_driver ();
6672 if (driver == NULL ) return NC_ENOTNC ;
6773
68- err = driver -> create (comm , path , cmode | NC_64BIT_DATA , ncid , info , & ncp );
74+ err = driver -> create (comm , path , cmode | NC_64BIT_DATA , ncid , env_mode , info , node_ids , & ncp );
6975 if (err != NC_NOERR ) return err ;
7076
7177 /* Create a NC_chk object and save its driver pointer */
@@ -107,8 +113,15 @@ int ncchkio_create (
107113 return NC_NOERR ;
108114}
109115
110- int ncchkio_open (
111- MPI_Comm comm , const char * path , int omode , int ncid , MPI_Info info , void * * ncpp ) {
116+ int ncchkio_open (MPI_Comm comm ,
117+ const char * path ,
118+ int omode ,
119+ int ncid ,
120+ int env_mode ,
121+ MPI_Info info ,
122+ PNCIO_node_ids node_ids , /* node IDs of all processes */
123+ void * * ncpp ) /* OUT */
124+ {
112125 int err = NC_NOERR ;
113126 int one = 0 ;
114127 void * ncp = NULL ;
@@ -120,14 +133,14 @@ int ncchkio_open (
120133 t0 = MPI_Wtime ();
121134#endif
122135
123- /* TODO: use comde to determine the true driver */
136+ /* TODO: use omode to determine the true driver */
124137 driver = ncmpio_inq_driver ();
125138 if (driver == NULL ) {
126139 DEBUG_ASSIGN_ERROR (err , NC_ENOTNC )
127140 goto errout ;
128141 }
129142
130- err = driver -> open (comm , path , omode , ncid , info , & ncp );
143+ err = driver -> open (comm , path , omode , ncid , env_mode , info , node_ids , & ncp );
131144 if (err != NC_NOERR ) goto errout ;
132145
133146 /* Create a NC_chk object and save its driver pointer */
0 commit comments