Git Product home page Git Product logo

Comments (2)

Allen-Tildesley avatar Allen-Tildesley commented on June 30, 2024

Thanks for your interest. The programs are not ready yet, and we won't be publicizing them until the book is published. Nonetheless, I believe that the Fortran codes should be nearly complete.

Everything "works for me": no compilation or build issues.

On Issues 1 and 2, your implementation of scons seems not to be compiling the required modules before tacklng the main program. When I run scons I get, for diffusion_test:

scons: building associated VariantDir targets: build_md_nve_lj_omp build_smc_nvt_lj build_md_chain_nve_lj build_qmc_pi_sho build_grint build_test_pot_qq build_md_chain_mts_lj build_test_pot_gb build_md_nve_lj build_adjust build_test_pot_twist build_mc_npt_lj_ll build_mc_zvt_lj_ll build_bd_nvt_lj build_pair_distribution build_test_pot_at build_mc_chain_wl_sw build_test_pot_dq build_md_nve_hs build_mc_chain_nvt_sw build_md_nvt_lj build_mc_nvt_lj_re build_mc_nvt_poly_lj build_md_nvt_lj_llle build_md_nve_lj_ll build_test_pot_bend build_md_nvt_lj_le build_test_pot_dd build_cluster build_mc_zvt_lj build_error_calc build_mc_nvt_lj_ll build_initialize build_eos_hs build_diffusion build_mc_nvt_sc build_t_tensor build_mc_npt_hs build_mc_npt_lj build_mc_nvt_lj build_mc_nvt_hs build_eos_lj build_hit_and_miss build_qmc_walk_sho build_sample_mean build_mc_npt_sc build_md_nve_lj_vl build_md_lj_mts build_mc_chain_nvt_cbmc_lj build_md_npt_lj build_dpd build_mc_gibbs_lj build_corfun build_mesh build_fft3dwrap build_wl_hist build_qmc_pi_lj build_diffusion_test
gfortran -o build_diffusion_test/config_io_module.o -c -fdefault-real-8 -fall-intrinsics -std=f2008 -Wall -Ibuild_diffusion_test -Jbuild_diffusion_test build_diffusion_test/config_io_module.f90
gfortran -o build_diffusion_test/maths_module.o -c -fdefault-real-8 -fall-intrinsics -std=f2008 -Wall -Ibuild_diffusion_test -Jbuild_diffusion_test build_diffusion_test/maths_module.f90
gfortran -o build_diffusion_test/diffusion_test.o -c -fdefault-real-8 -fall-intrinsics -std=f2008 -Wall -Ibuild_diffusion_test -Jbuild_diffusion_test build_diffusion_test/diffusion_test.f90
gfortran -o build_diffusion_test/diffusion_test build_diffusion_test/diffusion_test.o build_diffusion_test/config_io_module.o build_diffusion_test/maths_module.o

followed by, for qmc_pi_lj

gfortran -o build_qmc_pi_lj/averages_module.o -c -fdefault-real-8 -fall-intrinsics -std=f2008 -Wall -Ibuild_qmc_pi_lj -Jbuild_qmc_pi_lj build_qmc_pi_lj/averages_module.f90
gfortran -o build_qmc_pi_lj/config_io_module.o -c -fdefault-real-8 -fall-intrinsics -std=f2008 -Wall -Ibuild_qmc_pi_lj -Jbuild_qmc_pi_lj build_qmc_pi_lj/config_io_module.f90
gfortran -o build_qmc_pi_lj/lrc_lj_module.o -c -fdefault-real-8 -fall-intrinsics -std=f2008 -Wall -Ibuild_qmc_pi_lj -Jbuild_qmc_pi_lj build_qmc_pi_lj/lrc_lj_module.f90
gfortran -o build_qmc_pi_lj/maths_module.o -c -fdefault-real-8 -fall-intrinsics -std=f2008 -Wall -Ibuild_qmc_pi_lj -Jbuild_qmc_pi_lj build_qmc_pi_lj/maths_module.f90
gfortran -o build_qmc_pi_lj/qmc_pi_lj_module.o -c -fdefault-real-8 -fall-intrinsics -std=f2008 -Wall -Ibuild_qmc_pi_lj -Jbuild_qmc_pi_lj build_qmc_pi_lj/qmc_pi_lj_module.f90
gfortran -o build_qmc_pi_lj/qmc_pi_lj.o -c -fdefault-real-8 -fall-intrinsics -std=f2008 -Wall -Ibuild_qmc_pi_lj -Jbuild_qmc_pi_lj build_qmc_pi_lj/qmc_pi_lj.f90
gfortran -o build_qmc_pi_lj/qmc_pi_lj build_qmc_pi_lj/qmc_pi_lj.o build_qmc_pi_lj/qmc_pi_lj_module.o build_qmc_pi_lj/lrc_lj_module.o build_qmc_pi_lj/config_io_module.o build_qmc_pi_lj/averages_module.o build_qmc_pi_lj/maths_module.o

In your compilation I only see attempts to compile the main program. So my advice is to look into your scons installation and see if you can determine why this is happening. Any Fortran build would need to identify and handle the module files first.

On Issue 3, our aim is to wrap an FFT routine from the FFTW library. We are not trying to provide a general-purpose program that would attempt to choose between several libraries. So, it is necessary to install FFTW first and, if necessary, modify the variable that points to it, before compilation.

from examples.

Allen-Tildesley avatar Allen-Tildesley commented on June 30, 2024

I'm closing this issue now, as the compilation works for me, and the fault seems to lie in your version of scons. I have added a note to the README warning readers that their scons installation needs to be up to date (if they intend to use scons), that other ways of building the programs are available, and also that we cannot give additional support to the build process on the variety of machines out there.

from examples.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.