...
When using NetCDF libraries best use the GNU compiler.
Note, the recipe below does not work when needing librmn.a as well!
...
Then you can compile, load, and link with something like:
Volet |
---|
gfortran gfortran $(nf-config --fflags) $(nf-config --flibs) some.F90 -o some.Abs |
You need to adjust the name of your program and executable but you can keep the rest.
Alternatively you can also use the Intel compiler:
Volet |
---|
module load compiler/intel-19 development/netcdf-c development/netcdf-f/intel1900 |
nf-config --all
nf-config --fc
...