src/Gradients/sys_gradz.cc
// Input		sysg	: System in z-gradient (this)
//			argc	: Number of arguments
//			argv    : Vecotr of argc arguments
//			argn    : Argument index
// Output		string  : The parameter argn of array argc
//				  is used to supply a filename
//				  from which the spin system is read
//				  If the argument argn is not in argv,
//				  the user is asked to supply a filename
//				  The set filename is returned
//
// Note			 	: The file should be an ASCII file
//				  containing recognized sys parameters
// Note			 	: The spin system is modifed (filled)


Note                           : The file should be an ASCII file
containing recognized sys parameters
Note                           : The spin system is modifed (filled)
Note : The file should be an ASCII file containing recognized sys parameters Note : The spin system is modifed ( filled )
std::string sys_gradz::ask_read(int argc, char* argv[], int argn)
  {
  std::string filename;				
  query_parameter(argc, argv, argn,		
    "\n\tSpin system filename? ", filename);	
  read(filename);		           	
  return filename;
  }
std :: string sys_gradz :: ask_read ( int argc , char * argv [ ] , int argn ) { std :: string filename ; query_parameter ( argc , argv , argn , " \n \t " , filename ) ; read ( filename ) ; return filename ; }
Input          sysg    : System in z-gradient (this)
argc    : Number of arguments
argv    : Vecotr of argc arguments
argn    : Argument index
Output         string  : The parameter argn of array argc
is used to supply a filename
from which the spin system is read
If the argument argn is not in argv,
the user is asked to supply a filename
The set filename is returned
Input sysg : System in z - gradient ( this ) argc : Number of arguments argv : Vecotr of argc arguments argn : Argument index Output string : The parameter argn of array argc is used to supply a filename from which the spin system is read If the argument argn is not in argv the user is asked to supply a filename The set filename is returned
// Name of spin system file   // Get filename from command // Or ask for it // Read system from filename