Commit f53632d7 authored by Adam Mercer's avatar Adam Mercer
Browse files

initial packaging of liblalinspiral

this is the initial attempt at splitting the inspiral code off into a
separate package that can be released independently. all the code and
tests have been moved over but the documentation has not been integrated
into the build as it needs to be transitioned over to use doxygen
instead of laldoc
Original: f8b792de9f3399281ee80a45ba21ed0acb583d8d
parent 495df15d
AC_INIT([lal],[6.3.2.1],[lal-discuss@gravity.phys.uwm.edu])
AC_INIT([lal],[6.3.2.2],[lal-discuss@gravity.phys.uwm.edu])
AC_CONFIG_HEADERS([include/config.h include/lal/LALConfig.h])
AC_CONFIG_SRCDIR([include/config.h.in])
AC_CONFIG_AUX_DIR([misc])
......@@ -72,31 +72,11 @@ AC_CONFIG_FILES([ \
packages/fft/include/Makefile \
packages/fft/src/Makefile \
packages/fft/test/Makefile \
packages/inspiral/Makefile \
packages/inspiral/doc/Makefile \
packages/inspiral/include/Makefile \
packages/inspiral/src/Makefile \
packages/inspiral/test/Makefile \
packages/noisemodels/Makefile \
packages/noisemodels/doc/Makefile \
packages/noisemodels/include/Makefile \
packages/noisemodels/src/Makefile \
packages/noisemodels/test/Makefile \
packages/bank/Makefile \
packages/bank/doc/Makefile \
packages/bank/include/Makefile \
packages/bank/src/Makefile \
packages/bank/test/Makefile \
packages/ring/Makefile \
packages/ring/doc/Makefile \
packages/ring/include/Makefile \
packages/ring/src/Makefile \
packages/ring/test/Makefile \
packages/findchirp/Makefile \
packages/findchirp/doc/Makefile \
packages/findchirp/include/Makefile \
packages/findchirp/src/Makefile \
packages/findchirp/test/Makefile \
packages/support/Makefile \
packages/support/doc/Makefile \
packages/support/include/Makefile \
......
......@@ -18,11 +18,7 @@ liblal_la_DEPENDENCIES = \
$(top_builddir)/packages/tdfilter/src/libtdfilter.la \
$(top_builddir)/packages/window/src/libwindow.la \
$(top_builddir)/packages/fft/src/libfft.la \
$(top_builddir)/packages/inspiral/src/libinspiral.la \
$(top_builddir)/packages/noisemodels/src/libnoisemodels.la \
$(top_builddir)/packages/bank/src/libbank.la \
$(top_builddir)/packages/ring/src/libring.la \
$(top_builddir)/packages/findchirp/src/libfindchirp.la
$(top_builddir)/packages/noisemodels/src/libnoisemodels.la
liblal_la_LIBADD = $(liblal_la_DEPENDENCIES) @LAL_LIBADD@
bin_PROGRAMS = lal-version
lal_version_SOURCES = lal-version.c
......
......@@ -11,11 +11,7 @@ SUBDIRS = \
tdfilter \
window \
fft \
inspiral \
noisemodels \
bank \
ring \
findchirp \
support
include-links:
......
## Process this file with automake to produce Makefile.in
SUBDIRS = include src test doc
## Process this file with automake to produce Makefile.in
DOCSOURCEFILES = bank.tex LALInspiralBankHCoarse1.pdf LALInspiralBankHCoarse2.pdf LALInspiralBankHequalmass.pdf LALInspiralBankHfine.pdf LALInspiralBankHm1m2.pdf LALInspiralBankHt0t2.pdf LALInspiralBankHt0t3.pdf LALInspiralBankHtotalMassEta.pdf LALInspiralHybridHexa1.pdf LALInspiralHybridHexa2.pdf
MOSTLYCLEANFILES = .dvi-dep
CLEANFILES = main.dvi main.pdf main.ps
EXTRA_DIST = $(DOCSOURCEFILES)
dvi-local: .dvi-dep
distclean-local:
-rm -fr .adoc
@DOCMKFILE@
## Process this file with automake to produce Makefile.in
pkginclude_HEADERS = IMRBank.h LALInspiralBank.h LALInspiralBCVSpinBank.h LALInspiralRandomBank.h LALSBBH-Metric.h
MOSTLYCLEANFILES = .dvi-dep
DISTCLEANFILES = *.tex
all-local: include-link
dvi-local: .dvi-dep
@INCLUDEMKFILE@
@DVIMKFILE@
## Process this file with automake to produce Makefile.in
noinst_LTLIBRARIES = libbank.la
libbank_la_SOURCES = \
InspiralBankGeneration.c\
InspiralSpinBank.c\
LALDeterminant3.c\
LALInsidePolygon.c\
LALInspiralBCVBank.c\
LALInspiralBankList.c\
LALInspiralBankUtils.c\
LALInspiralComputeMetric.c\
LALInspiralComputeParams.c\
LALInspiralCreateCoarseBank.c\
LALInspiralCreateFineBank.c\
LALInspiralHexagonalBank.c\
LALInspiralHybridHexagonalBank.c\
LALInspiralLongestTemplateInBank.c\
LALInspiralMoments.c\
LALInspiralMomentsIntegrand.c\
LALInspiralNextTemplate.c\
LALInspiralSetParams.c\
LALInspiralSetSearchLimits.c\
LALInspiralUpdateParams.c\
LALInspiralValidParams.c\
LALInspiralValidTemplate.c\
LALInverse3.c\
LALMatrixTransform.c\
LALHexagonVertices.c\
LALRectangleVertices.c\
LALInspiralComputePTFMetric.c
INCLUDES = -I$(top_builddir)/include -I$(srcdir)/../include
MOSTLYCLEANFILES = .dvi-dep
DISTCLEANFILES = *.tex
dvi-local: .dvi-dep
@DVIMKFILE@
/*
* Copyright (C) 2007 Bernd Machenschalk, David Churches, Duncan Brown, Jolien Creighton, B.S. Sathyaprakash, Thomas Cokelaer
*
* 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
*/
/* <lalVerbatim file="ChirpSpaceCV">
Author: Sathyaprakash, B. S., Cokelaer, T.
$Id$
</lalVerbatim> */
/* <lalLaTeX>
\subsection{Program \texttt{ChirpSpace.c}}
\label{ss:bank:ChirpSpace.c}
Test code for \texttt{LALInspiralParameterCalc} module.
If the variable \texttt{type} is set to 1 the code works
out the boundary of the region enclosed
by the parameter space specified by {\em maximum total
mass} and {\em minimum companion masses,} as given in \texttt{mmin}
and \texttt{Mmax}. If the variable \texttt{type} is set to 0
it computes the boundary of the region corresponding to the companion
masses in the range defined by \texttt{mmin} and \texttt{mmax}.
\subsubsection*{Uses}
\begin{verbatim}
LALInspiralParameterCalc
\end{verbatim}
\subsubsection*{Notes}
\vfill{\footnotesize\input{ChirpSpaceCV}}
</lalLaTeX> */
/*
This code generates the chirp parameter space for a given
minimum companion mass mMin and maximum total mass MMax. One can use
xmgr to plot the resulting file to plot as in the demo script.
August 8 , 00.
*/
#include <stdio.h>
#include <lal/LALInspiral.h>
#include <lal/LALRCSID.h>
NRCSID (CHIRPSPACEC,"$Id$");
INT4 lalDebugLevel=0;
int main ( void ) {
static InspiralTemplate p;
static LALStatus status;
double mmin, mmax, Mmax, totalMmax, compmmin, m1, m2, finalmass;
UINT2 type;
FILE *fpr;
fpr = fopen("ChirSpace.out", "w");
/*
Change the parameters of the search space here
type=0 creates a region defined by mMin and mMax
i.e. maximum mass of the companion given by mMax
type=1 creates a region defined by mMin and MMax
i.e. total mass of the body given by MMax
*/
type = 0;
mmin = 1.;
mmax = 20.;
Mmax = mmax*2.;
p.ieta=1;
p.fLower=40.0;
/*
Don't change anything below:
*/
mmin = log10(mmin);
mmax = log10(mmax);
Mmax = log10(Mmax);
p.order = LAL_PNORDER_TWO;
totalMmax = pow(10.,Mmax);
compmmin = pow(10.,mmin);
fprintf(fpr, "#mmin=%e Mmax=%e\n", pow(10., mmin), pow(10., Mmax));
p.massChoice=m1Andm2;
p.mass1 = compmmin;
if (type) finalmass=Mmax; else finalmass=mmax;
for (m2=mmin; m2<=finalmass; m2+=0.01) {
p.mass2 = pow(10.,m2);
LALInspiralParameterCalc (&status, &p);
if (p.totalMass > totalMmax) break;
fprintf(fpr, "%e %e %e %e %e %e %e %e %e %e %e\n",
p.t0,
p.t3,
p.t2,
p.mass2,
p.mass1,
p.t4,
p.totalMass,
p.eta,
p.mu,
p.chirpMass,
p.tC);
}
fprintf(fpr, "&\n");
if (type)
{
p.totalMass = totalMmax;
for (m2=log10(totalMmax-compmmin); m2>=mmin; m2-=0.01)
{
p.mass2 = pow(10.,m2);
if ((p.mass1=p.totalMass - p.mass2) > p.totalMass/2.) break;
LALInspiralParameterCalc (&status, &p);
fprintf(fpr, "%e %e %e %e %e %e %e %e %e %e %e\n",
p.t0,
p.t3,
p.t2,
p.mass2,
p.mass1,
p.t4,
p.totalMass,
p.eta,
p.mu,
p.chirpMass,
p.tC);
}
}
else
{
p.totalMass = totalMmax;
p.mass2 = p.totalMass/2.;
for (m1=mmin; m1<=mmax; m1+=0.01)
{
p.mass1 = pow(10.L,m1);
LALInspiralParameterCalc (&status, &p);
if (p.totalMass > totalMmax) break;
fprintf(fpr, "%e %e %e %e %e %e %e %e %e %e %e\n",
p.t0,
p.t3,
p.t2,
p.mass2,
p.mass1,
p.t4,
p.totalMass,
p.eta,
p.mu,
p.chirpMass,
p.tC);
}
}
fprintf(fpr, "&\n");
p.massChoice=totalMassAndEta;
p.eta = 0.25;
for (m2=log10(totalMmax); m2>=mmin; m2-=0.01) {
if ((p.totalMass = pow(10.,m2)) < 2.*compmmin) break;
LALInspiralParameterCalc (&status, &p);
fprintf(fpr, "%e %e %e %e %e %e %e %e %e %e %e\n",
p.t0,
p.t3,
p.t2,
p.mass2,
p.mass1,
p.t4,
p.totalMass,
p.eta,
p.mu,
p.chirpMass,
p.tC);
}
fclose(fpr);
return 0;
}
## Process this file with automake to produce Makefile.in
check_PROGRAMS = ChirpSpace CoarseTest CoarseTest2 MetricTest MetricTestBCV MetricTestPTF BCVTemplates PNTemplates BCVTemplatesFlatMesh SpaceCovering GetOrientationEllipse InspiralSpinBankTest
GetOrientationEllipse_SOURCES = GetOrientationEllipse.c
GetOrientationEllipse_LDADD = $(top_builddir)/packages/support/src/liblalsupport.la $(top_builddir)/lib/liblal.la
ChirpSpace_SOURCES = ChirpSpace.c
ChirpSpace_LDADD = $(top_builddir)/packages/support/src/liblalsupport.la $(top_builddir)/lib/liblal.la
SpaceCovering_SOURCES = SpaceCovering.c
SpaceCovering_LDADD = $(top_builddir)/packages/support/src/liblalsupport.la $(top_builddir)/lib/liblal.la
CoarseTest_SOURCES = CoarseTest.c
CoarseTest_LDADD = $(top_builddir)/packages/support/src/liblalsupport.la $(top_builddir)/lib/liblal.la
CoarseTest2_SOURCES = CoarseTest2.c
CoarseTest2_LDADD = $(top_builddir)/packages/support/src/liblalsupport.la $(top_builddir)/lib/liblal.la
MetricTest_SOURCES = MetricTest.c
MetricTest_LDADD = $(top_builddir)/packages/support/src/liblalsupport.la $(top_builddir)/lib/liblal.la
MetricTestBCV_SOURCES = MetricTestBCV.c
MetricTestBCV_LDADD = $(top_builddir)/packages/support/src/liblalsupport.la $(top_builddir)/lib/liblal.la
MetricTestPTF_SOURCES = MetricTestPTF.c
MetricTestPTF_LDADD = $(top_builddir)/packages/support/src/liblalsupport.la $(top_builddir)/lib/liblal.la
BCVTemplates_SOURCES = BCVTemplates.c
BCVTemplates_LDADD = $(top_builddir)/packages/support/src/liblalsupport.la $(top_builddir)/lib/liblal.la
PNTemplates_SOURCES = PNTemplates.c
PNTemplates_LDADD = $(top_builddir)/packages/support/src/liblalsupport.la $(top_builddir)/lib/liblal.la
BCVTemplatesFlatMesh_SOURCES = BCVTemplatesFlatMesh.c
BCVTemplatesFlatMesh_LDADD = $(top_builddir)/packages/support/src/liblalsupport.la $(top_builddir)/lib/liblal.la
InspiralSpinBankTest_SOURCES = InspiralSpinBankTest.c
InspiralSpinBankTest_LDADD = $(top_builddir)/packages/support/src/liblalsupport.la $(top_builddir)/lib/liblal.la
TESTS_ENVIRONMENT = 1>/dev/null 2>/dev/null
INCLUDES = -I$(top_builddir)/include -I$(srcdir)/../include
TESTS = ChirpSpace CoarseTest CoarseTest2 MetricTest MetricTestBCV PNTemplates BCVTemplates BCVTemplatesFlatMesh InspiralSpinBankTest
EXTRA_DIST = CoarseTest.par demo
MOSTLYCLEANFILES = .dvi-dep *.out
DISTCLEANFILES = *.tex
dvi-local: .dvi-dep
@DVIMKFILE@
This diff is collapsed.
## Process this file with automake to produce Makefile.in
SUBDIRS = include src test doc
## Process this file with automake to produce Makefile.in
DOCSOURCEFILES = findchirp.tex \
FindChirpChisqHDoc.tex \
FindChirpSPHDoc.tex FindChirpSPDataCDoc.tex \
FindChirpEngineHDoc.tex FindChirpFilterCDoc.tex \
FindChirpEngineCDoc.tex FindChirpBCVHDoc.tex \
FindChirpBCVSpinDataCDoc.tex \
FindChirpDataCDoc.tex FindChirpFilterInitCDoc.tex \
FindChirpBCVDataCDoc.tex FindChirpBCVFilterCDoc.tex \
FindChirpBCVSpinHDoc.tex
MOSTLYCLEANFILES = .dvi-dep
CLEANFILES = main.dvi main.pdf main.ps
EXTRA_DIST = $(DOCSOURCEFILES)
dvi-local: .dvi-dep
distclean-local:
-rm -fr .adoc
@DOCMKFILE@
## Process this file with automake to produce Makefile.in
#
# $Id$
#
pkginclude_HEADERS = FindChirpDatatypes.h \
FindChirp.h \
FindChirpChisq.h \
FindChirpSP.h \
FindChirpTD.h \
FindChirpACTD.h \
FindChirpBCV.h \
FindChirpPTF.h \
FindChirpBCVSpin.h \
CoherentInspiral.h
MOSTLYCLEANFILES = .dvi-dep
DISTCLEANFILES = *.tex
all-local: include-link
dvi-local: .dvi-dep
@INCLUDEMKFILE@
@DVIMKFILE@
## Process this file with automake to produce Makefile.in
#
# $Id$
#
noinst_LTLIBRARIES = libfindchirp.la
FINDCHIRPSOURCES = FindChirpMemory.c FindChirpLinkedList.c \
FindChirpData.c FindChirpTemplate.c \
FindChirpFilterInit.c FindChirpChisqInit.c \
FindChirpFilter.c FindChirpChisq.c \
FindChirpSPData.c FindChirpSPTemplate.c \
FindChirpTDData.c FindChirpTDTemplate.c \
FindChirpBCVData.c FindChirpBCVTemplate.c \
FindChirpBCVFilter.c FindChirpBCVChisq.c \
FindChirpBCVSpinData.c FindChirpBCVSpinTemplate.c \
FindChirpBCVSpinFilter.c FindChirpBCVSpinChisq.c \
FindChirpPTFTemplate.c FindChirpPTFWaveform.c FindChirpPTFFilter.c \
FindChirpSimulation.c FindChirpFilterOutputVeto.c \
FindChirpStoreEvent.c FindChirpClusterEvents.c \
FindChirpBCVCFilter.c CoherentInspiralFilter.c \
CoherentInspiralInput.c FindChirpBankVeto.c \
FindChirpIMRSimulation.c FindChirpPhenomWaveform.c \
# FindChirpACTDTemplate.c FindChirpACTDFilter.c
libfindchirp_la_SOURCES = $(FINDCHIRPSOURCES)
INCLUDES = -I$(top_builddir)/include -I$(srcdir)/../include
MOSTLYCLEANFILES = .dvi-dep
DISTCLEANFILES = *.tex
dvi-local: .dvi-dep
@DVIMKFILE@
## Process this file with automake to produce Makefile.in
#
# $Id$
#
check_PROGRAMS = FindChirpBCVSpinTest FindChirpTDTest FindChirpBankVetoTest #FindChirpACTDTest
#CoherentInspiralInputTest
TESTS = NoTest.sh
EXTRA_DIST = NoTest.sh FindChirpTmpltTest.c FindChirpSPTest.c FindChirpBCVSpinTest.c FindChirpBankVetoTest.c
EXTRA_TEXSOURCES = NoTest.sh
#FindChirpTmpltTest_SOURCES = FindChirpTmpltTest.c
#FindChirpTmpltTest_LDADD = $(top_builddir)/packages/support/src/liblalsupport.la $(top_builddir)/lib/liblal.la
#CoherentInspiralInputTest_SOURCES = CoherentInspiralInputTest.c
FindChirpTDTest_SOURCES = FindChirpTDTest.c FindChirpTDTest.h
FindChirpBankVetoTest_SOURCES = FindChirpBankVetoTest.c
FindChirpTDTest_LDADD = $(top_builddir)/packages/support/src/liblalsupport.la $(top_builddir)/lib/liblal.la
FindChirpBCVSpinTest_SOURCES = FindChirpBCVSpinTest.c
LDADD = $(top_builddir)/packages/support/src/liblalsupport.la $(top_builddir)/lib/liblal.la
INCLUDES = -I$(top_builddir)/include -I$(srcdir)/../include
MOSTLYCLEANFILES = .dvi-dep
CLEANFILES = FindChirpTmpltTest
DISTCLEANFILES = *.tex
dvi-local: .dvi-dep
@DVIMKFILE@
#!/bin/sh
# <lalLaTeX>
# There are no tests currently in findchirp.
# </lalLaTeX>
exit 77
......@@ -43,9 +43,6 @@ distributions of sources.
\newpage\input{InjectH}
\newpage\input{SimulateCoherentGWH}
\newpage\input{SimulateInspiralH}
\newpage\input{GenerateInspiralH}
\newpage\input{GeneratePPNInspiralH}
\newpage\input{SkyCoordinatesLaldocH}
\newpage\begin{thebibliography}{1}
......
......@@ -158,10 +158,6 @@ LALSSInjectTimeSeries( LALStatus *,
REAL4TimeSeries *output,
REAL4TimeSeries *signalvec );
/* <lalLaTeX>
\newpage\input{BasicInjectTestC}
</lalLaTeX> */
#ifdef __cplusplus
#pragma {
}
......
pkginclude_HEADERS = \
GenerateInspRing.h \
GenerateInspiral.h \
GeneratePPNInspiral.h \
Inject.h \
InspiralInjectionParams.h \
LALSimInspiral.h \
LALSimulation.h \
NRWaveInject.h \
SimulateCoherentGW.h \
SimulateInspiral.h \
SkyCoordinates.h \
SkyCoordinatesLaldoc.h
......
......@@ -2,21 +2,10 @@ noinst_LTLIBRARIES = libinject.la
libinject_la_SOURCES = \
CelestialCoordinates.c \
CelestialCoordinatesLaldoc.c \
GenerateInspRing.c \
GenerateInspiral.c \
GenerateInspiralSmooth.c \
GeneratePPNAmpCorInspiral.c \
GeneratePPNInspiral.c \
GetInspiralParams.c \
InjectTimeSeries.c \
InjectVector.c \
InspiralInjectionParams.c \
LALSimInspiral.c \
LALSimInspiralPNMode.c \
LALSimulation.c \
NRWaveInject.c \
SimulateCoherentGW.c \
SimulateInspiral.c \
SkyCoordinates.c \
TerrestrialCoordinates.c \
check_series_macros.h
......
Markdown is supported
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