Dear All,<div><br></div><div>I am using a simple program to access MPI_File attributes. I know that the API provides functions such as MPI_File_get_atomicity( ) but is there a way to access them directly.</div><div><br></div>
<div>Example:</div><div><br></div><div><div>int atomicity;</div><div><br></div><div>// method 1</div><div>printf("atomicity : %d", MPI_File_get_atomicity(fh,&atomicity));</div><div><br></div><div>// method 2</div>
<div>printf("atomicity : %d", fh->atomicity);</div><div><br></div><div><div>Method 1 in the above code works fine as expected but method 2 give me the following error </div><div><br></div><div>error: dereferencing pointer to incomplete type</div>
<div><br></div><div>Can anybody guide me on how to solve this problem.</div><div><br></div>Kind Regards<br>-- Ammar<br>----------------------------------------------------------------------<br>Masters Student<br>Dept. Of Computer Engineering,<br>
Kyung Hee University<br>----------------------------------------------------------------------<br>
</div></div>