Commit f9d30562 authored by Miroslav Shaltev's avatar Miroslav Shaltev
Browse files

add missing files

parent e5b96673
/* LALAppsBuildInfoHeader.h: generated by Makefile */
#define _CONFIGURE_ARGS ""
#define _CONFIGURE_DATE ""
#define _BUILD_DATE "2017-01-02T13:34:21+0200"
/*
* Copyright (C) 2014, 2016 Karl Wette
* Copyright (C) 2009-2013 Adam Mercer
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with with program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*/
#ifndef _LALAPPSVCSINFO_H
#define _LALAPPSVCSINFO_H
#include <lal/LALVCSInfoType.h>
#ifdef __cplusplus
extern "C" {
#endif
/**
* \defgroup LALAppsVCSInfo_h Header LALAppsVCSInfo.h
* \ingroup lalapps_general
* \brief VCS and build information for LALApps
*/
/*@{*/
/** VCS and build information for LALApps */
extern const LALVCSInfo lalAppsVCSInfo;
/** Identable VCS and build information for LALApps */
extern const LALVCSInfo lalAppsVCSIdentInfo;
/** <tt>NULL</tt>-terminated list of VCS and build information for LALApps and its dependencies */
extern const LALVCSInfoList lalAppsVCSInfoList;
/*@}*/
#ifdef __cplusplus
}
#endif
#endif /* _LALAPPSVCSINFO_H */
/*
* Copyright (C) 2014, 2016 Karl Wette
* Copyright (C) 2009-2013 Adam Mercer
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with with program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*/
#ifndef _@PACKAGE_NAME_UCASE@VCSINFO_H
#define _@PACKAGE_NAME_UCASE@VCSINFO_H
#include <lal/LALVCSInfoType.h>
#ifdef __cplusplus
extern "C" {
#endif
/**
* \defgroup @PACKAGE_NAME@VCSInfo_h Header @PACKAGE_NAME@VCSInfo.h
* \ingroup @PACKAGE_NAME_LCASE@_general
* \brief VCS and build information for @PACKAGE_NAME@
*/
/*@{*/
/** VCS and build information for @PACKAGE_NAME@ */
extern const LALVCSInfo lal@PACKAGE_NAME_NOLAL@VCSInfo;
/** Identable VCS and build information for @PACKAGE_NAME@ */
extern const LALVCSInfo lal@PACKAGE_NAME_NOLAL@VCSIdentInfo;
/** <tt>NULL</tt>-terminated list of VCS and build information for @PACKAGE_NAME@ and its dependencies */
extern const LALVCSInfoList lal@PACKAGE_NAME_NOLAL@VCSInfoList;
/*@}*/
#ifdef __cplusplus
}
#endif
#endif /* _@PACKAGE_NAME_UCASE@VCSINFO_H */
# source this file to access 'cwseaoptifol'
if ( ! ${?LAL_DATA_PATH} ) setenv LAL_DATA_PATH
setenv LAL_DATA_PATH `echo ":${LAL_DATA_PATH}:" | /bin/sed 's|:/home/shaltev/cwsof/share/cwseaoptifol:|:|;s|::*|:|g;s|^:||;s|:$||'`
setenv LAL_DATA_PATH "/home/shaltev/cwsof/share/cwseaoptifol:${LAL_DATA_PATH}"
if ( ! ${?PYTHONPATH} ) setenv PYTHONPATH
setenv PYTHONPATH `echo ":${PYTHONPATH}:" | /bin/sed 's|:/home/shaltev/cwsof/lib/python2.7/site-packages:|:|;s|::*|:|g;s|^:||;s|:$||'`
setenv PYTHONPATH "/home/shaltev/cwsof/lib/python2.7/site-packages:${PYTHONPATH}"
if ( ! ${?MANPATH} ) setenv MANPATH
setenv MANPATH `echo ":${MANPATH}:" | /bin/sed 's|:/home/shaltev/cwsof/share/man:|:|;s|::*|:|g;s|^:||;s|:$||'`
setenv MANPATH "/home/shaltev/cwsof/share/man:${MANPATH}"
if ( ! ${?PATH} ) setenv PATH
setenv PATH `echo ":${PATH}:" | /bin/sed 's|:/home/shaltev/cwsof/bin:|:|;s|::*|:|g;s|^:||;s|:$||'`
setenv PATH "/home/shaltev/cwsof/bin:${PATH}"
# source this file to access 'cwseaoptifol'
LAL_DATA_PATH=`echo ":${LAL_DATA_PATH}:" | /bin/sed 's|:/home/shaltev/cwsof/share/cwseaoptifol:|:|;s|::*|:|g;s|^:||;s|:$||'`
LAL_DATA_PATH="/home/shaltev/cwsof/share/cwseaoptifol:${LAL_DATA_PATH}"
export LAL_DATA_PATH
PYTHONPATH=`echo ":${PYTHONPATH}:" | /bin/sed 's|:/home/shaltev/cwsof/lib/python2.7/site-packages:|:|;s|::*|:|g;s|^:||;s|:$||'`
PYTHONPATH="/home/shaltev/cwsof/lib/python2.7/site-packages:${PYTHONPATH}"
export PYTHONPATH
MANPATH=`echo ":${MANPATH}:" | /bin/sed 's|:/home/shaltev/cwsof/share/man:|:|;s|::*|:|g;s|^:||;s|:$||'`
MANPATH="/home/shaltev/cwsof/share/man:${MANPATH}"
export MANPATH
PATH=`echo ":${PATH}:" | /bin/sed 's|:/home/shaltev/cwsof/bin:|:|;s|::*|:|g;s|^:||;s|:$||'`
PATH="/home/shaltev/cwsof/bin:${PATH}"
export PATH
# generic user environment script
prepend PATH /home/shaltev/cwsof/bin
prepend MANPATH /home/shaltev/cwsof/share/man
prepend PYTHONPATH /home/shaltev/cwsof/lib/python2.7/site-packages /home/shaltev/cwsof/lib/python2.7/site-packages
prepend LAL_DATA_PATH /home/shaltev/cwsof/share/cwseaoptifol
# -*- coding: utf-8 -*-
# git_version.py - vcs information module
#
# Copyright (C) 2010 Nickolas Fotopoulos
# Copyright (C) 2012-2013 Adam Mercer
# Copyright (C) 2016 Leo Singer
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or (at
# your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with with program; see the file COPYING. If not, write to the
# Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
# MA 02111-1307 USA
id = "045c90415a8ba911f4f267b1966c22f28c0ccef7"
date = "2016-11-6 18:00:07 +0000"
branch = "master"
tag = "None"
if tag == "None":
tag = None
author = "Miroslav Shaltev <miroslav.shaltev@shaltev.de>"
builder = "Unknown User <>"
committer = "Miroslav Shaltev <miroslav.shaltev@shaltev.de>"
status = "UNCLEAN: Modified working tree"
version = id
verbose_msg = """Branch: master
Tag: None
Id: 045c90415a8ba911f4f267b1966c22f28c0ccef7
Builder: Unknown User <>
Repository status: UNCLEAN: Modified working tree"""
import warnings
class VersionMismatchError(ValueError):
pass
def check_match(foreign_id, onmismatch="raise"):
"""
If foreign_id != id, perform an action specified by the onmismatch
kwarg. This can be useful for validating input files.
onmismatch actions:
"raise": raise a VersionMismatchError, stating both versions involved
"warn": emit a warning, stating both versions involved
"""
if onmismatch not in ("raise", "warn"):
raise ValueError(onmismatch + " is an unrecognized value of onmismatch")
if foreign_id == "045c90415a8ba911f4f267b1966c22f28c0ccef7":
return
msg = "Program id (045c90415a8ba911f4f267b1966c22f28c0ccef7) does not match given id (%s)." % foreign_id
if onmismatch == "raise":
raise VersionMismatchError(msg)
# in the backtrace, show calling code
warnings.warn(msg, UserWarning)
/**
\addtogroup lalapps_general
Several utilities (macros, global variables, and functions) are provided to
assist in writing programs in LALApps, and for maintaining a standard
look-and-feel. This chapter describes these utilities and concludes with
the listing of an example program.
## Header lalapps.h
Provides utilities for writing programs for LALApps.
Several macros, global variables, and function prototypes are given that will
assist in writing LALApps programs, and will aid in maintaining a standard
look-and-feel.
To use these utilities, include the header \ref lalapps.h and make sure the
program links to the object <tt>lalapps.o</tt>.
### Function <tt>clear_status</tt>
<dl>
<dt>Name</dt><dd>
\c clear_status --- clears the LAL status structure after a failed LAL
function call</dd>
<dt>Synopsis</dt><dd>
\code
#include <lalapps.h>
extern const LALStatus blank_status;
int clear_status( LALStatus *status );
\endcode</dd>
<dt>Description</dt><dd>
Clears the LAL status structure and iteratively frees attatched (sic) any
linked status structures. This is to be used after a failed LAL function
call to restore the status structure to a useable form. The structure
\c blank_status contains a blank status structure that can be used to
initialize a status structure in the program.</dd>
<dt>Example</dt><dd>
The following program calls a routine \c LALFailUnlessNegative twice,
once with a positive argument (which causes the routine to fail) and once
with a negative argument (which causes the routine to pass). The function
\c clear_status is used to clean up the status structure after the
failure and the constant structure \c blank_status is used to initialize
the status structure.
\code
#include <lalapps.h>
#include <lal/LALStdlib.h>
extern const LALStatus blank_status;
void LALFailUnlessNegative( LALStatus *status, INT4 n )
{
INITSTATUS( status, "LALFail", "$Id$" );
ATTATCHSTATUSPTR( status );
ASSERT( n, status, 1, "Non-negative n" );
if ( n > 0 )
{
TRY( LALFailUnlessNegative( status->statusPtr, n - 1 ), status );
}
DETATCHSTATUSPTR( status );
RETURN( status );
}
int main( void )
{
LALStatus status = blank_status;
LALFailUnlessNegative( &status, 5 );
clear_status( &status );
LALFailUnlessNegative( &status, -2 );
return status.statusCode;
}
\endcode
</dd>
</dl>
### Macro <tt>PRINT_VERSION</tt>
<dl>
<dt>Name</dt><dd>
\c PRINT_VERSION --- prints the LALApps version of the program</dd>
<dt>Synopsis</dt><dd>
\code
#include <lalapps.h>
static volatile const char *rcsid="$Id$";
#ifndef PRINT_VERSION
#define PRINT_VERSION( program ) \
fprintf( stderr, PACKAGE "
#endif
\endcode</dd>
<dt>Description</dt><dd>
\c PRINT_VERSION prints the version information for \c program in a
standard format, along with the RCS Id information. Note that
\c PRINT_VERSION requires the string variable \c rcsid to be
set.</dd>
</dl>
### Macro <tt>LAL_CALL</tt>
Error Handler
<dl>
<dt>Name</dt><dd>
\c LAL_CALL --- call a LAL routine and handle any errors</dd>
<dt>Synopsis</dt><dd>
\code
#include <lalapps.h>
extern int vrblvl;
extern int ( *lal_errhandler )( LALStatus *stat, const char *func,
const char *file, const int line, volatile const char *id );
extern lal_errhandler_t lal_errhandler;
static volatile const char *rcsid="$Id$";
#ifndef LAL_CALL
#define LAL_CALL( function, statusptr ) \
((function),lal_errhandler(statusptr,#function,__FILE__,__LINE__,rcsid))
#endif
\endcode</dd>
<dt>Description</dt><dd>
\c LAL_CALL executes the LAL function \c function and executes the
error handler \c lal_errhandler, which examines the status structure
\c statusptr to see if an error occurred. Typically the error handler
will return with value 0 if there was no error; otherwise it will print a trace
of the execution stack and then perform a specific action. The action
performed depends on the error handler, which can be set to one of the
following:
<ul>
<li>\c LAL_ERR_DFLT:
The default error handler (same as \c LAL_ERR_ABRT).</li>
<li>\c LAL_ERR_ABRT:
Raises \c SIGABRT if there is an error.</li>
<li>\c LAL_ERR_EXIT:
Exits with the returned status code if there is an error.</li>
<li>\c LAL_ERR_RTRN:
Returns the status code.</li>
</ul>
Note that \c LAL_CALL requires the string variable \c rcsid to be set.</dd>
<dt>Return Value</dt><dd>
If \c LAL_CALL returns (rather than terminating execution), the return
value is equal to the status code returned by the LAL function.</dd>
<dt>Example</dt><dd>
The following example program illustrates the use of \c LAL_CALL.
The routine \c LALInvert is called incorrectly twice. The first time
the division by zero error is caught. The second time, the unexpected null
pointer error is not caught and the default error handler aborts the program.
\code
#include <stdlib.h>
#include <lalapps.h>
#include <lal/LALStdlib.h>
RCSID( "$Id$" );
extern int vrblvl;
extern const LALStatus blank_status;
void LALInvert( LALStatus *status, REAL4 *y, REAL4 x )
{
INITSTATUS( status, "LALInvert", rcsid );
ASSERT( y, status, 1, "Null pointer" );
if ( input == 0 )
{
ABORT( status, 1, "Division by zero" );
}
*y = 1 / x;
RETURN( status );
}
int main( void )
{
LALStatus status = blank_status;
REAL4 x;
int code;
vrblvl = 1;
lal_errhandler = LAL_ERR_RTRN;
code = LAL_CALL( LALInvert( &status, &x, 0 ), &status );
if ( code == 2 )
{
puts( "division by zero" );
clear_status( &status );
}
else if ( code )
{
exit( code );
}
lal_errhandler = LAL_ERR_DFLT;
LAL_CALL( LALInvert( &status, NULL, 1 ), &status );
return 0;
}
\endcode
</dd>
</dl>
*/
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment