Logo Tesseroids 1.0: User Manual and API Documentation

src/c/prismg_main.c File Reference

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

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "logger.h"
#include "version.h"
#include "grav_prism.h"
#include "utils.h"
#include "cmd.h"
#include "prismg_main.h"

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.

Variables

char global_progname [100]

Detailed Description

Generic main function for the prismg* programs.

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