Bug 1226009

Summary: netcdf -- available netcdf binaries do not include netcdf.mod needed for fortran compilation
Product: [openSUSE] openSUSE Distribution Reporter: thomas kosvic <tcktablet>
Component: MaintenanceAssignee: HPC Issue Tracker <hpc-bugs>
Status: RESOLVED INVALID QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: meissner
Version: Leap 15.5   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description thomas kosvic 2024-06-05 14:33:14 UTC
A program I wish to compile needs netcdf.mod to incorporate netcdf. I cannot find this file in any openSUSE leap 15.5 repo through zypper search.  In a rocky linux vm this file was available in netcdf packages and compilation went easily.

Suggest netcdf compilation of system binaries needs review.
Comment 1 Egbert Eich 2024-06-05 18:10:28 UTC
`netcdf` aka netcdf-c does not provide Fortran bindings. You're not referring to netcdf-fortran by any chance? This package provides fortran bindings, the 'devel' package contains the .mod files. 
It is, however, only available for environment modules: netcdf-fortran-gnu-hpc-devel. 
To use it, you will need Lmod (which will be installed as a dependency if not there already). To use it, you will have to run `module load gnu netcdf-fortran` in the shell you are using to build your application.
Also, you may have to add `-I $LIBRARY_PATH -L $INCLUDE` to your compiler command line (or FCFLAGS).