Logo Tesseroids 1.0: User Manual and API Documentation

src/c/prismg_main.h File Reference

Generic main function for the prismg* programs. More...

#include "utils.h"

Go to the source code of this file.

Functions

void print_help ()
 Print the help message.
int run_prismg_main (int argc, char **argv, const char *progname, double(*field)(PRISM, double, double, double))
 Run the main for a generic prismg* program.

Detailed Description

Generic main function for the prismg* programs.

Todo:

Option for calculating on spherical coordinates

Catch errors in input points that occur at the end of the line

Author:
Leonardo Uieda
Date:
08 Feb 2011

Function Documentation

int run_prismg_main ( int  argc,
char **  argv,
const char *  progname,
double(*)(PRISM, double, double, double)  field 
)

Run the main for a generic prismg* program.

Parameters:
argc number of command line arguments
argv command line arguments
progname name of the specific program
field pointer to function that calculates the field of a single prism
Returns:
0 is all went well. 1 if failed.
Generated on Tue Apr 26 12:17:07 2011 for Tesseroids 1.0: User manual and API documentation by doxygen 1.6.3