AMReX-Codes / amrex

AMReX: Software Framework for Block Structured AMR
https://amrex-codes.github.io/amrex
Other
531 stars 341 forks source link

Configure & make does not install ml_layout_module #64

Closed certik closed 7 years ago

certik commented 7 years ago

I tried to build & test latest master (3724a070adf93b46c4170eccb6d295e466abaed8) of AMReX using the ./configure build system. Here is what I did:

module load cmake/3.6.2 gcc/5.3.0 openmpi/1.10.5 python/2.7-anaconda-4.1.1
cd $HOME/repos/amrex
./configure --prefix=`pwd`/inst
make -j16
make install
cd MiniApps/AMR_Adv_Diff_F90
mpicxx -I$HOME/repos/amrex/inst/include write_plotfile.f90 prob.f90 compute_flux.f90 init_phi.f90 update_phi.f90 advance.f90 main.f90 -L$HOME/repos/amrex/inst/lib -lfboxlib -lcboxlib -lmpi_usempif08

This works with the CMake build system (#63), but with ./configure it fails with:

write_plotfile.f90:3:6:

   use ml_layout_module
      1
Fatal Error: Can't open module file ‘ml_layout_module.mod’ for reading at (1): N
o such file or directory
compilation terminated.

This module is implemented the file Src/F_BaseLib/ml_layout.f90, but it is never installed:

$ ls inst/include/*.mod
inst/include/amrex_amrcore_module.mod
inst/include/amrex_amr_module.mod
inst/include/amrex_base_module.mod
inst/include/amrex_bc_types_module.mod
inst/include/amrex_boxarray_module.mod
inst/include/amrex_box_module.mod
inst/include/amrex_distromap_module.mod
inst/include/amrex_error_module.mod
inst/include/amrex_fab_module.mod
inst/include/amrex_filcc_module.mod
inst/include/amrex_fillpatch_module.mod
inst/include/amrex_fi_mpi.mod
inst/include/amrex_fluxregister_module.mod
inst/include/amrex_fort_module.mod
inst/include/amrex_geometry_module.mod
inst/include/amrex_interpolater_module.mod
inst/include/amrex_multifab_module.mod
inst/include/amrex_multifabutil_module.mod
inst/include/amrex_octree_module.mod
inst/include/amrex_omp_module.mod
inst/include/amrex_parallel_module.mod
inst/include/amrex_parmparse_module.mod
inst/include/amrex_particle_module.mod
inst/include/amrex_physbc_module.mod
inst/include/amrex_plotfile_module.mod
inst/include/amrex_string_module.mod
inst/include/amrex_tagbox_module.mod
inst/include/basefab_nd_module.mod
inst/include/bl_extrapolater.mod
inst/include/mempool_module.mod

Should it by installed by make and if not, why not? What should be the proper fix?

WeiqunZhang commented 7 years ago

Again, MiniApps/AMR_Adv_Diff_F90 uses Fortran BoxLib, and it is no longer supported. See Tutorials/Amr/Advection_F for an example of AMReX Fortran interface.