
182 High Performance Parallel I/O
1 /* po st two non - blo cki ng ope ra tions , wr iti ng data to
2 two v ari abl es ( va rid1 , var id2 ) in the \ da tas et {} */
3 n cmp i_i put _va ra ( ncf ile , varid1 , &start , & count , & data , count ,
4 MPI_INT , & r eq uests [0]);
5 n cmp i_i put _va ra ( ncf ile , varid2 , &start , & count , & data , count ,
6 MPI_INT , & r eq uests [1]);
7
8 /* he re in ncm p i_wa i t_a l l t he l i br ary will in sp ect all non - blo cki ng
9 ope ra tions , co mbi ne them , and ser vic e the new lar ger re que st c oll e cti v ely */
10 n cmp i_w ait _al l ( ncfile , 2, requests , st at uses );
11 if ( ret != NC _NOER R