MakeSubMesh_v1.c File Reference

#include "GenerateBinaryMesh_v1.h"

Include dependency graph for MakeSubMesh_v1.c:

Go to the source code of this file.

Functions

int ReadCommandLine (int argc, char *argv[])
int ReadFullBank (void)
int OutputSortedDist (void)
int FreeMem (void)
int SetupBaryInput (void)
int GetSSBTime (LIGOTimeGPS *, LIGOTimeGPS *)
int CalculateDistance (REAL8 *, REAL8 *, REAL8 *)
int compare (const void *ip, const void *jp)
 Sorting function to sort into INCREASING order.
int main (int argc, char *argv[])
 MAIN function of SideBandMCMC code Compute the posterior pdfs of the orbital and nuisance parameters of a binary signal in Fstat form.

Variables

INT4 lalDebugLevel = 3
 DECLARE AND SET GLOBAL DEBUG LEVEL.
REAL8 sma0
REAL8 period
REAL8 ecc
REAL8 argp
REAL8sma
REAL8dist
LIGOTimeGPS tperi0
LIGOTimeGPStperi
LIGOTimeGPS TstartDET
LIGOTimeGPS TstartSSB
LIGOTimeGPS tperiCURRENT
REAL8 f_max
REAL8 tspan
REAL8 ecc
REAL8 argp
REAL8 period
INT4 tperisecMIN
INT4 tperisecMAX
INT4 tperinsMIN
INT4 tperinsMAX
INT4 TstartsecMIN
INT4 TstartsecMAX
REAL8 smaMIN
REAL8 smaMAX
REAL8 mismatch
REAL8 sma0FULL
REAL8 gamXX
REAL8 gamXY
REAL8 gamYY
REAL8 X
REAL8 Y
REAL8 X0
REAL8 Y0
REAL8 RA
REAL8 dec
REAL8 smaCURRENT
INT4 det
INT4 Nsub
INT4 Nfull
INT4 tperisec0FULL
INT4 tperins0FULL
CHAR ifo [256]
REAL8 RA
REAL8 dec
FILE * sbfp
FILE * fbfp
LIGOTimeGPS TstartSSB
LIGOTimeGPS TstartDET
CHAR fullbankfile [256]
CHAR subbankfile [256]
CHAR ephemfile [256]
CHAR yr [256]
CHAR dmp [256]
LIGOTimeGPS tperiGPS
EphemerisDataedat = NULL
LALDetector Detector
EarthState earth
EmissionTime emit
LALLeapSecFormatAndAcc formatAndAcc = {LALLEAPSEC_GPSUTC, LALLEAPSEC_STRICT}
INT4 leap
BinaryMeshFileHeader BMFheader
INT4 exactflag
char * optarg
int optind
int opterr
int optopt


Function Documentation

int ReadCommandLine ( int  argc,
char *  argv[] 
)

int ReadFullBank ( void   ) 

Definition at line 176 of file MakeSubMesh_v1.c.

INT4 OutputSortedDist ( void   ) 

Definition at line 338 of file MakeSubMesh_v1.c.

int FreeMem ( void   ) 

Definition at line 789 of file StackSlideBinaryTest.c.

int SetupBaryInput ( void   ) 

Definition at line 118 of file MakeSubMesh_v1.c.

int GetSSBTime ( LIGOTimeGPS ,
LIGOTimeGPS  
)

Definition at line 92 of file MakeSubMesh_v1.c.

int CalculateDistance ( REAL8 ,
REAL8 ,
REAL8  
)

Definition at line 304 of file MakeSubMesh_v1.c.

int compare ( const void *  ip,
const void *  jp 
)

Sorting function to sort into INCREASING order.

Used in SortDistances().

int main ( int  argc,
char *  argv[] 
)

MAIN function of SideBandMCMC code Compute the posterior pdfs of the orbital and nuisance parameters of a binary signal in Fstat form.

..

variable declarations

the status must be initially blank; this can be done by making it static:

static LALStatus status;

other variables:

ExampleOutput output; ExampleInput input; ExampleParams params;

parse arguments, if desired

for example:

