Loading .gitignore +4 −3 Original line number Diff line number Diff line build/aclocal.m4 build/autom4te.cache build/aux/* build/build_aux/* build/config.* build/configure build/configure~ build/cluster/* build/error.log build/libtool build/Makefile build/Makefile.in Loading @@ -15,5 +16,5 @@ build/libnptm/* containers/singularity/*.sif doc/build/* src/*/.deps src/*/objects/* src/*/dynobjects/* src/*/.dirstamp src/*/*.o No newline at end of file build/Makefile.am +16 −15 Original line number Diff line number Diff line AUTOMAKE_OPTIONS=subdir-objects lib_LTLIBRARIES=libnptm.la libnptm_la_SOURCES=../src/libnptm/algebraic.cpp ../src/libnptm/clu_subs.cpp ../src/libnptm/Commons.cpp ../src/libnptm/Configuration.cpp ../src/libnptm/file_io.cpp ../src/libnptm/lapack_calls.cpp ../src/libnptm/logging.cpp ../src/libnptm/magma_calls.cpp ../src/libnptm/Parsers.cpp ../src/libnptm/sph_subs.cpp ../src/libnptm/tfrfme.cpp ../src/libnptm/TransitionMatrix.cpp ../src/libnptm/tra_subs.cpp ../src/libnptm/types.cpp bin_PROGRAMS=edfb_clu clu np_cluster edfb_sph sph np_sphere frfme lffft np_trapping edfb_clu_SOURCES=../src/cluster/edfb_clu.f clu_SOURCES=../src/cluster/clu.f np_cluster_SOURCES=../src/cluster/np_cluster.cpp ../src/cluster/cluster.cpp edfb_sph_SOURCES=../src/sphere/edfb_sph.f sph_SOURCES=../src/sphere/sph.f np_sphere_SOURCES=../src/sphere/np_sphere.cpp ../src/sphere/sphere.cpp frfme_SOURCES=../src/trapping/frfme.f lffft_SOURCES=../src/trapping/lffft.f np_trapping_SOURCES=../src/trapping/np_trapping.cpp ../src/trapping/cfrfme.cpp ../src/trapping/clffft.cpp check_PROGRAMS=test_TEDF test_TTMS test_TEDF_SOURCES=../src/testing/test_TEDF.cpp test_TTMS_SOURCES=../src/testing/test_TTMS.cpp LDADD=libnptm/libnptm.la -L/usr/lib64 $(HDF5_LDFLAGS) lib_LTLIBRARIES=libnptm/libnptm.la libnptm_libnptm_la_SOURCES=../src/libnptm/algebraic.cpp ../src/libnptm/clu_subs.cpp ../src/libnptm/Commons.cpp ../src/libnptm/Configuration.cpp ../src/libnptm/file_io.cpp ../src/libnptm/lapack_calls.cpp ../src/libnptm/logging.cpp ../src/libnptm/magma_calls.cpp ../src/libnptm/Parsers.cpp ../src/libnptm/sph_subs.cpp ../src/libnptm/tfrfme.cpp ../src/libnptm/TransitionMatrix.cpp ../src/libnptm/tra_subs.cpp ../src/libnptm/types.cpp bin_PROGRAMS=cluster/edfb_clu cluster/clu cluster/np_cluster sphere/edfb_sph sphere/sph sphere/np_sphere trapping/frfme trapping/lffft trapping/np_trapping cluster_edfb_clu_SOURCES=../src/cluster/edfb_clu.f cluster_clu_SOURCES=../src/cluster/clu.f cluster_np_cluster_SOURCES=../src/cluster/np_cluster.cpp ../src/cluster/cluster.cpp sphere_edfb_sph_SOURCES=../src/sphere/edfb_sph.f sphere_sph_SOURCES=../src/sphere/sph.f sphere_np_sphere_SOURCES=../src/sphere/np_sphere.cpp ../src/sphere/sphere.cpp trapping_frfme_SOURCES=../src/trapping/frfme.f trapping_lffft_SOURCES=../src/trapping/lffft.f trapping_np_trapping_SOURCES=../src/trapping/np_trapping.cpp ../src/trapping/cfrfme.cpp ../src/trapping/clffft.cpp check_PROGRAMS=testing/test_TEDF testing/test_TTMS testing_test_TEDF_SOURCES=../src/testing/test_TEDF.cpp testing_test_TTMS_SOURCES=../src/testing/test_TTMS.cpp build/build_aux/.gitkeep 0 → 100644 +0 −0 Empty file added. build/configure.ac +36 −5 Original line number Diff line number Diff line # CAPABILITY TESTING MACROS m4_define( [M4_HDF5_LIB], [cat > nptm_test_hdf5.cpp <<EOF #include <hdf5.h> int main(int argc, char **argv) { hid_t file_id = 0; herr_t status = H5Iis_valid(file_id); return (int)status; } EOF $CXX -o nptm_test_hdf5 nptm_test_hdf5.cpp -I$HDF5_INCLUDE -L$HDF5_LIB -lhdf5 > /dev/null 2>>error.log export TEST_HDF5_LIB=$? rm nptm_test_hdf5.cpp if test "x$TEST_HDF5_LIB" = "x0"; then rm nptm_test_hdf5 fi] ) # END CAPABILITY TESTING MACROS Loading @@ -9,7 +26,7 @@ AC_INIT([np_tmcode], [8.04], [giovanni.lamura@inaf.it]) AC_CONFIG_SRCDIR([../src/libnptm/TransitionMatrix.cpp]) # Auxiliary build folder AC_CONFIG_AUX_DIR([aux]) AC_CONFIG_AUX_DIR([build_aux]) # automake initialization AM_INIT_AUTOMAKE([-Wall -Werror foreign]) Loading @@ -23,14 +40,19 @@ AC_PROG_CXX([mpicxx g++ clang]) LT_INIT # Environment setup FFLAGS="-std=legacy -O3" CXXFLAGS="-O3 -ggdb -Wno-format-contains-nul" SUBDIRS="cluster libnptm sphere testing trapping" AS_IF( [test "x$HDF5_INCLUDE" = "x"], [export HDF5_INCLUDE=/usr/include/hdf5/serial], [AC_MSG_NOTICE(["HDF5_INCLUDE=$HDF5_INCLUDE"])] ) AS_IF( [test "x$HDF5_LIB" = "x"], [export HDF5_LIB=/usr/lib/x86_64-linux-gnu/hdf5/serial], [AC_MSG_NOTICE(["HDF5_LIB=$HDF5_LIB"])] ) FFLAGS="-std=legacy -O3" CXXFLAGS="-O3 -ggdb -Wno-format-contains-nul -I $HDF5_INCLUDE" SUBDIRS="cluster libnptm sphere testing trapping" # Check for required headers AC_CHECK_HEADER( Loading @@ -39,6 +61,15 @@ AC_CHECK_HEADER( AC_MSG_ERROR(["Could not find HDF5 headers!]), ) # Check for required libraries M4_HDF5_LIB AS_IF( [test "x$TEST_HDF5_LIB" = "x0"], [export HDF5_LDFLAGS="-L${HDF5_LIB} -lhdf5"], [AC_MSG_ERROR(["HDF5 library not found!"])] ) AC_SUBST([HDF5_LDFLAGS]) # Send output to Makefiles AC_CONFIG_FILES([Makefile]) Loading Loading
.gitignore +4 −3 Original line number Diff line number Diff line build/aclocal.m4 build/autom4te.cache build/aux/* build/build_aux/* build/config.* build/configure build/configure~ build/cluster/* build/error.log build/libtool build/Makefile build/Makefile.in Loading @@ -15,5 +16,5 @@ build/libnptm/* containers/singularity/*.sif doc/build/* src/*/.deps src/*/objects/* src/*/dynobjects/* src/*/.dirstamp src/*/*.o No newline at end of file
build/Makefile.am +16 −15 Original line number Diff line number Diff line AUTOMAKE_OPTIONS=subdir-objects lib_LTLIBRARIES=libnptm.la libnptm_la_SOURCES=../src/libnptm/algebraic.cpp ../src/libnptm/clu_subs.cpp ../src/libnptm/Commons.cpp ../src/libnptm/Configuration.cpp ../src/libnptm/file_io.cpp ../src/libnptm/lapack_calls.cpp ../src/libnptm/logging.cpp ../src/libnptm/magma_calls.cpp ../src/libnptm/Parsers.cpp ../src/libnptm/sph_subs.cpp ../src/libnptm/tfrfme.cpp ../src/libnptm/TransitionMatrix.cpp ../src/libnptm/tra_subs.cpp ../src/libnptm/types.cpp bin_PROGRAMS=edfb_clu clu np_cluster edfb_sph sph np_sphere frfme lffft np_trapping edfb_clu_SOURCES=../src/cluster/edfb_clu.f clu_SOURCES=../src/cluster/clu.f np_cluster_SOURCES=../src/cluster/np_cluster.cpp ../src/cluster/cluster.cpp edfb_sph_SOURCES=../src/sphere/edfb_sph.f sph_SOURCES=../src/sphere/sph.f np_sphere_SOURCES=../src/sphere/np_sphere.cpp ../src/sphere/sphere.cpp frfme_SOURCES=../src/trapping/frfme.f lffft_SOURCES=../src/trapping/lffft.f np_trapping_SOURCES=../src/trapping/np_trapping.cpp ../src/trapping/cfrfme.cpp ../src/trapping/clffft.cpp check_PROGRAMS=test_TEDF test_TTMS test_TEDF_SOURCES=../src/testing/test_TEDF.cpp test_TTMS_SOURCES=../src/testing/test_TTMS.cpp LDADD=libnptm/libnptm.la -L/usr/lib64 $(HDF5_LDFLAGS) lib_LTLIBRARIES=libnptm/libnptm.la libnptm_libnptm_la_SOURCES=../src/libnptm/algebraic.cpp ../src/libnptm/clu_subs.cpp ../src/libnptm/Commons.cpp ../src/libnptm/Configuration.cpp ../src/libnptm/file_io.cpp ../src/libnptm/lapack_calls.cpp ../src/libnptm/logging.cpp ../src/libnptm/magma_calls.cpp ../src/libnptm/Parsers.cpp ../src/libnptm/sph_subs.cpp ../src/libnptm/tfrfme.cpp ../src/libnptm/TransitionMatrix.cpp ../src/libnptm/tra_subs.cpp ../src/libnptm/types.cpp bin_PROGRAMS=cluster/edfb_clu cluster/clu cluster/np_cluster sphere/edfb_sph sphere/sph sphere/np_sphere trapping/frfme trapping/lffft trapping/np_trapping cluster_edfb_clu_SOURCES=../src/cluster/edfb_clu.f cluster_clu_SOURCES=../src/cluster/clu.f cluster_np_cluster_SOURCES=../src/cluster/np_cluster.cpp ../src/cluster/cluster.cpp sphere_edfb_sph_SOURCES=../src/sphere/edfb_sph.f sphere_sph_SOURCES=../src/sphere/sph.f sphere_np_sphere_SOURCES=../src/sphere/np_sphere.cpp ../src/sphere/sphere.cpp trapping_frfme_SOURCES=../src/trapping/frfme.f trapping_lffft_SOURCES=../src/trapping/lffft.f trapping_np_trapping_SOURCES=../src/trapping/np_trapping.cpp ../src/trapping/cfrfme.cpp ../src/trapping/clffft.cpp check_PROGRAMS=testing/test_TEDF testing/test_TTMS testing_test_TEDF_SOURCES=../src/testing/test_TEDF.cpp testing_test_TTMS_SOURCES=../src/testing/test_TTMS.cpp
build/configure.ac +36 −5 Original line number Diff line number Diff line # CAPABILITY TESTING MACROS m4_define( [M4_HDF5_LIB], [cat > nptm_test_hdf5.cpp <<EOF #include <hdf5.h> int main(int argc, char **argv) { hid_t file_id = 0; herr_t status = H5Iis_valid(file_id); return (int)status; } EOF $CXX -o nptm_test_hdf5 nptm_test_hdf5.cpp -I$HDF5_INCLUDE -L$HDF5_LIB -lhdf5 > /dev/null 2>>error.log export TEST_HDF5_LIB=$? rm nptm_test_hdf5.cpp if test "x$TEST_HDF5_LIB" = "x0"; then rm nptm_test_hdf5 fi] ) # END CAPABILITY TESTING MACROS Loading @@ -9,7 +26,7 @@ AC_INIT([np_tmcode], [8.04], [giovanni.lamura@inaf.it]) AC_CONFIG_SRCDIR([../src/libnptm/TransitionMatrix.cpp]) # Auxiliary build folder AC_CONFIG_AUX_DIR([aux]) AC_CONFIG_AUX_DIR([build_aux]) # automake initialization AM_INIT_AUTOMAKE([-Wall -Werror foreign]) Loading @@ -23,14 +40,19 @@ AC_PROG_CXX([mpicxx g++ clang]) LT_INIT # Environment setup FFLAGS="-std=legacy -O3" CXXFLAGS="-O3 -ggdb -Wno-format-contains-nul" SUBDIRS="cluster libnptm sphere testing trapping" AS_IF( [test "x$HDF5_INCLUDE" = "x"], [export HDF5_INCLUDE=/usr/include/hdf5/serial], [AC_MSG_NOTICE(["HDF5_INCLUDE=$HDF5_INCLUDE"])] ) AS_IF( [test "x$HDF5_LIB" = "x"], [export HDF5_LIB=/usr/lib/x86_64-linux-gnu/hdf5/serial], [AC_MSG_NOTICE(["HDF5_LIB=$HDF5_LIB"])] ) FFLAGS="-std=legacy -O3" CXXFLAGS="-O3 -ggdb -Wno-format-contains-nul -I $HDF5_INCLUDE" SUBDIRS="cluster libnptm sphere testing trapping" # Check for required headers AC_CHECK_HEADER( Loading @@ -39,6 +61,15 @@ AC_CHECK_HEADER( AC_MSG_ERROR(["Could not find HDF5 headers!]), ) # Check for required libraries M4_HDF5_LIB AS_IF( [test "x$TEST_HDF5_LIB" = "x0"], [export HDF5_LDFLAGS="-L${HDF5_LIB} -lhdf5"], [AC_MSG_ERROR(["HDF5 library not found!"])] ) AC_SUBST([HDF5_LDFLAGS]) # Send output to Makefiles AC_CONFIG_FILES([Makefile]) Loading