Hi,<br><br>the scanf to read the index group number in qgroup is a problem, if one wants to use it as library.<br><br>Do you agree to change the following?<br><br>in statuitl:<br>- add  variable pca_ndx_selection <br>- add flag -nsel which write to pca_ndx_selection  if PCA_CAN_NDX_SEL is set<br>


<br>in all tools which read one/several ndx file(s)<br>- add flag PCA_CAN_NDX_SEL<br><br>in index.c:<br>- test if pca_ndx_selection!=0 and if so use it instead of scanf<br><br>It is of course not thread safe because it using one shared variable. But the current scanf is also not thread safe and I don&#39;t know how to easily change it to make it thread safe.<br>

<br>Roland<br clear="all"><br>-- <br>ORNL/UT Center for Molecular Biophysics <a href="http://cmb.ornl.gov" target="_blank">cmb.ornl.gov</a><br>
865-241-1537, ORNL PO BOX 2008 MS6309<br>