program = *argv; while ( --argc > 0 ) { ++argv; if ( ! strcmp( *argv, "-d" ) ) { --argc; ++argv; lalDebugLevel = atoi( *argv ); continue; } if ( ! strcmp( *argv, "-v" ) ) { verbose = 1; continue; } if ( ! strcmp( *argv, "-h" ) ) { fprintf( stderr, usage, program ); return 0; } fprintf( stderr, "no such option %s\n", *argv ); fprintf( stderr, usage, program ); return FAIL_ARGS; }

/** test response to invalid data

these tests must be wrapped so they are not done when debugging is disabled:

ifndef LAL_NDEBUG if ( ! lalNoDebug ) { LALExample( &status, NULL, &input, &params ); if ( status.statusCode != EXAMPLEH_ENULL || strcmp( status.statusDescription, EXAMPLEH_MSGENULL ) ) { fprintf( stderr, "incorrect error code %d and message %s\n", status.statusCode, status.statusDescription ); fprintf( stderr, "expecting error code %d and message %s\n", EXAMPLEH_ENULL, EXAMPLEH_MSGENULL ); return FAIL_CODE; }

fputs( "PASS: Test response to invalid data\n", stderr ); } endif

test response to valid data

for example:

LALExample( &status, &output, &input, &param ); if ( status.statusCode ) { fprintf( stderr, "received error code %d and message %s\n", status.statusCode, status.statusDescription ); return FAIL_ESUB; }

(perform checks on the contents of output too!)

during default operation, output to the screen should be minimal:

for ( i = 0; i < 1048576; ++i ) printf( "%d\n", i ); !!! BAD !!!

but it is OK to indicate that tests have passed:

fputs( "PASS: Test response to valid data\n", stderr );

check for memory leaks and return success:

LALCheckMemoryLeaks(); fputs( "PASS: All tests\n" );

Definition at line 75 of file MakeSubMesh_v1.c.


Variable Documentation

INT4 lalDebugLevel = 3

DECLARE AND SET GLOBAL DEBUG LEVEL.

see the section (currently 7.4.1) of the LSD on "Status-reporting objects" for a list of predefined debug levels

Definition at line 32 of file MakeSubMesh_v1.c.

REAL8 sma0

Definition at line 34 of file MakeSubMesh_v1.c.

REAL8 period

Definition at line 34 of file MakeSubMesh_v1.c.

REAL8 ecc

Definition at line 34 of file MakeSubMesh_v1.c.

REAL8 argp

Definition at line 34 of file MakeSubMesh_v1.c.

REAL8* sma

Definition at line 35 of file MakeSubMesh_v1.c.

REAL8 * dist

Definition at line 35 of file MakeSubMesh_v1.c.

LIGOTimeGPS tperi0

Definition at line 36 of file MakeSubMesh_v1.c.

LIGOTimeGPS * tperi

Definition at line 36 of file MakeSubMesh_v1.c.

LIGOTimeGPS TstartDET

Definition at line 36 of file MakeSubMesh_v1.c.

LIGOTimeGPS TstartSSB

Definition at line 36 of file MakeSubMesh_v1.c.

LIGOTimeGPS tperiCURRENT

Definition at line 36 of file MakeSubMesh_v1.c.

REAL8 f_max

Definition at line 37 of file MakeSubMesh_v1.c.

REAL8 tspan

Definition at line 37 of file MakeSubMesh_v1.c.

REAL8 ecc

Definition at line 37 of file MakeSubMesh_v1.c.

REAL8 argp

Definition at line 37 of file MakeSubMesh_v1.c.

REAL8 period

Definition at line 37 of file MakeSubMesh_v1.c.

INT4 tperisecMIN

Definition at line 38 of file MakeSubMesh_v1.c.

INT4 tperisecMAX

Definition at line 38 of file MakeSubMesh_v1.c.

INT4 tperinsMIN

Definition at line 38 of file MakeSubMesh_v1.c.

INT4 tperinsMAX

Definition at line 38 of file MakeSubMesh_v1.c.

INT4 TstartsecMIN

Definition at line 38 of file MakeSubMesh_v1.c.

INT4 TstartsecMAX

Definition at line 38 of file MakeSubMesh_v1.c.

REAL8 smaMIN

Definition at line 39 of file MakeSubMesh_v1.c.

REAL8 smaMAX

Definition at line 39 of file MakeSubMesh_v1.c.

REAL8 mismatch

Definition at line 39 of file MakeSubMesh_v1.c.

REAL8 sma0FULL

Definition at line 39 of file MakeSubMesh_v1.c.

REAL8 gamXX

Definition at line 40 of file MakeSubMesh_v1.c.

REAL8 gamXY

Definition at line 40 of file MakeSubMesh_v1.c.

REAL8 gamYY

Definition at line 40 of file MakeSubMesh_v1.c.

REAL8 X

Definition at line 41 of file MakeSubMesh_v1.c.

REAL8 Y

Definition at line 41 of file MakeSubMesh_v1.c.

REAL8 X0

Definition at line 41 of file MakeSubMesh_v1.c.

REAL8 Y0

Definition at line 41 of file MakeSubMesh_v1.c.

REAL8 RA

Definition at line 42 of file MakeSubMesh_v1.c.

REAL8 dec

Definition at line 42 of file MakeSubMesh_v1.c.

REAL8 smaCURRENT

Definition at line 43 of file MakeSubMesh_v1.c.

INT4 det

Definition at line 44 of file MakeSubMesh_v1.c.

INT4 Nsub

Definition at line 44 of file MakeSubMesh_v1.c.

INT4 Nfull

Definition at line 44 of file MakeSubMesh_v1.c.

INT4 tperisec0FULL

Definition at line 45 of file MakeSubMesh_v1.c.

INT4 tperins0FULL

Definition at line 45 of file MakeSubMesh_v1.c.

CHAR ifo[256]

Definition at line 46 of file MakeSubMesh_v1.c.

REAL8 RA

Definition at line 47 of file MakeSubMesh_v1.c.

REAL8 dec

Definition at line 47 of file MakeSubMesh_v1.c.

FILE* sbfp

Definition at line 48 of file MakeSubMesh_v1.c.

FILE * fbfp

Definition at line 48 of file MakeSubMesh_v1.c.

LIGOTimeGPS TstartSSB

Definition at line 49 of file MakeSubMesh_v1.c.

LIGOTimeGPS TstartDET

Definition at line 50 of file MakeSubMesh_v1.c.

CHAR fullbankfile[256]

Definition at line 51 of file MakeSubMesh_v1.c.

CHAR subbankfile[256]

Definition at line 51 of file MakeSubMesh_v1.c.

CHAR ephemfile[256]

Definition at line 51 of file MakeSubMesh_v1.c.

CHAR yr[256]

Definition at line 51 of file MakeSubMesh_v1.c.

CHAR dmp[256]

Definition at line 51 of file MakeSubMesh_v1.c.

LIGOTimeGPS tperiGPS

Definition at line 52 of file MakeSubMesh_v1.c.

EphemerisData* edat = NULL

Definition at line 53 of file MakeSubMesh_v1.c.

LALDetector Detector

Definition at line 54 of file MakeSubMesh_v1.c.

EarthState earth

Definition at line 55 of file MakeSubMesh_v1.c.

EmissionTime emit

Definition at line 56 of file MakeSubMesh_v1.c.

LALLeapSecFormatAndAcc formatAndAcc = {LALLEAPSEC_GPSUTC, LALLEAPSEC_STRICT}

Definition at line 57 of file MakeSubMesh_v1.c.

INT4 leap

Definition at line 58 of file MakeSubMesh_v1.c.

BinaryMeshFileHeader BMFheader

Definition at line 59 of file MakeSubMesh_v1.c.

INT4 exactflag

Definition at line 60 of file MakeSubMesh_v1.c.

char* optarg

Definition at line 176 of file GeneralMeshTest.c.

int optind

Definition at line 149 of file packages/support/src/getopt.c.

int opterr

Definition at line 169 of file packages/support/src/getopt.c.

int optopt

Definition at line 175 of file packages/support/src/getopt.c.


Generated on Sun Oct 12 02:33:15 2008 for LAL by  doxygen 1.5.2