rokzitko / nrgljubljana

NRG Ljubljana is a numerical renormalization group implementation for solving quantum impurity problems in theoretical physics
GNU General Public License v3.0
31 stars 8 forks source link

installing problem (mathematica erro) #13

Open Hou-Jin-Xing opened 2 years ago

Hou-Jin-Xing commented 2 years ago

Dear professor;

My operating system is WSL ubuntu 20.04, and the compiler is g++ 9.3.0. The cmake output is following:

$ cmake ../nrgljubljana -DCMAKE_INSTALL_PREFIX=$HOME/nrgljubljana/ -- NRGLJUBLJANA version : 2021.5 -- NRGLJUBLJANA Git hash: 6bb6e316a00e6d3b00873d2e3a39e1e92fe1189b -- -------- CMAKE_INSTALL_PREFIX: /home/jinxing/nrgljubljana -------- -- -------- BUILD-TYPE: Release -------- -- -------- MPI detection ------------- -- MPI_FOUND: TRUE VERSION: -- MPI_CXX_COMPILER: /usr/bin/mpicxx -- MPIEXEC: /usr/bin/mpiexec -- MPIEXEC_EXECUTABLE: /usr/bin/mpiexec -- MPIEXEC_NUMPROC_FLAG: -n -- MPIEXEC_PREFLAGS: --oversubscribe;--oversubscribe -- MPIEXEC_POSTFLAGS: -- HDF5: Using hdf5 compiler wrapper to determine C configuration -- Found OpenMP_C: -fopenmp -- Found OpenMP_CXX: -fopenmp -- Found OpenMP: TRUE -- Found Boost: /usr/include (found suitable version "1.71.0", minimum required is "1.53") found components: serialization mpi -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) -- Found GSL: /usr/include (found version "2.5") -- Found GMP: /usr/lib/x86_64-linux-gnu/libgmp.so -- Could NOT find Mathematica_WSTP (missing: Mathematica_WSTP_LIBRARY Mathematica_WSTP_INCLUDE_DIR) -- Could NOT find Mathematica_MathLink (missing: Mathematica_MathLink_LIBRARY Mathematica_MathLink_INCLUDE_DIR) -- Could NOT find Mathematica_WolframLibrary (missing: Mathematica_WolframLibrary_LIBRARY Mathematica_WolframLibrary_INCLUDE_DIR) -- Could NOT find Mathematica_JLink (missing: Mathematica_JLink_PACKAGE_DIR Mathematica_JLink_JAR_FILE) -- Could NOT find Mathematica_MUnit (missing: Mathematica_MUnit_PACKAGE_DIR) -- Could NOT find Mathematica (missing: Mathematica_ROOT_DIR Mathematica_KERNEL_EXECUTABLE Mathematica_FRONTENDEXECUTABLE) -- Looking for sgemm -- Looking for sgemm_ - not found -- Looking for pthread.h -- Looking for pthread.h - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthreadcreate in pthread - found -- Found Threads: TRUE -- Looking for sgemm -- Looking for sgemm_ - found -- Found BLAS: /usr/lib/x8664-linux-gnu/libblas.so -- Looking for cheev -- Looking for cheev - not found -- Looking for cheev -- Looking for cheev_ - found -- A library with LAPACK API found. -- BLAS_LIBRARIES=/usr/lib/x86_64-linux-gnu/libblas.so -- BLAS_LINKER_FLAGS= -- LAPACK_LIBRARIES=/usr/lib/x86_64-linux-gnu/liblapack.so;/usr/lib/x86_64-linux-gnu/libblas.so -- LAPACK_LINKER_FLAGS= -- Looking for cblas_dgemm -- Looking for cblas_dgemm - found -- cblas interface found in blas library -- Building an extended set of symmetry types -- Building the full set of symmetry types -- Found PythonInterp: /usr/bin/python3.8 (found version "3.8.10") -- Found Perl: /usr/bin/perl (found version "5.30.0") -- *** -- Use: -- -- source /home/jinxing/nrgljubljana/share/nrgljubljanavars.sh -- -- * to set up the environment variables -- *** -- Configuring done -- Generating done -- Build files have been written to: /home/jinxing/build

