// Author: Simon Taylor // // // bfield_finemesh.cc // // Program to create a fine-mesh map of the magnetic field (including // gradients) in the form of an evio file using the coarse-mesh map computed // by TOSCA/Ansys/.. as input. #include "DANA/DApplication.h" using namespace std; #include #include #include #include using namespace evio; void Usage(void); //----------- // main //----------- int main(int narg, char *argv[]) { if(narg<=1)Usage(); double rmax=100.; double rmin=0.; double zmax=600.; double zmin=0.; double dr=0.1; double dz=0.1; string evioFileName="finemesh.evio"; // parse command line arguments for(int i=1; i than narg, then no value was passed to an "-XXX" argument if(i>narg){ _DBG_<<"No argument given for \""<