User Tools

Site Tools


tips:building_abinit

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
tips:building_abinit [2014/01/22 17:22] Yann Pouillontips:building_abinit [2017/05/24 11:30] (current) Matthieu Verstraete
Line 35: Line 35:
 export FC=ifort export FC=ifort
 export CC=icc export CC=icc
-</code>Then issue:<code>+</code> 
 +Then issue: 
 +<code>
 ./configure --enable-netcdf4 --prefix=/home/ucl/naps/sponce/local/Intel13  --enable-dap --enable-shared ./configure --enable-netcdf4 --prefix=/home/ucl/naps/sponce/local/Intel13  --enable-dap --enable-shared
 make  make 
 make install make install
 </code> </code>
-  - **Install Abinit with netCDF4**\\ Be careful if you have set flags into you .ac file. You should unset the variable first: <code>+  - **Install Abinit with netCDF4**\\  
 +Be careful if you have set flags into you .ac file. You should unset the variable first:  
 +<code>
 unset FC unset FC
 unset CC unset CC
-</code> You should then add the following lines into your .ac configuration file:<code>+</code>  
 +You should then add the following lines into your .ac configuration file: 
 +<code>
 with_netcdf_incs="-I/home/ucl/naps/sponce/local/Intel13/include" with_netcdf_incs="-I/home/ucl/naps/sponce/local/Intel13/include"
 with_netcdf_libs="-L/home/ucl/naps/sponce/local/Intel13/lib -lnetcdf -lnetcdff" with_netcdf_libs="-L/home/ucl/naps/sponce/local/Intel13/lib -lnetcdf -lnetcdff"
 with_trio_flavor="netcdf+etsf_io" with_trio_flavor="netcdf+etsf_io"
-</code> Then you should make a build directory into Abinit and issue: <code>+</code> 
 +For some mpi-io parallel I/O fancy stuff you may need to add the hdf5 explicitly  
 +<code>  
 +with_netcdf_incs="-I/home/ucl/naps/sponce/local/Intel13/include " 
 +with_netcdf_libs="-L/home/ucl/naps/sponce/local/Intel13/lib -lnetcdf -lnetcdff -lhdf5_fortran -lhdf5_hl -lhdf5" 
 +with_trio_flavor="netcdf+etsf_io" 
 +</code> 
 +Note that here all of the libraries have been put in the same lib and include directories for convenience (otherwise you need to add the corresponding -I<path>/include and -L<path>/lib statements) 
 + 
 +Then you should make a build directory into Abinit and issue:  
 +<code>
 ../configure --with-config-file='./name_of_your_ac_file.ac' ../configure --with-config-file='./name_of_your_ac_file.ac'
 make mj4 make mj4
tips/building_abinit.1390407731.txt.gz · Last modified: 2014/01/22 17:22 by Yann Pouillon