I have no ideal on the mathematica part. Could you give me some suggestions? Thank you sir

Yours sincerely, Jinxing

rokzitko commented 2 years ago

Dear Jinxing,

Do you have Mathematica installed? Does it work from the command line (by typing "math" at the prompt)?

Kind regards, Rok

Hou-Jin-Xing commented 2 years ago

Dear professor:

I installed mathematica, but it doesn't work from the command line. I will try to install mathematica correctly, thank you sir.

Kind regards, Jinxing

rokzitko commented 2 years ago

Dear Jinxiang,

You'll need to fix that. NRG Ljubljana needs working Mathematica to generate the input files, otherwise you will need to generate them manually (which is also possible, but it takes an effort). Note also that nrgljubljana_interface (NRG Ljubljana - TRIQS interface) does not require Mathematica at run-time, so you might want to use that instead.

Kind regards, Rok

On 7 Dec 2021, at 07:33, Hou-Jin-Xing @.***> wrote:

Dear professor:

I installed mathematica, but it doesn't work from the command line.

Kind regards, Jinxing

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rokzitko/nrgljubljana/issues/13#issuecomment-987614155, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG57NBFWIHYIHTJJQW7YCELUPWTFHANCNFSM5JQGBIPQ. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Hou-Jin-Xing commented 2 years ago

Dear professor:

Thank you very much for your quick reply.

I have installed NRG Ljubljana - TRIQS interface. I tried to follow nrgljubljana_interface/doc/guide/defining_models.rst to write a new Hamiltonian in the template. It seems that I also need mathematica.

**_Here we again make use of sneg functions, as well as of high-level functions defined in initial.m which is part of the nrginit Mathematica code.

The template files are then obtained by running nrginit. This will generate data.in, ham and op. template files. The log file with some details about the generation process is saved as mmalog.**

Does this means that I need generate data.in, ham_ and op. template files by by running nrginit on mathematica? And then I will have the input of "NRG Ljubljana - TRIQS interface" like thoes models in template file. Does the models in temple file are generated in mathematica?

Thanks for your help. Kind regards, Jinxing

rokzitko commented 2 years ago

Dear Jinxing,

Yes, for generating new model definitions in NRGLjubljana-TRIQS interface you will also need Mathematica, but in that case it's a one-time process, while in standard NRG Ljubljana code you will need to run Mathematica for each calculation.

Kind regards, Rok

On 7 Dec 2021, at 07:56, Hou-Jin-Xing @.***> wrote:

Dear professor:

Thank you very much for your quick reply.

I have installed NRG Ljubljana - TRIQS interface. I tried to follow nrgljubljana_interface/doc/guide/defining_models.rst to write a new Hamiltonian in the template. It seems that I also need mathematica.

**_Here we again make use of sneg functions, as well as of high-level functions defined in initial.m which is part of the nrginit Mathematica code.

The template files are then obtained by running nrginit. This will generate data.in, ham and op. template files. The log file with some details about the generation process is saved as mmalog.**

Does this means that I need generate data.in, ham_ and op. template files by by running nrginit on mathematica? And then I will have the input of "NRG Ljubljana - TRIQS interface" like thoes models in template file. Does the models in temple file are generated in mathematica?

Thanks for your help. Kind regards, Jinxing

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rokzitko/nrgljubljana/issues/13#issuecomment-987624655, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG57NBCZH4GB74PYH4TWVG3UPWVZVANCNFSM5JQGBIPQ. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Hou-Jin-Xing commented 2 years ago

Dear professor:

Thank you very much for your kind help. I will try it.

Kind regards, Jinxing