APEMoST
Defines | Functions | Variables

apps/generic_main.c File Reference

#include <unistd.h>
#include <string.h>
#include "mcmc.h"
#include "debug.h"
#include "parallel_tempering.h"
#include "parallel_tempering_interaction.h"
#include "define_defaults.h"

Defines

#define MAX_ITERATIONS   0
#define OUTPUT_PARAMD(P)   printf("\t%s: %f\n", #P, P);
#define OUTPUT_PARAMI(P)   printf("\t%s: %d\n", #P, P);

Functions

void usage ()
void help_phase (char *phase)
void check ()
int main (int argc, char **argv)
void checkfile (char *filename)

Variables

char * progname

Define Documentation

#define MAX_ITERATIONS   0

set the number of iterations after you want the program to terminate.

This is especially useful in benchmarking. Example: Set this to 100000.

0 means run indefinitely

Referenced by check(), and main().

#define OUTPUT_PARAMD (   P)    printf("\t%s: %f\n", #P, P);

Referenced by check().

#define OUTPUT_PARAMI (   P)    printf("\t%s: %d\n", #P, P);

Referenced by check().


Function Documentation

void check ( )
void checkfile ( char *  filename)

Referenced by check().

void help_phase ( char *  phase)

References CALIBRATION_FILE, DATA_FILENAME, PARAMS_FILENAME, and usage().

Referenced by main().

int main ( int  argc,
char **  argv 
)
void usage ( )

References progname.

Referenced by help_phase(), and main().


Variable Documentation

char* progname

Referenced by check(), main(), and usage().