Skip to content

Commit

Permalink
Added ifort compilation script.
Browse files Browse the repository at this point in the history
  • Loading branch information
mpickem committed Nov 6, 2018
1 parent fc4981e commit 4807d51
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ For more detailed library information please refer to [[Libraries and tools refe
## Wrapper installation
Compile the file `hdf5_wrapper.f90` with proper linking to your local `hdf5 `library.
In your program use the binding `use hdf5_wrapper` to use the wrapper (see `test_example.f90`).
A minimalistic compilation script can be found in `compile.sh`.
A minimalistic compilation script can be found in `compile_gfortran.sh` and `compile_ifort.sh`.

## HDF5 interface and file handling

Expand Down
2 changes: 0 additions & 2 deletions compile.sh → compile_gfortran.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,5 @@ gfortran -c hdf5_wrapper.f90 -o hdf5_wrapper.o -I/opt/hdf5-1.8.20_gcc/include
gfortran -c test_examples.f90 -o test_examples.o -I/opt/hdf5-1.8.20_gcc/include
gfortran test_examples.o hdf5_wrapper.o -o main -I/opt/hdf5-1.8.20_gcc/include -L/opt/hdf5-1.8.20_gcc/lib -lhdf5_fortran -lhdf5hl_fortran


export LD_LIBRARY_PATH=/opt/hdf5-1.8.20_gcc/lib:$LD_LIBRARY_PATH
./main

7 changes: 7 additions & 0 deletions compile_ifort.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#! /bin/bash

ifort -c hdf5_wrapper.f90 -o hdf5_wrapper.o -I/opt/sw/x86_64/glibc-2.12/ivybridge-ep/hdf5/1.8.12/intel-14.0.2/include
ifort -c test_examples.f90 -o test_examples.o -I/opt/sw/x86_64/glibc-2.12/ivybridge-ep/hdf5/1.8.12/intel-14.0.2/include
ifort test_examples.o hdf5_wrapper.o -o main -I/opt/sw/x86_64/glibc-2.12/ivybridge-ep/hdf5/1.8.12/intel-14.0.2/include -L/opt/sw/x86_64/glibc-2.12/ivybridge-ep/hdf5/1.8.12/intel-14.0.2/lib -lhdf5_fortran -lhdf5hl_fortran

./main

0 comments on commit 4807d51

Please sign in to comment.