Commit 0927c943 authored by Plaszczynski Stephane's avatar Plaszczynski Stephane
Browse files

No commit message

No commit message
parent 1999419b
package CAMEL
use class v2.4.3
#compiler options
macro cpp "icpc"
macro cppflags " -O2 -ip -ansi_alias -align -Wbrief -Wdeprecated -Wuninitialized -align -Wbrief -Wunused-function -Wpointer-arith -Wreturn-type"
#CAMEL includes
include_dirs " ../src"
include_dirs "../src/camel"
include_dirs "../src/Minuit2-5.28.00/src"
include_dirs "../src/Minuit2-5.28.00/inc"
include_dirs "../src/cxxsupport"
include_dirs "../src/AbsRand"
include_dirs "../src/camel/JLA"
include_dirs "../src/camel/JLA/jla_likelihood_v3/src"
#JLA :needs cblas/lapack
macro_append cppflags ' -DJLA '
macro_append CAMEL_linkopts " -L$(MKLROOT)/lib/intel64 -lmkl_intel_lp64 -lmkl_core -lmkl_intel_thread -ljla "
#cfitsio: use same than plc
#include_dirs "$(CLIKDIR)/include"
#macro_append CAMEL_linkopts " -L$(CLIKDIR)/lib -lcfitsio "
#PLANCK
macro_append cppflags " -DCLIK $(CLIKCFLAGS)"
macro_append cflags " -DCLIK $(CLIKCFLAGS)"
macro_append CAMEL_linkopts " $(CLIKLIBS) "
#include_dirs "$(CLIKDIR)/include"
#macro_append CAMEL_linkopts "-L$(CLIKDIR)/lib -lcfitsio -lclik "
# PICO
include_dirs "/usr/local/python/python-2.7/include/python2.7"
include_dirs "/usr/local/python/python-2.7/lib/python2.7/site-packages/numpy/core/include"
#pypico v3-2 from plaszczy
macro_append CAMEL_linkopts " -L$(PICO_CODE) -lpico -L/usr/local/python/python-2.7/lib -lpython2.7 "
macro_append cppflags ' -DPICODATA=\"$(PICO_DATA)\" '
#CAMEL LIBRARIES
library Minuit -no_share ../src/Minuit2-5.28.00/src/*.cxx
library Util -no_share -x=ddl.cc ../src/cxxsupport/*.cc
library AbsRand -no_share ../src/AbsRand/*.cc
library CLHEP -no_share ../src/CLHEP/src/*.cc
library jla -no_share ../src/camel/JLA/jla_likelihood_v3/src/ini.c ../src/camel/JLA/jla_likelihood_v3/src/jla.cc
macro camelsrc "*.cc CMB/*.cc BAO/*.cc Lensing/*.cc pico/*.cc JLA/*.cc Class/*.cc Constraints/*.cc"
library MinuitFit -no_share -s=../src/camel $(camelsrc)
library MCMC -no_share -s=../src/camel/MCMC *.cc
macro CAMEL_linkopts "-L$(CAMEL_root)/${CMTCONFIG} -lMinuitFit -lMinuit -lMCMC -lCLHEP -lAbsRand -lUtil "
macro_append cppflags ' -DPARFILE=\"$(CAMELROOT)/par\" '
#CAMEL applications
# pour relinker si changement: toutes les application du package
macro CAMEL_stamps $(PACKAGE_ROOT)/$(CMTCONFIG)/MinuitFit.stamp
macro application_suffix ""
#groupe exec
application writeChi2 -group=exec -s=../src/camel exec/writeChi2.cc
application writeSpectra -group=exec -s=../src/camel exec/writeSpectra.cc
application Minimize -group=exec -s=../src/camel exec/Minimize.cc
application ScanParam -group=exec -s=../src/camel exec/ScanParam.cc
application mcmc -group=exec -s=../src/camel/MCMC exec/mainMCMC.cc
#tests
application testKlass -group=test -s=../src/camel test/testKlass.cc
application testCLHEP -group=test -s=../src/camel/test testCLHEP.cc
application testBAO -group=test -s=../src/camel/test testBAO.cc
application testHiLLiPOP -group=test -s=../src/camel/test testHiLLiPOP.cc
application test_clik -group=test -s=../src/camel test/test_clik.cc
application test_lensing -group=test -s=../src/camel test/test_lensing.cc
application test_jla -group=test -s=../src/camel test/test_jla.cc
application testPico -group=test -s=../src/camel/pico/exec testPico.cc
#lIST OF ALL DEPENDENCIES
macro_append Minimize_dependencies " MinuitFit "
macro_append ScanParam_dependencies " MinuitFit "
macro_append writeChi2_dependencies " MinuitFit "
macro_append writeSpectra_dependencies " MinuitFit "
macro_append mcmc_dependencies " MinuitFit MCMC"
macro_append testKlass_dependencies " MinuitFit"
macro_append clik_example_CC_dependencies " MinuitFit "
macro_append test_clik_dependencies " MinuitFit "
macro_append test_lensing_dependencies " MinuitFit "
macro_append testCLHEP_dependencies " CLHEP "
macro_append testBAO_dependencies " MinuitFit "
macro_append testHiLLiPOP_dependencies " MinuitFit "
macro_append test_jla_dependencies " MinuitFit "
macro_append testPico_dependencies " MinuitFit "
package CAPTAINFLAM
package CAMEL
use class v2.4.3
#ICC (faire icc_env avant)
#compiler options
macro cpp "icpc"
macro cppflags " -O2 -ip -ansi_alias -align -Wbrief "
macro cppflags " -O2 -ip -ansi_alias -align -Wbrief -Wdeprecated -Wuninitialized -align -Wbrief -Wunused-function -Wpointer-arith -Wreturn-type"
#include (added JLA)
include_dirs ../src/camel ../src/Minuit2-5.28.00/src/ ../src ../src/Minuit2-5.28.00/inc/ ../src/cxxsupport ../src/AbsRand ../src/FI ../src/camel/JLA/jla_likelihood_v3/src/
#CAMEL includes
include_dirs " ../src"
include_dirs "../src/camel"
include_dirs "../src/Minuit2-5.28.00/src"
include_dirs "../src/Minuit2-5.28.00/inc"
include_dirs "../src/cxxsupport"
include_dirs "../src/AbsRand"
include_dirs "../src/camel/JLA"
include_dirs "../src/camel/JLA/jla_likelihood_v3/src"
# define PARFILE macro
macro_append cppflags ' -DPARFILE=\"$(CAMELROOT)/par\" '
#CLIK
macro_append cflags " -DCLIK ${CLIKCFLAGS}"
macro_append cppflags " -DCLIK ${CLIKCFLAGS}"
#include_dirs " $(HL2_USR_LOCAL)/cfitsio"
#JLA :needs cblas/lapack
macro_append cppflags ' -DJLA '
macro_append CAMEL_linkopts " -L$(MKLROOT)/lib/intel64 -lmkl_intel_lp64 -lmkl_core -lmkl_intel_thread -ljla "
#cfitsio: use same than plc
#include_dirs "$(CLIKDIR)/include"
#macro_append CAMEL_linkopts " -L$(CLIKDIR)/lib -lcfitsio "
#PICO
#PLANCK
macro_append cppflags " -DCLIK $(CLIKCFLAGS)"
macro_append cflags " -DCLIK $(CLIKCFLAGS)"
macro_append CAMEL_linkopts " $(CLIKLIBS) "
#include_dirs "$(CLIKDIR)/include"
#macro_append CAMEL_linkopts "-L$(CLIKDIR)/lib -lcfitsio -lclik "
# PICO
include_dirs "/usr/local/python/python-2.7/include/python2.7"
include_dirs "/usr/local/python/python-2.7/lib/python2.7/site-packages/numpy/core/include"
macro_append cppflags ' -DPICODATA=\"/afs/in2p3.fr/group/planck/plaszczy/pypico-3.2.0/pico3_tailmonty_v33.dat\" '
#pypico v3-2 from plaszczy
macro_append CAMEL_linkopts " -L$(PICO_CODE) -lpico -L/usr/local/python/python-2.7/lib -lpython2.7 "
#JLA
macro_append cflags " -DJLA "
macro_append cppflags " -DJLA "
library jla -no_share ../src/camel/JLA/jla_likelihood_v3/src/ini.c ../src/camel/JLA/jla_likelihood_v3/src/jla.cc
macro_append cppflags ' -DPICODATA=\"$(PICO_DATA)\" '
#creation lib
#CAMEL LIBRARIES
library Minuit -no_share ../src/Minuit2-5.28.00/src/*.cxx
library Util -no_share -x=ddl.cc ../src/cxxsupport/*.cc
library AbsRand -no_share ../src/AbsRand/*.cc
library CLHEP -no_share ../src/CLHEP/src/*.cc
library jla -no_share ../src/camel/JLA/jla_likelihood_v3/src/ini.c ../src/camel/JLA/jla_likelihood_v3/src/jla.cc
library MinuitFit -no_share -s=../src/camel *.cc CMB/*.cc Lensing/*.cc BAO/*.cc pico/*.cc JLA/*.cc Class/*.cc Constraints/*.cc
macro camelsrc "*.cc CMB/*.cc BAO/*.cc Lensing/*.cc pico/*.cc JLA/*.cc Class/*.cc Constraints/*.cc"
library MinuitFit -no_share -s=../src/camel $(camelsrc)
library MCMC -no_share -s=../src/camel/MCMC *.cc
#librairies locales
macro CAPTAINFLAM_linkopts "-L$(CAPTAINFLAM_root)/${CMTCONFIG} -lMinuitFit -lMCMC -lMinuit -lCLHEP -lAbsRand -lUtil "
#CLIK
macro_append CAPTAINFLAM_linkopts " $(CLIKLIBS) "
#macro_append CAPTAINFLAM_linkopts "-lcfitsio" \
# ccali-sl6 " $(HL2_USR_LOCAL)/cfitsio/libcfitsio.a "
#JLA
macro_append CAPTAINFLAM_linkopts " -ljla -L/usr/local/intel/mkl/lib/intel64/ -lmkl_intel_lp64 -lmkl_core -lmkl_intel_thread "
macro CAMEL_linkopts "-L$(CAMEL_root)/${CMTCONFIG} -lMinuitFit -lMinuit -lMCMC -lCLHEP -lAbsRand -lUtil "
macro_append cppflags ' -DPARFILE=\"$(CAMELROOT)/par\" '
#PICO
macro_append CAPTAINFLAM_linkopts " -L/afs/in2p3.fr/group/planck/plaszczy/python2.7/site-packages/pypico/ -lpico -L/usr/local/python/python-2.7/lib -lpython2.7 "
#CAMEL applications
# pour relinker si changement: toutes les application du package
macro CAPTAINFLAM_stamps "$(PACKAGE_ROOT)/$(CMTCONFIG)/MinuitFit.stamp $(PACKAGE_ROOT)/$(CMTCONFIG)/MCMC.stamp"
#
#pour Matthieu
macro CAMEL_stamps $(PACKAGE_ROOT)/$(CMTCONFIG)/MinuitFit.stamp
macro application_suffix ""
#groupe exec
# dependencies
application Minimize -group=exec -s=../src/camel exec/Minimize.cc
application FitClassFromPico -group=exec -s=../src/camel exec/FitClassFromPico.cc
application ScanParam -group=exec -s=../src/camel exec/ScanParam.cc
application ScanParam2D -group=exec -s=../src/camel exec/ScanParam2D.cc
application writeChi2 -group=exec -s=../src/camel exec/writeChi2.cc
application writeSpectra -group=exec -s=../src/camel exec/writeSpectra.cc
application genegauss -group=exec -s=../src/camel exec/genegauss.cc
#application AddForegrounds -group=exec -s=../src/camel exec/AddForegrounds.cc
#MCMC
application Minimize -group=exec -s=../src/camel exec/Minimize.cc
application ScanParam -group=exec -s=../src/camel exec/ScanParam.cc
application mcmc -group=exec -s=../src/camel/MCMC exec/mainMCMC.cc
#tests
application testKlass -group=test -s=../src/camel test/testKlass.cc
#application clik_example_C -group=test -s=../src/camel test/clik_example_c.c
application clik_example_CC -group=test -s=../src/camel test/clik_example_c.cc
application test_clik -group=test -s=../src/camel test/test_clik.cc
application test_lensing -group=test -s=../src/camel test/test_lensing.cc
application testCLHEP -group=test -s=../src/camel/test testCLHEP.cc
application testBAO -group=test -s=../src/camel/test testBAO.cc
application testHiLLiPOP -group=test -s=../src/camel/test testHiLLiPOP.cc
application test_clik -group=test -s=../src/camel test/test_clik.cc
application test_lensing -group=test -s=../src/camel test/test_lensing.cc
application test_jla -group=test -s=../src/camel test/test_jla.cc
application testPico -group=test -s=../src/camel/pico exec/testPico.cc
#FI
application fitFI -group=FI -s=../src/FI *.cc exec/fitFI.cc
application fitcl_txt -group=FI -s=../src/FI *.cc exec/fitcl_txt.cc
application testPico -group=test -s=../src/camel/pico/exec testPico.cc
#lIST OF ALL DEPENDENCIES
macro_append Minimize_dependencies " MinuitFit "
macro_append FitClassFromPico_dependencies " MinuitFit "
macro_append ScanParam_dependencies " MinuitFit "
macro_append ScanParamTwice_dependencies " MinuitFit "
macro_append ScanParam2D_dependencies " MinuitFit "
macro_append writeChi2_dependencies " MinuitFit "
macro_append writeSpectra_dependencies " MinuitFit "
macro_append genegauss_dependencies " MinuitFit "
macro_append AddForegrounds_dependencies " MinuitFit "
macro_append mcmc_dependencies " MinuitFit MCMC"
macro_append testKlass_dependencies " MinuitFit Class"
macro_append testKlass_dependencies " MinuitFit"
macro_append clik_example_CC_dependencies " MinuitFit "
macro_append test_clik_dependencies " MinuitFit "
macro_append test_lensing_dependencies " MinuitFit "
......@@ -108,3 +94,4 @@ macro_append testBAO_dependencies " MinuitFit "
macro_append testHiLLiPOP_dependencies " MinuitFit "
macro_append test_jla_dependencies " MinuitFit "
macro_append testPico_dependencies " MinuitFit "
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