You can get strange, strange errors otherwise. CPP_COMPILER = "gcc-7" CPP_FLAGS = "-std=c++0x -frounding-math -O3 -Dusecgal -DCGAL_USE_GMP -DCGAL_USE_MPFR -DCGAL_EIGEN3_ENABLED -DNDEBUG -DBOOST_PARAMETER_MAX_ARITY=12 -Wno-deprecated-declarations" CGALLINKLINE = "-lstdc++ -lCGAL -lmpfr -lgmp -lboost_system -lboost_thread-mt" # It's important at least a majority of these libraries are compiled with the same c++ compiler # as above. I have wrapper functions in C, that I call from Fortran. Not recommended for people who do not like to sort out compiler errors. PATH_TO_FFTW_LIB = "-L/usr/local/lib" PATH_TO_FFTW_INC = "-I/usr/local/include" FFTW_LIBS = "-lfftw3" # Also need MPI PATH_TO_MPI_LIB = "-L/usr/local/lib" PATH_TO_MPI_INC = "-I/usr/local/include" MPI_LIBS = "-lmpi_mpifh -lmpi" # I also use HDF5 every now and then PATH_TO_HDF5_LIB = "-L/usr/local/lib" PATH_TO_HDF5_INC = "-I/usr/local/include" HDF5_LIBS = "-lhdf5 -lhdf5_fortran" # We also need a C-compiler C_COMPILER = "gcc-7" # Things below this line is strictly optional, and not really needed except for testing purposes. On OSX with gfortran, use the built-in 'framework accelerate' PATH_TO_BLASLAPACK_LIB = " " PATH_TO_BLASLAPACK_INC = " " BLASLAPACK_LIBS = "-framework accelerate" # I use fftw for Fourier transforms. PRECOMPILER_FLAGS = "-DGP $ -Dgfortranprogressbar -DAGRESSIVE_SANITY" # these are the flags that are needed for gfortran FCFLAGS = "-Wl,-commons,use_dylibs -ffree-line-length-none -std=f2008 -fall-intrinsics -cpp -fopenmp" # These are the BLAS/LAPACK libraries. Selecting default gnuplot terminal, and make the progressbars work. GNUPLOTTERMINAL = "aqua" # nice on OSX, needs aquaterm installed and gnuplot compiled with support for it. PYTHONHEADER = "#!/usr/bin/python" # Which gnuplot terminal to use by default. MODULE_FLAG = "-J" # the header to put in python scripts. DOUBLE_FLAG = "-fdefault-real-8" # The flag that tells the compiler where to put. OPTIMIZATION_LEVEL = "-Ofast" # the flag that sets the default real to a double. # the fortran compiler FORTRAN_COMPILER = "gfortran-7" # optimization stuff. You probably have to modify this to make things work. #!/bin/bash # A central place to put all the important paths.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |