Skip to content

fpm package containing module interfaces for netcdf-fortran

License

Notifications You must be signed in to change notification settings

CUG-hydro/netcdf-interfaces

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

netcdf-interfaces

Netcdf4 interface module reproduced from netcdf-fortran as an fpm package.

License: BSD-3-Clause AND Apache-2.0

fpm test ubuntu-latest ifort 2021.2.0 gfortran 10.2.0

Usage

Prerequisites: The following should already be installed on your system, see each package for their respective installation instructions.

To use within your fpm project, add the following to your package manifest file (fpm.toml):

[dependencies]
netcdf-interfaces = { git = "https://github.com/LKedward/netcdf-interfaces.git" }

NOTE: when building with gfortran-10 you need to use --flag -fallow-argument-mismatch in order to compile correctly.

e.g

$ fpm build --profile debug --flag -fallow-argument-mismatch
$ fpm run --profile debug --flag -fallow-argument-mismatch

netcdf-c编译技巧

与conda存在冲突,一定不能使用conda的netcdf

export LD_LIBRARY_PATH="/usr/local/lib"

sudo apt-get install libhdf5-dev libcurl4-openssl-dev --yes
git clone https://github.com/Unidata/netcdf-c.git
cd netcdf-c
mkdir build; cd build
cmake ..
make -j
sudo make install

About

fpm package containing module interfaces for netcdf-fortran

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Fortran 100.0%